From 1ee1b82b48006b175c483b15a6e190e74b679340 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 8 Apr 2004 17:28:54 +0000 Subject: add inherit eutils --- app-text/gocr/gocr-0.3.6-r3.ebuild | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 'app-text/gocr') 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 } -- cgit v1.2.3-65-gdbad