summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-04-08 17:28:54 +0000
committerMike Frysinger <vapier@gentoo.org>2004-04-08 17:28:54 +0000
commit57709fc10751b7e06c43d086666ea0c2f86d9727 (patch)
tree84fc3cc8512aacffccdd50b3d5072673dbede380 /app-text/gocr
parentadd inherit eutils (diff)
downloadgentoo-2-57709fc10751b7e06c43d086666ea0c2f86d9727.tar.gz
gentoo-2-57709fc10751b7e06c43d086666ea0c2f86d9727.tar.bz2
gentoo-2-57709fc10751b7e06c43d086666ea0c2f86d9727.zip
add inherit eutils
Diffstat (limited to 'app-text/gocr')
-rw-r--r--app-text/gocr/gocr-0.3.6-r3.ebuild28
1 files changed, 10 insertions, 18 deletions
diff --git a/app-text/gocr/gocr-0.3.6-r3.ebuild b/app-text/gocr/gocr-0.3.6-r3.ebuild
index 487b4449cfb8..41aee14929de 100644
--- a/app-text/gocr/gocr-0.3.6-r3.ebuild
+++ b/app-text/gocr/gocr-0.3.6-r3.ebuild
@@ -1,13 +1,15 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.3.6-r3.ebuild,v 1.2 2004/03/21 19:16:43 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.3.6-r3.ebuild,v 1.3 2004/04/08 17:27:02 vapier Exp $
+
+inherit eutils
DESCRIPTION="Converts PNM to ASCII"
-SRC_URI="mirror://sourceforge/jocr/${P}.tar.gz"
HOMEPAGE="http://jocr.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jocr/${P}.tar.gz"
-SLOT="0"
LICENSE="GPL-2"
+SLOT="0"
KEYWORDS="x86 sparc"
IUSE="doc"
@@ -22,20 +24,10 @@ src_unpack() {
epatch ${FILESDIR}/${P}-gentoo.diff
cd ${S}
autoconf || die
- cd ${S}/doc
- cp Makefile.in Makefile.orig
- sed -e "s:\$(DVIPS) \$?:\$(DVIPS) -o \$(OCRDOC).ps \$?:" \
- Makefile.orig > Makefile.in
- cd ../bin
- mv gocr.tcl gocr.orig
- sed -e "s:\.\./examples:/usr/share/gocr/fonts:" \
- gocr.orig > gocr.tcl
- cd ../src
- cp database.c database.orig
- sed -e "s:\./db/:${D}/usr/share/gocr/db/:" database.orig > database.c
- cd ../examples
- cp Makefile Makefile.orig
- sed -e "s:polish.pbm man.pbm:polish.pbm:" Makefile.orig > Makefile
+ sed -i -e "s:\$(DVIPS) \$?:\$(DVIPS) -o \$(OCRDOC).ps \$?:" doc/Makefile.in
+ sed -i -e "s:\.\./examples:/usr/share/gocr/fonts:" bin/gocr.tcl
+ sed -i -e "s:\./db/:${D}/usr/share/gocr/db/:" src/database.c
+ sed -i -e "s:polish.pbm man.pbm:polish.pbm:" examples/Makefile
}
src_compile() {
@@ -44,7 +36,7 @@ src_compile() {
econf || die
emake -j1 || die
emake -j1 src frontend database || die
- if [ "`use doc`" ] ; then
+ if use doc ; then
emake -j1 examples || die
fi
}