blob: 23bf7abd4bea8fd666cce5f606b24d3541b1752a (
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-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="generator of sandwich OCR pdf files"
HOMEPAGE="http://www.tobias-elze.de/pdfsandwich"
SRC_URI="mirror://sourceforge/pdfsandwich/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="png"
RDEPEND=">=app-text/tesseract-3.00
media-gfx/exact-image
app-text/unpaper
app-text/ghostscript-gpl
|| (
media-gfx/imagemagick[png?]
media-gfx/graphicsmagick[png?]
)"
DEPEND="sys-apps/gawk
>=dev-lang/ocaml-3.10[ocamlopt]"
src_prepare() {
sed -i "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" Makefile || die
sed -i "s/install -s/install/" Makefile || die
}
src_install() {
emake DESTDIR="${D}" install
}
pkg_postinst() {
elog "pdfsandwich relies on the tesseract library for OCR."
elog "Consequently language support is determined by tesseract's"
elog "language support which in turn is controlled via the LINGUAS"
elog "variable in make.conf."
}
|