summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gardiner <obz@gentoo.org>2003-09-16 05:25:52 +0000
committerMike Gardiner <obz@gentoo.org>2003-09-16 05:25:52 +0000
commit4e0a11dbfa4d6fec12d45c0baceacfdbe29aaa54 (patch)
tree014be4b4d12b333e40ac9ad034e7432114144a03 /app-text/gocr
parentNew version, rewritten ebuild (diff)
downloadgentoo-2-4e0a11dbfa4d6fec12d45c0baceacfdbe29aaa54.tar.gz
gentoo-2-4e0a11dbfa4d6fec12d45c0baceacfdbe29aaa54.tar.bz2
gentoo-2-4e0a11dbfa4d6fec12d45c0baceacfdbe29aaa54.zip
New version, rewritten ebuild
Diffstat (limited to 'app-text/gocr')
-rw-r--r--app-text/gocr/ChangeLog9
-rw-r--r--app-text/gocr/Manifest4
-rw-r--r--app-text/gocr/files/digest-gocr-0.371
-rw-r--r--app-text/gocr/gocr-0.37.ebuild57
-rw-r--r--app-text/gocr/metadata.xml5
5 files changed, 73 insertions, 3 deletions
diff --git a/app-text/gocr/ChangeLog b/app-text/gocr/ChangeLog
index 0e68ba08d389..8f5046f95284 100644
--- a/app-text/gocr/ChangeLog
+++ b/app-text/gocr/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/gocr
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.9 2003/02/12 05:25:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.10 2003/09/16 05:25:41 obz Exp $
+
+*gocr-0.37 (16 Sep 2003)
+
+ 16 Sep 2003; Mike Gardiner <obz@gentoo.org> gocr-0.37.ebuild, metadata.xml:
+ New version with an ebuild rewrite. TeX is no longer required to build the
+ examples/etc, fig is used instead, which simplifies things a lot. Frontend
+ usage controlled by gtk, and examples/docs by doc
*gocr-0.3.6-r2 (06 Jul 2002)
diff --git a/app-text/gocr/Manifest b/app-text/gocr/Manifest
index c5b809de28b2..dbc0e74216f4 100644
--- a/app-text/gocr/Manifest
+++ b/app-text/gocr/Manifest
@@ -1,6 +1,6 @@
-MD5 e88866202bcfa2326fca8ad99f0868b7 gocr-0.37.ebuild 1220
+MD5 7d81f65d5a15d9871961ef6c06d84a6e gocr-0.37.ebuild 1310
MD5 99c30df7cdaec9da3435ec8d3a72a632 gocr-0.3.6-r2.ebuild 1397
-MD5 0cc53fafad6ee1af167851626891eaa5 ChangeLog 1609
+MD5 e59936aec416257a4d5249fe042c3ca3 ChangeLog 1918
MD5 c472f5fd1646eb8bca71d8df5cb2bdcc metadata.xml 164
MD5 fb58fc4e59edc313fe5eb203fc439f57 files/digest-gocr-0.3.6-r2 62
MD5 ed4700fa87db2cf1b0ebb0fe3bc71e2e files/gocr-0.3.6-gentoo.diff 387
diff --git a/app-text/gocr/files/digest-gocr-0.37 b/app-text/gocr/files/digest-gocr-0.37
new file mode 100644
index 000000000000..3359c12912b5
--- /dev/null
+++ b/app-text/gocr/files/digest-gocr-0.37
@@ -0,0 +1 @@
+MD5 824984b5d5c44b6e3c2a1a1d5fb6d48e gocr-0.37.tar.gz 672962
diff --git a/app-text/gocr/gocr-0.37.ebuild b/app-text/gocr/gocr-0.37.ebuild
new file mode 100644
index 000000000000..ad1ecf1ff14b
--- /dev/null
+++ b/app-text/gocr/gocr-0.37.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.37.ebuild,v 1.1 2003/09/16 05:25:41 obz Exp $
+
+DESCRIPTION="An OCR (Optical Character Recognition) reader"
+HOMEPAGE="http://jocr.sourceforge.net"
+SRC_URI="mirror://sourceforge/jocr/${P}.tar.gz"
+LICENSE="GPL-2"
+
+IUSE="gtk doc"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=media-libs/netpbm-10
+ doc? ( >=media-gfx/transfig-3.2 )
+ gtk? ( =x11-libs/gtk+-1* )"
+
+DOCS="AUTHORS BUGS CREDITS HISTORY INSTALL RE* TODO"
+
+src_unpack() {
+
+ unpack ${A}
+ # fix for erroneous Makefile in frontend/
+ cd ${S}/frontend
+ sed -i -e "s/configure/\.\/configure/" Makefile
+
+}
+
+src_compile() {
+
+ local mymakes="src man"
+
+ use gtk && mymakes="${mymakes} frontend"
+ use doc && mymakes="${mymakes} doc"
+
+ econf || die
+ make ${mymakes} || die
+
+}
+
+src_install() {
+
+ make DESTDIR="${D}" prefix="/usr" exec_prefix="/usr" install || die
+ # install the gtk frontend
+ use gtk \
+ && dobin ${S}/frontend/gnome/src/gtk-ocr
+ # and install the documentation examples
+ if [ `use doc` ] ; then
+ DOCS="${DOCS} doc/gocr.html doc/{examples,unicode}.txt"
+ insinto /usr/share/doc/${P}/examples
+ doins ${S}/examples/*.{fig,tex,pcx}
+ fi
+ # and then install all the docs
+ dodoc ${DOCS}
+
+}
+
diff --git a/app-text/gocr/metadata.xml b/app-text/gocr/metadata.xml
new file mode 100644
index 000000000000..06689a1a9114
--- /dev/null
+++ b/app-text/gocr/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>text-markup</herd>
+</pkgmetadata>