blob: 3c542157df96f23d7070f8613a80586a6f5580d0 (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic
DESCRIPTION="generator of sandwich OCR pdf files"
HOMEPAGE="http://www.tobias-elze.de/pdfsandwich"
SRC_URI="https://downloads.sourceforge.net/pdfsandwich/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
IUSE="png"
RDEPEND="app-text/tesseract
media-gfx/exact-image
app-text/unpaper
app-text/ghostscript-gpl
app-text/poppler
virtual/imagemagick-tools[png?]"
DEPEND="sys-apps/gawk
dev-lang/ocaml[ocamlopt]"
DOCS=( changelog )
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
QA_FLAGS_IGNORED="/usr/bin/${PN}"
QA_TEXTRELS="/usr/bin/${PN}"
src_prepare() {
sed -i \
-e "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" \
Makefile || die
# Bug #866043
filter-lto
default
}
src_install() {
default
doman ${PN}.1
}
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."
}
|