From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-text/gocr/gocr-0.49.ebuild | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 app-text/gocr/gocr-0.49.ebuild (limited to 'app-text/gocr/gocr-0.49.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..88b3005d5a37 --- /dev/null +++ b/app-text/gocr/gocr-0.49.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} -- cgit v1.2.3