summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2007-02-21 19:28:46 +0000
committerPatrick McLean <chutzpah@gentoo.org>2007-02-21 19:28:46 +0000
commit26704611c6364bb94d95a9de1875d3142e145daf (patch)
treeccc63d6a059f89ebd3856c64e603545d31a632cd /app-text/tesseract
parentVersion bump (diff)
downloadgentoo-2-26704611c6364bb94d95a9de1875d3142e145daf.tar.gz
gentoo-2-26704611c6364bb94d95a9de1875d3142e145daf.tar.bz2
gentoo-2-26704611c6364bb94d95a9de1875d3142e145daf.zip
Revision bump, for some reason this needs libtiff support specifically turned off to actually work (bug #167047).
(Portage version: 2.1.2-r9)
Diffstat (limited to 'app-text/tesseract')
-rw-r--r--app-text/tesseract/ChangeLog9
-rw-r--r--app-text/tesseract/files/digest-tesseract-1.03-r13
-rw-r--r--app-text/tesseract/tesseract-1.03-r1.ebuild55
3 files changed, 66 insertions, 1 deletions
diff --git a/app-text/tesseract/ChangeLog b/app-text/tesseract/ChangeLog
index 1878cbb3eef7..deaf5f8d3527 100644
--- a/app-text/tesseract/ChangeLog
+++ b/app-text/tesseract/ChangeLog
@@ -1,6 +1,13 @@
# 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.2 2007/02/05 16:50:56 chutzpah Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/ChangeLog,v 1.3 2007/02/21 19:28:46 chutzpah Exp $
+
+*tesseract-1.03-r1 (21 Feb 2007)
+
+ 21 Feb 2007; Patrick McLean <chutzpah@gentoo.org>
+ +tesseract-1.03-r1.ebuild:
+ Revision bump, for some reason this needs libtiff support specifically
+ turned off to actually work (bug #167047).
*tesseract-1.03 (05 Feb 2007)
diff --git a/app-text/tesseract/files/digest-tesseract-1.03-r1 b/app-text/tesseract/files/digest-tesseract-1.03-r1
new file mode 100644
index 000000000000..a05f08caba1d
--- /dev/null
+++ b/app-text/tesseract/files/digest-tesseract-1.03-r1
@@ -0,0 +1,3 @@
+MD5 8a191bff04b6f6bc908b3838bfc7f937 tesseract-1.03.tar.gz 2828351
+RMD160 21a3fa31ed3c2232e33c5ebf43321c4feba735d1 tesseract-1.03.tar.gz 2828351
+SHA256 75033707378f01e5f6e67b90e050ac385ad5bf29ab81d9063acfc791a163d971 tesseract-1.03.tar.gz 2828351
diff --git a/app-text/tesseract/tesseract-1.03-r1.ebuild b/app-text/tesseract/tesseract-1.03-r1.ebuild
new file mode 100644
index 000000000000..808a9cdaf5dc
--- /dev/null
+++ b/app-text/tesseract/tesseract-1.03-r1.ebuild
@@ -0,0 +1,55 @@
+# 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.03-r1.ebuild,v 1.1 2007/02/21 19:28:46 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://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_compile() {
+ econf --with-libtiff=no || die "econf failed"
+ emake || die "emake failed"
+}
+
+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}
+}