/[gentoo-x86]/app-text/clara/clara-20031214.ebuild
Gentoo

Contents of /app-text/clara/clara-20031214.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.24 - (show annotations) (download)
Sat Jan 2 10:56:57 2010 UTC (8 years, 4 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.23: +3 -3 lines
Transfer Prefix keywords
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/clara/clara-20031214.ebuild,v 1.23 2009/12/15 17:04:29 spock Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="An OCR (Optical Character Recognition) program"
8 SRC_URI="mirror://gentoo/clara-20031214.tar.gz"
9 HOMEPAGE="http://www.claraocr.org/"
10
11 SLOT="0"
12 LICENSE="GPL-2"
13 KEYWORDS="amd64 ppc x86 ~ppc-macos ~sparc-solaris"
14 IUSE=""
15
16 RDEPEND="x11-libs/libX11"
17 DEPEND="${RDEPEND}"
18
19 # The test provided by clara doesn't seem to make any sense. It just
20 # calls the binary with an unsupported option, which results in an
21 # error.
22 RESTRICT="test"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 sed -i -re "s/(C|LD)FLAGS =/\1FLAGS +=/" Makefile
28 epatch "${FILESDIR}/clara_open_mode.patch"
29 }
30
31 src_compile() {
32 emake CC="$(tc-getCC)" || die
33 emake doc || die
34 }
35
36 src_install() {
37 dobin clara selthresh
38 doman doc/clara*.1 selthresh.1
39
40 dodoc ANNOUNCE CHANGELOG doc/FAQ
41 insinto /usr/share/doc/${P}
42 doins imre.pbm
43
44 dohtml doc/*.html
45 }
46
47 pkg_postinst() {
48 elog
49 elog "Please note that Clara OCR has to be trained to recognize text,"
50 elog "without a training session it simply won't work. Have a look at"
51 elog "the docs in /usr/share/doc/${P}/html/ to get more "
52 elog "info about the training procedure."
53 elog
54 }

  ViewVC Help
Powered by ViewVC 1.1.20