/[gentoo-x86]/app-text/gocr/gocr-0.49.ebuild
Gentoo

Contents of /app-text/gocr/gocr-0.49.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Apr 1 15:16:36 2012 UTC (2 years, 8 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
alpha/sparc/x86 stable wrt #408165

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.49.ebuild,v 1.4 2012/03/16 19:06:36 ranger Exp $
4
5 EAPI=4
6
7 DESCRIPTION="An OCR (Optical Character Recognition) reader"
8 HOMEPAGE="http://jocr.sourceforge.net"
9 SRC_URI="http://www-e.uni-magdeburg.de/jschulen/ocr/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
14 IUSE="doc scanner tk"
15
16 DEPEND=">=media-libs/netpbm-9.12
17 doc? ( >=media-gfx/transfig-3.2 app-text/ghostscript-gpl )
18 tk? ( dev-lang/tk )"
19 RDEPEND="${DEPEND}
20 tk? (
21 media-gfx/xli
22 scanner? ( media-gfx/xsane )
23 )"
24
25 src_compile() {
26 local mymakes="src man"
27
28 use doc && mymakes="${mymakes} doc examples"
29
30 emake ${mymakes}
31 }
32
33 src_install() {
34 emake DESTDIR="${D}" prefix="${EPREFIX}/usr" exec_prefix="${EPREFIX}/usr" install
35 dodoc AUTHORS BUGS CREDITS HISTORY RE* TODO
36
37 # remove the tk frontend if tk is not selected
38 use tk || rm "${ED}"/usr/bin/gocr.tcl
39 # and install the documentation and examples
40 if use doc ; then
41 dodoc doc/gocr.html doc/examples.txt doc/unicode.txt
42 insinto /usr/share/doc/${PF}/examples
43 doins "${S}"/examples/*.{fig,tex,pcx}
44 docompress -x /usr/share/doc/${PF}/examples
45 fi
46 }

  ViewVC Help
Powered by ViewVC 1.1.20