blob: d0fb617c1b0eecb8d283c22a2bf67069f672eb93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-1.03-r1.ebuild,v 1.2 2007/02/23 21:58:20 corsair Exp $
inherit eutils multilib
DESCRIPTION="A commercial quality OCR engine developed at HP in the 80's and early 90's."
HOMEPAGE="http://sourceforge.net/projects/tesseract-ocr/"
SRC_URI="mirror://sourceforge/tesseract-ocr/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE=""
DEPEND="media-libs/tiff"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}"/tesseract-1.0.xterm-path.patch
}
src_compile() {
econf --with-libtiff=no || die "econf failed"
emake || die "emake failed"
}
src_install() {
local dest="/usr/$(get_libdir)/${PN}"
dodir "${dest}"
exeinto "${dest}"
doexe ccmain/tesseract
dodir "${dest}/tessdata/configs"
dodir "${dest}/tessdata/tessconfigs"
insinto "${dest}/tessdata"
doins tessdata/*
insinto "${dest}/tessdata/configs"
doins tessdata/configs/*
insinto "${dest}/tessdata/tessconfigs"
doins tessdata/tessconfigs/*
dodoc README AUTHORS phototest.tif
echo -e "#!/bin/sh\n${dest}/${PN} \"\${@}\"" > ${PN}.sh
newbin ${PN}.sh ${PN}
}
|