| 1 |
# Copyright 1999-2005 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: $ |
| 4 |
|
| 5 |
EAPI="2" |
| 6 |
|
| 7 |
inherit eutils |
| 8 |
|
| 9 |
DESCRIPTION="generator of sandwich OCR pdf files" |
| 10 |
HOMEPAGE="http://www.tobias-elze.de/pdfsandwich" |
| 11 |
SRC_URI="mirror://sourceforge/pdfsandwich/${P}.tar.bz2" |
| 12 |
|
| 13 |
LICENSE="GPL-2" |
| 14 |
KEYWORDS="~amd64 ~x86" |
| 15 |
SLOT="0" |
| 16 |
IUSE="" |
| 17 |
|
| 18 |
RDEPEND=">=app-text/tesseract-3.00 |
| 19 |
app-text/unpaper |
| 20 |
media-gfx/exact-image |
| 21 |
app-text/ghostscript-gpl" |
| 22 |
|
| 23 |
DEPEND="sys-apps/gawk |
| 24 |
>=dev-lang/ocaml-3.08[ocamlopt]" |
| 25 |
|
| 26 |
src_prepare() { |
| 27 |
sed -i "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" Makefile || die |
| 28 |
} |
| 29 |
|
| 30 |
src_install() { |
| 31 |
emake DESTDIR="${D}" install || die "install failed" |
| 32 |
} |