summaryrefslogtreecommitdiff
blob: e59e025dc9398fbc5034ad4e87da85bb49a447c2 (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
# Copyright 1999-2009 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 || die "econf failed"
	emake || die "emake failed"
}

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

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