Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=cd9d2b8f888da80e1e234ef0b7784cfdcf127499
commit cd9d2b8f888da80e1e234ef0b7784cfdcf127499 Author: Cedynamix <cedyna...@gmail.com> Date: Wed Jun 10 00:05:08 2009 +0200 tesseract-ocr-2.03-1-i686 * new package diff --git a/source/xapps-extra/tesseract-ocr/FrugalBuild b/source/xapps-extra/tesseract-ocr/FrugalBuild new file mode 100644 index 0000000..d7e23cb --- /dev/null +++ b/source/xapps-extra/tesseract-ocr/FrugalBuild @@ -0,0 +1,47 @@ +# Compiling time: 0.12 SBU +# Maintainer: Cedrick Hannier alias Cedynamix <cedyna...@gmail.com> + +pkgname=tesseract-ocr +pkgver=2.03 +pkgrel=1 +pkgdesc="An OCR programm." +archs=('i686' 'x86_64') +groups=('xapps-extra') +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 \ + 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 \ + http://$pkgname.googlecode.com/files/$_F_archive_name-2.01.deu-f.tar.gz \ + http://$pkgname.googlecode.com/files/$_F_archive_name-2.00.ita.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' \ + '8bc0a5877c1992ab10a9e124643fd9006ff30350' \ + '49206b79407cb23bc23b1cd95bee02544f2fcf9b' \ + 'd8d89e2681421a144f3a1ec61ee0c530686f5096' \ + 'f79b9f348d8d7418ebe69ffe6092c6f96b3e9ea1' \ + '8ac6c41708950660fd66789f5925068577fb89b1' \ + '96d8ee26781022a2eab19569dcf23597b88d6c81' \ + '24f58cab2b1418816ba09e6f28e33aee34605889' \ + '40292c8d206090c4ab342f6b7814ea41c075abce' \ + 'e1f2fbd2dce59c369aa9bce2030090ce7f485769' \ + 'a49d701e7653b8af8946d7afc7ae14151e243f8c') + +build() { + Fcd + mv ../tessdata/* tessdata + Fconf + Fpatchall + Fmake + rm -f java/makefile + Fmakeinstall + find $Fdestdir/usr/share/tessdata -type f -exec chmod 0644 {} \; +} + +# optimization OK diff --git a/source/xapps-extra/tesseract-ocr/tesseract-2.03-gcc4.4.patch b/source/xapps-extra/tesseract-ocr/tesseract-2.03-gcc4.4.patch new file mode 100644 index 0000000..b0b48a6 --- /dev/null +++ b/source/xapps-extra/tesseract-ocr/tesseract-2.03-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 +@@ -20,7 +20,7 @@ + // SVUtil contains the SVSync and SVNetwork classes, which are used for + // thread/process creation & synchronization and network connection. + +-#include "svutil.h" ++#include <svutil.h> + + #ifdef WIN32 + #include <windows.h> +@@ -38,6 +38,10 @@ + + #include <iostream> + #include <string> ++// Patch for tesseract-2.03 (compile with gcc 4.4) ++#include <string.h> ++#include <cstdio> ++#include <stdlib.h> + + const int kBufferSize = 65536; + const int kMaxMsgSize = 4096; 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 new file mode 100644 index 0000000..f2b1af6 --- /dev/null +++ b/source/xapps-extra/tesseract-ocr/tesseract-2.03-scrollview.h.patch @@ -0,0 +1,11 @@ +--- 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__ + + #include <stdio.h> ++#include <string.h> ++#include <limits.h> + + class ScrollView; + class SVNetwork;
_______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git