app-text/qpdf: Bump to version 9.1.0
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 19 Nov 2019 15:54:57 +0000 (16:54 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 19 Nov 2019 15:55:53 +0000 (16:55 +0100)
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
app-text/qpdf/Manifest
app-text/qpdf/qpdf-9.1.0.ebuild [new file with mode: 0644]

index 9224d31857c278a9133bbc8a3ff936728af73eb1..7d4a545a5905ea2a1e3896e66a08a8f2fc22e099 100644 (file)
@@ -3,3 +3,4 @@ DIST qpdf-8.4.1.tar.gz 16990752 BLAKE2B 6e7ccd212cf8d01aea3dc615f5924c0575392f19
 DIST qpdf-8.4.2.tar.gz 16988263 BLAKE2B 358836310575fd0f454d4504a70796b72d2e3120c5820e2c33e84ea79c5c115d1c84f8d58392d870b5357407d0fbed05028bd854d164be0b32b348c587845300 SHA512 9cde046fb5e42dc331933294155583fb20408704a0cab3075cc3e97bd4643e3178e4162b8de7434aa2304097e7734f985fdc8e7b05cc028c37193dce91797f7a
 DIST qpdf-9.0.1.tar.gz 18172693 BLAKE2B ddb389b773b4664c1c3da270f1804f015c8f0a04ed57df7a4a1de9ff80cd47c6fd07c29836573bd6459cde42e8fd3986855a68632495df5363d220d6062669c7 SHA512 1bca5cf39f0019443f744c01ddc93773febca6883063fcec7f3541dd68359d8da44f34cf111cacb3bd9564f10bf1b09ea58173efd3ae06116e5c3832e61e82cc
 DIST qpdf-9.0.2.tar.gz 18168977 BLAKE2B 46b397f0e6a97804c5e8dcbfc9fd2278960d5afd459430c1790bb8f9080062cf661cf186ab386721ed7560dbd4abbea43e4d31914c0636502c5c11096c250fe2 SHA512 275ca81603d53601e4389cb34eaebea1c5d52b310ef28f3375fbeee255a28edf9375f03f31649f580dbc3df73b851a2c8498feb3dd7b30067955571b05c9e69c
+DIST qpdf-9.1.0.tar.gz 18285597 BLAKE2B ef86cd4192805761e121bcd112e071dacb4bc108335da0ba237476d9f1698e4ba630010e3266fb63d9aa5b97e0e778f76fe226613e91d351b93a53b9fc9abee7 SHA512 7561ffc366dbce9df58cc85ff18480b28b0d46de04733ba463139188bee95690f92cf0960a328619f0c9f34ce865598db490fa1c6aaa76ee87d2c034a5f7f57e
diff --git a/app-text/qpdf/qpdf-9.1.0.ebuild b/app-text/qpdf/qpdf-9.1.0.ebuild
new file mode 100644 (file)
index 0000000..b1ab532
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Command-line tool for structural, content-preserving transformation of PDF files"
+HOMEPAGE="http://qpdf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qpdf/${P}.tar.gz"
+
+LICENSE="|| ( Apache-2.0 Artistic-2 )"
+
+# subslot = libqpdf soname version
+SLOT="0/26"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris"
+IUSE="doc examples perl static-libs test"
+
+CDEPEND="
+       net-libs/gnutls:0=
+       sys-libs/zlib
+       virtual/jpeg:0=
+"
+DEPEND="${CDEPEND}
+       test? (
+               sys-apps/diffutils
+               media-libs/tiff
+               app-text/ghostscript-gpl[tiff]
+       )
+"
+# Only need perl for the installed tools.
+RDEPEND="${CDEPEND}
+       perl? ( >=dev-lang/perl-5.8 )
+"
+
+DOCS=( ChangeLog README.md TODO )
+
+src_configure() {
+       local myeconfargs=(
+               --disable-implicit-crypto
+               --enable-crypto-gnutls
+               --enable-crypto-native
+               --with-default-crypto=gnutls
+               $(use_enable static-libs static)
+               $(use_enable test test-compare-images)
+       )
+       CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       if ! use perl ; then
+               rm "${ED}"/usr/bin/fix-qdf || die
+               rm "${ED}"/usr/share/man/man1/fix-qdf.1 || die
+       fi
+
+       if use examples ; then
+               dobin examples/build/.libs/*
+       fi
+
+       find "${ED}" -type f -name '*.la' -delete || die
+}