summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2008-07-21 01:18:37 +0000
committerHanno Böck <hanno@gentoo.org>2008-07-21 01:18:37 +0000
commit4d9e830159b4ea77324c343e28a785a72c9266a2 (patch)
tree624a4be9af1f8ee7b13ba25e303a9e8083ec1020 /app-text/tesseract
parentAdd de_FR locale (diff)
downloadgentoo-2-4d9e830159b4ea77324c343e28a785a72c9266a2.tar.gz
gentoo-2-4d9e830159b4ea77324c343e28a785a72c9266a2.tar.bz2
gentoo-2-4d9e830159b4ea77324c343e28a785a72c9266a2.zip
tesseract version bump
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-git6 i686)
Diffstat (limited to 'app-text/tesseract')
-rw-r--r--app-text/tesseract/ChangeLog10
-rw-r--r--app-text/tesseract/files/includes.patch39
-rw-r--r--app-text/tesseract/tesseract-2.03.ebuild55
3 files changed, 102 insertions, 2 deletions
diff --git a/app-text/tesseract/ChangeLog b/app-text/tesseract/ChangeLog
index b6ef7cdb01e9..04b088670778 100644
--- a/app-text/tesseract/ChangeLog
+++ b/app-text/tesseract/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/tesseract
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/ChangeLog,v 1.12 2007/07/30 19:45:40 chutzpah Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/ChangeLog,v 1.13 2008/07/21 01:18:36 hanno Exp $
+
+*tesseract-2.03 (21 Jul 2008)
+
+ 21 Jul 2008; Hanno Boeck <hanno@gentoo.org> +files/includes.patch,
+ +tesseract-2.03.ebuild:
+ Version bump.
*tesseract-2.00 (30 Jul 2007)
diff --git a/app-text/tesseract/files/includes.patch b/app-text/tesseract/files/includes.patch
new file mode 100644
index 000000000000..68c26c65d786
--- /dev/null
+++ b/app-text/tesseract/files/includes.patch
@@ -0,0 +1,39 @@
+diff -urN tesseract-2.03/viewer/scrollview.cpp tesseract-2.03-NEW/viewer/scrollview.cpp
+--- tesseract-2.03/viewer/scrollview.cpp 2008-06-27 23:21:52.000000000 +0200
++++ tesseract-2.03-NEW/viewer/scrollview.cpp 2008-06-27 23:23:31.000000000 +0200
+@@ -34,7 +34,10 @@
+ #include <utility>
+ #include <algorithm>
+ #include <vector>
+-#include <string>
++#include <string.h>
++#include <stdlib.h>
++#include <limits.h>
++
+
+ #include "svutil.h"
+
+diff -urN tesseract-2.03/viewer/svmnode.cpp tesseract-2.03-NEW/viewer/svmnode.cpp
+--- tesseract-2.03/viewer/svmnode.cpp 2008-06-27 23:22:08.000000000 +0200
++++ tesseract-2.03-NEW/viewer/svmnode.cpp 2008-06-27 23:21:28.000000000 +0200
+@@ -27,6 +27,7 @@
+ #include "svmnode.h"
+
+ #include <iostream>
++#include <string.h>
+
+ #include "scrollview.h"
+
+diff -urN tesseract-2.03/viewer/svutil.cpp tesseract-2.03-NEW/viewer/svutil.cpp
+--- tesseract-2.03/viewer/svutil.cpp 2008-06-27 23:22:47.000000000 +0200
++++ tesseract-2.03-NEW/viewer/svutil.cpp 2008-06-27 23:21:28.000000000 +0200
+@@ -37,7 +37,8 @@
+ #endif
+
+ #include <iostream>
+-#include <string>
++#include <string.h>
++#include <stdlib.h>
+
+ const int kBufferSize = 65536;
+ const int kMaxMsgSize = 4096;
diff --git a/app-text/tesseract/tesseract-2.03.ebuild b/app-text/tesseract/tesseract-2.03.ebuild
new file mode 100644
index 000000000000..8c849e341f6c
--- /dev/null
+++ b/app-text/tesseract/tesseract-2.03.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-2.03.ebuild,v 1.1 2008/07/21 01:18:36 hanno Exp $
+
+inherit eutils
+
+DESCRIPTION="A commercial quality OCR engine developed at HP in the 80's and early 90's."
+HOMEPAGE="http://code.google.com/p/tesseract-ocr/"
+SRC_URI="http://tesseract-ocr.googlecode.com/files/${P}.tar.gz
+ linguas_de? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.00.deu.tar.gz )
+ linguas_de_FR? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.01.deu-f.tar.gz )
+ linguas_en? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.00.eng.tar.gz )
+ linguas_fr? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.00.fra.tar.gz )
+ linguas_it? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.00.ita.tar.gz )
+ linguas_nl? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.00.nld.tar.gz )
+ linguas_es? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.00.spa.tar.gz )
+ linguas_pt? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.01.por.tar.gz )
+ linguas_vi? ( http://tesseract-ocr.googlecode.com/files/${PN}-2.01.vie.tar.gz )"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="tiff linguas_de linguas_de_FR linguas_en linguas_fr linguas_it linguas_nl \
+linguas_es linguas_pt linguas_vi"
+
+DEPEND="tiff? ( media-libs/tiff )"
+
+S="${WORKDIR}/${P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Includes for gcc 4.3
+ epatch "${FILESDIR}/includes.patch" || die
+
+ # Move language files
+ mv -f "${WORKDIR}"/tessdata/* tessdata/
+
+ # Remove obsolete makefile, install target only in uppercase Makefile
+ rm -f "${S}/java/makefile"
+
+ sed -i -e "s:/usr/bin/X11/xterm:/usr/bin/xterm:" ccutil/debugwin.cpp
+}
+
+src_compile() {
+ econf $(use_with tiff libtiff) || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+
+ dodoc README ReleaseNotes AUTHORS phototest.tif || die "dodoc failed"
+}