diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-04-20 07:47:53 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-04-20 07:47:53 +0000 |
commit | 75718cf883f0cd0c3ddfc54e21a8437abd78c80f (patch) | |
tree | 0a4b00eba9c0c1cb64ff1c5aa1b68f4716709715 /app-text/gocr | |
parent | Version bump (bug #363319). (diff) | |
download | gentoo-2-75718cf883f0cd0c3ddfc54e21a8437abd78c80f.tar.gz gentoo-2-75718cf883f0cd0c3ddfc54e21a8437abd78c80f.tar.bz2 gentoo-2-75718cf883f0cd0c3ddfc54e21a8437abd78c80f.zip |
Version bump. Update to EAPI 4.
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
Diffstat (limited to 'app-text/gocr')
-rw-r--r-- | app-text/gocr/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/gocr/gocr-0.49.ebuild | 46 |
2 files changed, 53 insertions, 2 deletions
diff --git a/app-text/gocr/ChangeLog b/app-text/gocr/ChangeLog index 8027df30f1dc..4585669e51b2 100644 --- a/app-text/gocr/ChangeLog +++ b/app-text/gocr/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/gocr -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.62 2010/06/11 19:29:29 aballier Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/ChangeLog,v 1.63 2011/04/20 07:47:53 radhermit Exp $ + +*gocr-0.49 (20 Apr 2011) + + 20 Apr 2011; Tim Harder <radhermit@gentoo.org> +gocr-0.49.ebuild: + Version bump. Update to EAPI 4. 11 Jun 2010; Alexis Ballier <aballier@gentoo.org> gocr-0.45.ebuild, gocr-0.48.ebuild: diff --git a/app-text/gocr/gocr-0.49.ebuild b/app-text/gocr/gocr-0.49.ebuild new file mode 100644 index 000000000000..cfaead9bf70c --- /dev/null +++ b/app-text/gocr/gocr-0.49.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.49.ebuild,v 1.1 2011/04/20 07:47:53 radhermit Exp $ + +EAPI=4 + +DESCRIPTION="An OCR (Optical Character Recognition) reader" +HOMEPAGE="http://jocr.sourceforge.net" +SRC_URI="http://www-e.uni-magdeburg.de/jschulen/ocr/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc scanner tk" + +DEPEND=">=media-libs/netpbm-9.12 + doc? ( >=media-gfx/transfig-3.2 app-text/ghostscript-gpl ) + tk? ( dev-lang/tk )" +RDEPEND="${DEPEND} + tk? ( + media-gfx/xli + scanner? ( media-gfx/xsane ) + )" + +src_compile() { + local mymakes="src man" + + use doc && mymakes="${mymakes} doc examples" + + emake ${mymakes} +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" exec_prefix="${EPREFIX}/usr" install + dodoc AUTHORS BUGS CREDITS HISTORY RE* TODO + + # remove the tk frontend if tk is not selected + use tk || rm "${ED}"/usr/bin/gocr.tcl + # and install the documentation and examples + if use doc ; then + dodoc doc/gocr.html doc/examples.txt doc/unicode.txt + insinto /usr/share/doc/${PF}/examples + doins "${S}"/examples/*.{fig,tex,pcx} + docompress -x /usr/share/doc/${PF}/examples + fi +} |