diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2007-02-02 21:34:24 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2007-02-02 21:34:24 +0000 |
commit | 6d0060219bbfdb8404226d52df39da8d4ab82792 (patch) | |
tree | b9f3d1da69506b0d2b95cb2c72d85656cd28e264 /app-text/tesseract | |
parent | package masking sys-auth/nss_ldap and sys-auth/pam_ldap. (diff) | |
download | gentoo-2-6d0060219bbfdb8404226d52df39da8d4ab82792.tar.gz gentoo-2-6d0060219bbfdb8404226d52df39da8d4ab82792.tar.bz2 gentoo-2-6d0060219bbfdb8404226d52df39da8d4ab82792.zip |
Initial commit, ebuild based on ebuild contributed by Dan Davis <d-web-gentoo@dandavis.com>. Closes bug #146390.
(Portage version: 2.1.2-r6)
Diffstat (limited to 'app-text/tesseract')
-rw-r--r-- | app-text/tesseract/ChangeLog | 12 | ||||
-rw-r--r-- | app-text/tesseract/Manifest | 20 | ||||
-rw-r--r-- | app-text/tesseract/files/digest-tesseract-1.02.02022007 | 3 | ||||
-rw-r--r-- | app-text/tesseract/files/tesseract-1.0.xterm-path.patch | 12 | ||||
-rw-r--r-- | app-text/tesseract/metadata.xml | 15 | ||||
-rw-r--r-- | app-text/tesseract/tesseract-1.02.02022007.ebuild | 51 |
6 files changed, 113 insertions, 0 deletions
diff --git a/app-text/tesseract/ChangeLog b/app-text/tesseract/ChangeLog new file mode 100644 index 000000000000..6161123dfc3b --- /dev/null +++ b/app-text/tesseract/ChangeLog @@ -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 index 000000000000..db1e8ca47dfc --- /dev/null +++ b/app-text/tesseract/Manifest @@ -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 1084 RMD160 f54de0b40231e8f7a6a55af7ef5c206915280500 SHA1 4fa68084e4ffca673e6c28307f3b42e2adc05926 SHA256 382b7c1c87b0e77aca83fc0213eec7dfb122f5d322498623a0c96bbe116ab7f3 +MD5 1c24735d84bb0481fe075208d274b464 tesseract-1.02.02022007.ebuild 1084 +RMD160 f54de0b40231e8f7a6a55af7ef5c206915280500 tesseract-1.02.02022007.ebuild 1084 +SHA256 382b7c1c87b0e77aca83fc0213eec7dfb122f5d322498623a0c96bbe116ab7f3 tesseract-1.02.02022007.ebuild 1084 +MISC ChangeLog 420 RMD160 486b867029b2c98a4fc9b86facc453b77485e5e9 SHA1 d4df497401bda3de136a8ea89cd4d3c200426489 SHA256 6267c87eee84fab036ab6bbf7fc0afc6c1d085ff9fc3c983697076ef0ab8edd6 +MD5 aeba2f0d39c319fc7656c64f009431c3 ChangeLog 420 +RMD160 486b867029b2c98a4fc9b86facc453b77485e5e9 ChangeLog 420 +SHA256 6267c87eee84fab036ab6bbf7fc0afc6c1d085ff9fc3c983697076ef0ab8edd6 ChangeLog 420 +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 index 000000000000..12ce4e3dc33f --- /dev/null +++ b/app-text/tesseract/files/digest-tesseract-1.02.02022007 @@ -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 index 000000000000..7931de3fd8dc --- /dev/null +++ b/app-text/tesseract/files/tesseract-1.0.xterm-path.patch @@ -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 index 000000000000..a6b4331e43ac --- /dev/null +++ b/app-text/tesseract/metadata.xml @@ -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 index 000000000000..11da20d95698 --- /dev/null +++ b/app-text/tesseract/tesseract-1.02.02022007.ebuild @@ -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} +} |