You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild

48 lines
1.0 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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
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-3.10[ocamlopt]"
DOCS=( changelog )
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
QA_FLAGS_IGNORED="/usr/bin/${PN}"
src_prepare() {
sed -i \
-e "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" \
Makefile || die
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."
}