[Frugalware-git] frugalware-current: tesseract-ocr-2.04-1-i686

Cedynamix cedynamix at gmail.com
Tue Nov 17 16:20:34 CET 2009


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=12f7261f7a0c88776e382dd677abd3c2e2419490

commit 12f7261f7a0c88776e382dd677abd3c2e2419490
Author: Cedynamix <cedynamix at gmail.com>
Date:   Tue Nov 17 17:14:42 2009 +0100

tesseract-ocr-2.04-1-i686

* version bump

diff --git a/source/xapps-extra/tesseract-ocr/FrugalBuild b/source/xapps-extra/tesseract-ocr/FrugalBuild
index d7e23cb..943d6e7 100644
--- a/source/xapps-extra/tesseract-ocr/FrugalBuild
+++ b/source/xapps-extra/tesseract-ocr/FrugalBuild
@@ -2,7 +2,7 @@
# Maintainer: Cedrick Hannier alias Cedynamix <cedynamix at gmail.com>

pkgname=tesseract-ocr
-pkgver=2.03
+pkgver=2.04
pkgrel=1
pkgdesc="An OCR programm."
archs=('i686' 'x86_64')
@@ -11,7 +11,7 @@ url="http://code.google.com/p/tesseract-ocr"
depends=('libtiff' 'libjpeg')
_F_archive_name=tesseract
up2date="Flasttar $url" # up2date from Finclude googlecode does not work :/
-source=(http://$pkgname.googlecode.com/files/$_F_archive_name-2.03.tar.gz \
+source=(http://$pkgname.googlecode.com/files/$_F_archive_name-$pkgver.tar.gz \
http://$pkgname.googlecode.com/files/$_F_archive_name-2.00.nld.tar.gz \
http://$pkgname.googlecode.com/files/$_F_archive_name-2.00.spa.tar.gz \
http://$pkgname.googlecode.com/files/$_F_archive_name-2.00.deu.tar.gz \
@@ -20,18 +20,20 @@ source=(http://$pkgname.googlecode.com/files/$_F_archive_name-2.03.tar.gz \
http://$pkgname.googlecode.com/files/$_F_archive_name-2.01.por.tar.gz \
http://$pkgname.googlecode.com/files/$_F_archive_name-2.00.fra.tar.gz \
http://$pkgname.googlecode.com/files/$_F_archive_name-2.00.eng.tar.gz \
-	tesseract-2.03-gcc4.4.patch tesseract-2.03-scrollview.h.patch)
-sha1sums=('b7859278ff98a8b64bf98b5a519688e1559cec57' \
+	tesseract-2.04-gcc4.4.patch tesseract-2.03-scrollview.h.patch)
+sha1sums=('850c42c92a4471c5f41d4384c57045e812fde26a' \
'8bc0a5877c1992ab10a9e124643fd9006ff30350' \
-          '49206b79407cb23bc23b1cd95bee02544f2fcf9b' \
+          '49206b79407cb23bc23b1cd95bee02544ff2fcf9b' \
'd8d89e2681421a144f3a1ec61ee0c530686f5096' \
'f79b9f348d8d7418ebe69ffe6092c6f96b3e9ea1' \
'8ac6c41708950660fd66789f5925068577fb89b1' \
'96d8ee26781022a2eab19569dcf23597b88d6c81' \
'24f58cab2b1418816ba09e6f28e33aee34605889' \
'40292c8d206090c4ab342f6b7814ea41c075abce' \
-          'e1f2fbd2dce59c369aa9bce2030090ce7f485769' \
-          'a49d701e7653b8af8946d7afc7ae14151e243f8c')
+          '7a18e77ad254afadc18b181fc117046dc9634de9' \
+          'd7f53cc4096c6182879dd385b9641e0ac9e77e7a')
+
+

build() {
Fcd
diff --git a/source/xapps-extra/tesseract-ocr/tesseract-2.03-scrollview.h.patch b/source/xapps-extra/tesseract-ocr/tesseract-2.03-scrollview.h.patch
index f2b1af6..e74ebe4 100644
--- a/source/xapps-extra/tesseract-ocr/tesseract-2.03-scrollview.h.patch
+++ b/source/xapps-extra/tesseract-ocr/tesseract-2.03-scrollview.h.patch
@@ -1,8 +1,8 @@
--- viewer/scrollview.h	2008-04-19 06:14:43.000000000 +0200
+++ viewer/scrollview.h	2009-06-09 22:55:55.000000000 +0200
@@ -33,6 +33,8 @@
- #define THIRD_PARTY_TESSERACT_VIEWER_SCROLLVIEW_H__
-
+ #define TESSERACT_VIEWER_SCROLLVIEW_H__
+
#include <stdio.h>
+#include <string.h>
+#include <limits.h>
diff --git a/source/xapps-extra/tesseract-ocr/tesseract-2.04-gcc4.4.patch b/source/xapps-extra/tesseract-ocr/tesseract-2.04-gcc4.4.patch
new file mode 100644
index 0000000..0410924
--- /dev/null
+++ b/source/xapps-extra/tesseract-ocr/tesseract-2.04-gcc4.4.patch
@@ -0,0 +1,22 @@
+--- viewer/svutil.cpp	2008-04-22 02:07:25.000000000 +0200
++++ viewer/svutil.cpp	2009-06-09 22:21:00.000000000 +0200
+@@ -22,7 +22,7 @@
+
+ #ifndef GRAPHICS_DISABLED
+
+-#include "svutil.h"
++#include <svutil.h>
+
+ #ifdef WIN32
+ #include <windows.h>
+@@ -43,6 +43,10 @@
+ #endif
+
+ #include <iostream>
++// Patch for tesseract-2.04 (compile with gcc 4.4)
++#include <string.h>
++#include <cstdio>
++#include <stdlib.h>
+
+ const int kBufferSize = 65536;
+ const int kMaxMsgSize = 4096;


More information about the Frugalware-git mailing list