Initial commit, ebuild based on ebuild contributed by Dan Davis <d-web-gentoo@dandavi...
authorPatrick McLean <chutzpah@gentoo.org>
Fri, 2 Feb 2007 21:34:24 +0000 (21:34 +0000)
committerPatrick McLean <chutzpah@gentoo.org>
Fri, 2 Feb 2007 21:34:24 +0000 (21:34 +0000)
Package-Manager: portage-2.1.2-r6

app-text/tesseract/ChangeLog [new file with mode: 0644]
app-text/tesseract/Manifest [new file with mode: 0644]
app-text/tesseract/files/digest-tesseract-1.02.02022007 [new file with mode: 0644]
app-text/tesseract/files/tesseract-1.0.xterm-path.patch [new file with mode: 0644]
app-text/tesseract/metadata.xml [new file with mode: 0644]
app-text/tesseract/tesseract-1.02.02022007.ebuild [new file with mode: 0644]

diff --git a/app-text/tesseract/ChangeLog b/app-text/tesseract/ChangeLog
new file mode 100644 (file)
index 0000000..6161123
--- /dev/null
@@ -0,0 +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.1 2007/02/02 21:34:24 chutzpah Exp $
+
+*tesseract-1.02.02022007 (02 Feb 2007)
+
+  02 Feb 2007; Patrick McLean <chutzpah@gentoo.org>
+  +files/tesseract-1.0.xterm-path.patch, +metadata.xml,
+  +tesseract-1.02.02022007.ebuild:
+  Initial commit, ebuild based on ebuild contributed by Dan Davis
+  <d-web-gentoo@dandavis.com>. Closes bug #146390.
+
diff --git a/app-text/tesseract/Manifest b/app-text/tesseract/Manifest
new file mode 100644 (file)
index 0000000..28aba55
--- /dev/null
@@ -0,0 +1,20 @@
+AUX tesseract-1.0.xterm-path.patch 629 RMD160 bcfd96f1ee65420c9a20260f67b52d3968bed6a4 SHA1 f1e88fb8dcb275b7ada4ca89a09069efa1f12c2c SHA256 14d0ea0dbfa35f8b457da1c568af95c01a5401392f1fc92f3f30f1b1146cd88a
+MD5 295f0f50f90c5be7176218c9f943c251 files/tesseract-1.0.xterm-path.patch 629
+RMD160 bcfd96f1ee65420c9a20260f67b52d3968bed6a4 files/tesseract-1.0.xterm-path.patch 629
+SHA256 14d0ea0dbfa35f8b457da1c568af95c01a5401392f1fc92f3f30f1b1146cd88a files/tesseract-1.0.xterm-path.patch 629
+DIST tesseract-1.02.02022007.tar.gz 2785659 RMD160 7fcbac6a32f838b243bd72daee46a17f53c47f93 SHA1 214b9aa35c1e06c6848d07932520661ac1ba7197 SHA256 b175f4d341a9189a1109b02defd0be4c7a27a1ccde4c6abad1d83b1fa4cccf80
+EBUILD tesseract-1.02.02022007.ebuild 1197 RMD160 c99475c3814dc08957c1635ea392692627c5c690 SHA1 4e6e90b220a3553ac962d088d5e9041585e59e25 SHA256 8aa2fb2d5289ab12e3dcb79d6b4e43c9f442e6f1fe350b34439ec69786f14049
+MD5 e97bc4e035176a6ca0647f6b5b5c5ec1 tesseract-1.02.02022007.ebuild 1197
+RMD160 c99475c3814dc08957c1635ea392692627c5c690 tesseract-1.02.02022007.ebuild 1197
+SHA256 8aa2fb2d5289ab12e3dcb79d6b4e43c9f442e6f1fe350b34439ec69786f14049 tesseract-1.02.02022007.ebuild 1197
+MISC ChangeLog 512 RMD160 bfdf6a323a40a08a12a4c4e3e710cce7bcde556f SHA1 407a974c4032871edcc322585e6a26d452ec7057 SHA256 c22efdb7e97ebe37b1ca9615ec8507b01e253c958267b5be2cd83e388bf010e0
+MD5 b7dec863c9595bed72810ca0122c4799 ChangeLog 512
+RMD160 bfdf6a323a40a08a12a4c4e3e710cce7bcde556f ChangeLog 512
+SHA256 c22efdb7e97ebe37b1ca9615ec8507b01e253c958267b5be2cd83e388bf010e0 ChangeLog 512
+MISC metadata.xml 486 RMD160 a822519d57f956abde805856cb6efcf7168bb7a7 SHA1 e9d1b325f4a1e2fc4bc34211c31addde8e60ab95 SHA256 f42a3773900c016a5453b563b46aabb1cdac673dfa88f5553edf609b588ea3fa
+MD5 b9a60e5d0d72507a2f5bcde06064d1a2 metadata.xml 486
+RMD160 a822519d57f956abde805856cb6efcf7168bb7a7 metadata.xml 486
+SHA256 f42a3773900c016a5453b563b46aabb1cdac673dfa88f5553edf609b588ea3fa metadata.xml 486
+MD5 8bf3b78f7032a3ca2649ca351dd75b0c files/digest-tesseract-1.02.02022007 274
+RMD160 6dbfbdb7c3650a6f4448538dc4cf47bb1907aa3b files/digest-tesseract-1.02.02022007 274
+SHA256 33b139e38a68e0de37d8f47628dd017de7faca0d68085def904a2597e85876e5 files/digest-tesseract-1.02.02022007 274
diff --git a/app-text/tesseract/files/digest-tesseract-1.02.02022007 b/app-text/tesseract/files/digest-tesseract-1.02.02022007
new file mode 100644 (file)
index 0000000..12ce4e3
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 b8c2fb868ec7259ab6ec29cb267e565d tesseract-1.02.02022007.tar.gz 2785659
+RMD160 7fcbac6a32f838b243bd72daee46a17f53c47f93 tesseract-1.02.02022007.tar.gz 2785659
+SHA256 b175f4d341a9189a1109b02defd0be4c7a27a1ccde4c6abad1d83b1fa4cccf80 tesseract-1.02.02022007.tar.gz 2785659
diff --git a/app-text/tesseract/files/tesseract-1.0.xterm-path.patch b/app-text/tesseract/files/tesseract-1.0.xterm-path.patch
new file mode 100644 (file)
index 0000000..7931de3
--- /dev/null
@@ -0,0 +1,12 @@
+diff --exclude='*~' -Naur tesseract-1.0.orig/ccutil/debugwin.cpp tesseract-1.0/ccutil/debugwin.cpp
+--- tesseract-1.0.orig/ccutil/debugwin.cpp      2006-06-16 18:17:04.000000000 -0400
++++ tesseract-1.0/ccutil/debugwin.cpp   2006-09-05 11:30:24.000000000 -0400
+@@ -229,7 +229,7 @@
+   length += sprintf (command + length, "trap \"\" 1 2 3 13 15\n");
+   length +=
+     sprintf (command + length,
+-    "/usr/bin/X11/xterm -sb -sl " INT32FORMAT " -geometry "
++    "/usr/bin/xterm -sb -sl " INT32FORMAT " -geometry "
+     INT32FORMAT "x" INT32FORMAT "", buflines, xsize / 8, ysize / 16);
+   if (xpos >= 0)
+     command[length++] = '+';
diff --git a/app-text/tesseract/metadata.xml b/app-text/tesseract/metadata.xml
new file mode 100644 (file)
index 0000000..a6b4331
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+       <email>chutzpah@gentoo.org</email>
+       <name>Patrick McLean</name>
+</maintainer>
+<longdescription lang="en">
+A commercial quality OCR engine originally developed at HP between 1985 and
+1995. In 1995, this engine was among the top 3 evaluated by UNLV. It was
+open-sourced by HP and UNLV in 2005.
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-text/tesseract/tesseract-1.02.02022007.ebuild b/app-text/tesseract/tesseract-1.02.02022007.ebuild
new file mode 100644 (file)
index 0000000..11da20d
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-1.02.02022007.ebuild,v 1.1 2007/02/02 21:34:24 chutzpah Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="A commercial quality OCR engine developed at HP in the 80's and early 90's."
+HOMEPAGE="http://sourceforge.net/projects/tesseract-ocr/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+#SRC_URI="mirror://sourceforge/tesseract-ocr/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="media-libs/tiff"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+
+       epatch "${FILESDIR}"/tesseract-1.0.xterm-path.patch
+}
+
+src_install() {
+       local dest="/usr/$(get_libdir)/${PN}"
+
+       dodir "${dest}"
+
+       exeinto "${dest}"
+       doexe ccmain/tesseract
+
+       dodir "${dest}/tessdata/configs"
+       dodir "${dest}/tessdata/tessconfigs"
+
+       insinto "${dest}/tessdata"
+       doins tessdata/*
+
+       insinto "${dest}/tessdata/configs"
+       doins tessdata/configs/*
+
+       insinto "${dest}/tessdata/tessconfigs"
+       doins tessdata/tessconfigs/*
+
+       dodoc README AUTHORS phototest.tif
+
+       echo -e "#!/bin/sh\n${dest}/${PN} \"\${@}\"" > ${PN}.sh
+       newbin ${PN}.sh ${PN}
+}