diff options
author | Mike Gardiner <obz@gentoo.org> | 2003-09-16 05:25:52 +0000 |
---|---|---|
committer | Mike Gardiner <obz@gentoo.org> | 2003-09-16 05:25:52 +0000 |
commit | ac332f1d2f19a998dc299585e680aac77ef2097f (patch) | |
tree | 6fe394e2c3fc0d9ec522df1f096115e4dd1e4edb /app-text | |
parent | New version, rewritten ebuild (diff) | |
download | historical-ac332f1d2f19a998dc299585e680aac77ef2097f.tar.gz historical-ac332f1d2f19a998dc299585e680aac77ef2097f.tar.bz2 historical-ac332f1d2f19a998dc299585e680aac77ef2097f.zip |
New version, rewritten ebuild
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/gocr/Manifest | 4 | ||||
-rw-r--r-- | app-text/gocr/files/digest-gocr-0.37 | 1 | ||||
-rw-r--r-- | app-text/gocr/gocr-0.37.ebuild | 57 | ||||
-rw-r--r-- | app-text/gocr/metadata.xml | 5 |
4 files changed, 65 insertions, 2 deletions
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> |