summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-12 23:20:02 +0000
committerSam James <sam@gentoo.org>2022-02-13 03:38:48 +0000
commit08171f604d7269453369dfb751afe6294cb1c8f7 (patch)
treef044e42257a9b726a9e2e6d986172b4bb8469705
parentsys-devel/autoconf-archive: add 2022.02.11 (diff)
downloadgentoo-08171f604d7269453369dfb751afe6294cb1c8f7.tar.gz
gentoo-08171f604d7269453369dfb751afe6294cb1c8f7.tar.bz2
gentoo-08171f604d7269453369dfb751afe6294cb1c8f7.zip
app-text/qpdf: add 10.6.1
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--app-text/qpdf/Manifest2
-rw-r--r--app-text/qpdf/qpdf-10.6.1.ebuild88
2 files changed, 90 insertions, 0 deletions
diff --git a/app-text/qpdf/Manifest b/app-text/qpdf/Manifest
index 22144477787b..fc834171d0a3 100644
--- a/app-text/qpdf/Manifest
+++ b/app-text/qpdf/Manifest
@@ -2,3 +2,5 @@ DIST qpdf-10.3.2.tar.gz 18943834 BLAKE2B 5b4e320ddd663721d8201139842bb09a752347f
DIST qpdf-10.4.0.tar.gz 18942833 BLAKE2B bc984c742bec582b5b67f7a4f4f00bb22a36e8e14d78b8e8848baed0c94489f6920070bc317928c53aca855c252c2fa5de0fba8b64ba16ba37afc2362d6ae7ba SHA512 7a17cc2b3168bb60ac05d01b585d34d94f62e44e309b86635351b2564bc2c3b7846d3a008ae0d6c068bce3b1d9c42d3a3ab40de3f85a1ec4952280cf8321a041
DIST qpdf-10.5.0-doc.zip 6621139 BLAKE2B 9297946619df67799a450495ead8a980d8e2cfa92556e9eb6ac6f365b80d489bb11a9c5dd95e13df9a8fb013a3f254e89ae1682e8be73799ba0c872dc50075c5 SHA512 75c4eac6e828eb5f8544b4194b775e8258a769aa5e18006b9491d9658981abcd286cd082a233122805e785f283704dccaf2078cd84965ab58ebc6c80fdb4a06f
DIST qpdf-10.5.0.tar.gz 18362586 BLAKE2B efb0a051df9824c6324ce3c4de7b6f5890a04e0a0e1e08a1086c7b7a7e3d29e01d8b6760eeb36cd5461f5ea8a9ac1e6453711df53b514c223abd3d2a41ae1a93 SHA512 758dd4fd86b79a8b08738abb36685cf4a458dcf70a480efe3207d1148a691cf06a8040c83075ace9c3bbaf372cefe78508df2e52513cc969dca76442ed43775d
+DIST qpdf-10.6.1-doc.zip 6850012 BLAKE2B 866bfd1261f392b9e666a948c4002a625952950aeeca974402ddbf1172329a8186fd6c74282002e566cf844a9af5f1a78d433717e9ec350faac5b9649f517fe9 SHA512 73180e1fc562b163a70b4c2c7342b1d7769fe070137db9d5c4e3345d4d994400a39d64c4364b2188681a915e1df4ab3f2ab6ce28e5dad1d710b254d1d1b021ab
+DIST qpdf-10.6.1.tar.gz 18518114 BLAKE2B a51e856cf6af380845b30a396d2f4a73ddc2ea6d85ce29198744b781556782d9b9e02a3b575c2f94aa1bcbb5e94818e8a4d7e19625258032b09f2e5d98f6efca SHA512 01bc02da2e389423d575053f1460638efb0af069bc63cd898b958e7105990c21670a281c834e3d72846542c74f2bda083f1cb786b4599332fec5b817934e44df
diff --git a/app-text/qpdf/qpdf-10.6.1.ebuild b/app-text/qpdf/qpdf-10.6.1.ebuild
new file mode 100644
index 000000000000..0b1fa0eff5ea
--- /dev/null
+++ b/app-text/qpdf/qpdf-10.6.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1
+
+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"
+SRC_URI+=" doc? ( mirror://sourceforge/qpdf/${P}-doc.zip )"
+
+LICENSE="|| ( Apache-2.0 Artistic-2 )"
+# subslot = libqpdf soname version
+SLOT="0/28"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris"
+IUSE="doc examples gnutls ssl test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ sys-libs/zlib
+ virtual/jpeg:0=
+ ssl? (
+ gnutls? ( net-libs/gnutls:= )
+ !gnutls? ( dev-libs/openssl:= )
+ )
+"
+DEPEND="${RDEPEND}
+ test? (
+ app-text/ghostscript-gpl[tiff(+)]
+ media-libs/tiff
+ sys-apps/diffutils
+ )
+"
+BDEPEND="dev-lang/perl
+ doc? ( app-arch/unzip )"
+
+DOCS=( ChangeLog README.md TODO )
+
+src_configure() {
+ # Keep an eye on https://qpdf.readthedocs.io/en/stable/packaging.html.
+ local myeconfargs=(
+ --disable-check-autofiles
+
+ --disable-implicit-crypto
+ --enable-crypto-native
+
+ --disable-oss-fuzz
+ $(use_enable test test-compare-images)
+ )
+
+ if use ssl ; then
+ local crypto_provider=openssl
+
+ if use gnutls ; then
+ crypto_provider=gnutls
+ fi
+
+ myeconfargs+=(
+ --with-default-crypto=${crypto_provider}
+ --enable-crypto-${crypto_provider}
+ )
+ fi
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ docompress -x /usr/share/doc/${PF}/singlehtml
+ dodoc -r "${WORKDIR}"/${P}-doc/.
+
+ fi
+
+ if use examples ; then
+ dobin $(find examples/build/.libs -maxdepth 1 -type f -executable || die)
+ fi
+
+ # Completions
+ dobashcomp completions/bash/qpdf
+
+ insinto /usr/share/zsh/site-functions
+ doins completions/zsh/_qpdf
+
+ find "${ED}" -type f -name '*.la' -delete || die
+}