From 3db02d4d4acc0c8ba9580034fc6445c8c5dec197 Mon Sep 17 00:00:00 2001 From: Jonathan Callen Date: Mon, 22 Feb 2010 20:58:34 +0000 Subject: [PATCH] Transfer prefix keywords, bump EAPI Package-Manager: portage--svn/cvs/Linux i686 --- app-text/gocr/ChangeLog | 7 +++++-- app-text/gocr/gocr-0.47.ebuild | 19 +++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app-text/gocr/ChangeLog b/app-text/gocr/ChangeLog index 7722480d0bc7..a36f7cdd46e2 100644 --- a/app-text/gocr/ChangeLog +++ b/app-text/gocr/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-text/gocr -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.58 2009/12/26 17:31:31 pva Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.59 2010/02/22 20:58:34 abcd Exp $ + + 22 Feb 2010; Jonathan Callen gocr-0.47.ebuild: + Transfer prefix keywords, bump EAPI 26 Dec 2009; Peter Volkov gocr-0.45.ebuild, gocr-0.46.ebuild, gocr-0.47.ebuild: diff --git a/app-text/gocr/gocr-0.47.ebuild b/app-text/gocr/gocr-0.47.ebuild index cc5a4ac8041a..c7b55bcb189e 100644 --- a/app-text/gocr/gocr-0.47.ebuild +++ b/app-text/gocr/gocr-0.47.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.47.ebuild,v 1.2 2009/12/26 17:31:31 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.47.ebuild,v 1.3 2010/02/22 20:58:34 abcd Exp $ + +EAPI=3 inherit eutils @@ -10,7 +12,7 @@ SRC_URI="mirror://sourceforge/jocr/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="doc tk" DEPEND=">=media-libs/netpbm-9.12 @@ -19,9 +21,7 @@ DEPEND=">=media-libs/netpbm-9.12 DOCS="AUTHORS BUGS CREDITS HISTORY RE* TODO" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { epatch "${FILESDIR}/${P}-makefile.patch" } @@ -30,18 +30,17 @@ src_compile() { use doc && mymakes="${mymakes} doc examples" - econf || die "econf failed" emake ${mymakes} || die "make ${mymakes} failed" } src_install() { - emake DESTDIR="${D}" prefix="/usr" exec_prefix="/usr" install || die "make install failed" + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" exec_prefix="${EPREFIX}/usr" install || die "make install failed" # remove the tk frontend if tk is not selected - use tk || rm "${D}"/usr/bin/gocr.tcl + use tk || rm "${ED}"/usr/bin/gocr.tcl # and install the documentation and examples if use doc ; then DOCS="${DOCS} doc/gocr.html doc/examples.txt doc/unicode.txt" - insinto /usr/share/doc/${P}/examples + insinto /usr/share/doc/${PF}/examples doins "${S}"/examples/*.{fig,tex,pcx} fi # and then install all the docs -- 2.26.2