summaryrefslogtreecommitdiff
blob: b41ebd54623fed67dfae34e4163a8fad2efa61c7 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit subversion

DESCRIPTION="OCRopus is a state-of-the-art document analysis and OCR system."
HOMEPAGE="http://code.google.com/p/ocropus/"

ESVN_REPO_URI="http://ocropus.googlecode.com/svn/trunk"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS=""
IUSE=""

RDEPEND=">=app-text/tesseract-1.04b
		 app-text/aspell
		 media-libs/tiff
		 media-libs/libpng
		 media-libs/jpeg"
DEPEND="${RDEPEND}
		dev-util/jam"

src_compile() {
	econf --with-tesseract=/usr
	emake
}

src_test() {
	cd "${S}/testing"
	./test-compile
	./test-run || die "At least one test failed"
}

src_install() {
	dobin ocropus-cmd/ocropus
	dodoc README DIRS
}