diff options
author | Alexandre Buisse <nattfodd@gentoo.org> | 2006-05-23 13:14:16 +0000 |
---|---|---|
committer | Alexandre Buisse <nattfodd@gentoo.org> | 2006-05-23 13:14:16 +0000 |
commit | 33241a47f3474f2085efb51522384c1dbb4560f7 (patch) | |
tree | 49327de70c1feab508d332fa6e40afb47b99d5cb | |
parent | dhclient-script now works with invalid, RFC violating but sometimes used (diff) | |
download | gentoo-2-33241a47f3474f2085efb51522384c1dbb4560f7.tar.gz gentoo-2-33241a47f3474f2085efb51522384c1dbb4560f7.tar.bz2 gentoo-2-33241a47f3474f2085efb51522384c1dbb4560f7.zip |
Added missing dep to imagemagick (see bug #133376).
(Portage version: 2.1_pre10-r2)
-rw-r--r-- | app-text/gocr/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/gocr/files/digest-gocr-0.39 | 2 | ||||
-rw-r--r-- | app-text/gocr/files/digest-gocr-0.40-r2 | 3 | ||||
-rw-r--r-- | app-text/gocr/gocr-0.40-r2.ebuild | 62 |
4 files changed, 73 insertions, 1 deletions
diff --git a/app-text/gocr/ChangeLog b/app-text/gocr/ChangeLog index 975d313b1438..9bfe44fadcd8 100644 --- a/app-text/gocr/ChangeLog +++ b/app-text/gocr/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/gocr # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.28 2006/05/08 08:19:08 ehmsen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.29 2006/05/23 13:14:16 nattfodd Exp $ + +*gocr-0.40-r2 (23 May 2006) + + 23 May 2006; Alexandre Buisse <nattfodd@gentoo.org> +gocr-0.40-r2.ebuild: + Added dep to imagemagick when gtk USE flag is set (see bug #133376). *gocr-0.40-r1 (08 May 2006) diff --git a/app-text/gocr/files/digest-gocr-0.39 b/app-text/gocr/files/digest-gocr-0.39 index 9c35170fb5a8..6223e88a40de 100644 --- a/app-text/gocr/files/digest-gocr-0.39 +++ b/app-text/gocr/files/digest-gocr-0.39 @@ -1 +1,3 @@ MD5 35b024988af7d3ddb00971db4e6d53a1 gocr-0.39.tar.gz 720915 +RMD160 5f5af758c8c92c374524ef3d47efd47e882b6b21 gocr-0.39.tar.gz 720915 +SHA256 1884a8f2e38e81e4f29b11671dcc1bc236db36ddf7bc8b236c7894c520a5018a gocr-0.39.tar.gz 720915 diff --git a/app-text/gocr/files/digest-gocr-0.40-r2 b/app-text/gocr/files/digest-gocr-0.40-r2 new file mode 100644 index 000000000000..1e0a9dc0df02 --- /dev/null +++ b/app-text/gocr/files/digest-gocr-0.40-r2 @@ -0,0 +1,3 @@ +MD5 13cc0d008747f5bb56d8b17be9b61859 gocr-0.40.tar.gz 780744 +RMD160 1e34277b7d923706789d6e5c85996968d8506427 gocr-0.40.tar.gz 780744 +SHA256 bab419672bedbc00fc7fe1395d0eb4f9b5841c248245a8457dfd4ee1d19a6f4c gocr-0.40.tar.gz 780744 diff --git a/app-text/gocr/gocr-0.40-r2.ebuild b/app-text/gocr/gocr-0.40-r2.ebuild new file mode 100644 index 000000000000..306023e44874 --- /dev/null +++ b/app-text/gocr/gocr-0.40-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.40-r2.ebuild,v 1.1 2006/05/23 13:14:16 nattfodd Exp $ + +inherit eutils + +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="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +DEPEND=">=media-libs/netpbm-9.12 + doc? ( >=media-gfx/transfig-3.2 ) + gtk? ( =x11-libs/gtk+-1* + media-gfx/imagemagick )" + +DOCS="AUTHORS BUGS CREDITS HISTORY RE* TODO" + +src_unpack() { + + unpack ${A} + # fix for erroneous Makefile in frontend/ + cd "${S}"/frontend + sed -i -e "s/configure/\.\/configure/" Makefile + + # fix compilation with LDFLAGS="-Wl,--as-needed" + cd "${S}" + epatch "${FILESDIR}"/${P}-as-needed.patch || die "patch failed" + +} + +src_compile() { + + local mymakes="src man" + + use gtk && mymakes="${mymakes} frontend" + use doc && mymakes="${mymakes} doc examples" + + 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 and examples + if use doc ; then + DOCS="${DOCS} doc/gocr.html doc/examples.txt doc/unicode.txt" + insinto /usr/share/doc/${P}/examples + doins ${S}/examples/*.{fig,tex,pcx} + fi + # and then install all the docs + dodoc ${DOCS} + +} |