From 55ffd36c532cb97cecd4949617907b1dc759bf62 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 11 Feb 2017 20:21:50 +0100 Subject: app-text/pdfsandwich: Depend on virtual/imagemagick-tools Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3907 --- app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild | 38 ++++++++++++++++++++++ app-text/pdfsandwich/pdfsandwich-0.1.4.ebuild | 41 ------------------------ 2 files changed, 38 insertions(+), 41 deletions(-) create mode 100644 app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild delete mode 100644 app-text/pdfsandwich/pdfsandwich-0.1.4.ebuild diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild b/app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild new file mode 100644 index 000000000000..f02dc56f52d5 --- /dev/null +++ b/app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 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 + virtual/imagemagick-tools[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." +} diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.4.ebuild b/app-text/pdfsandwich/pdfsandwich-0.1.4.ebuild deleted file mode 100644 index 23bf7abd4bea..000000000000 --- a/app-text/pdfsandwich/pdfsandwich-0.1.4.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# 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." -} -- cgit v1.2.3-65-gdbad