summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-31 17:46:44 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-31 18:21:54 +0100
commit664b277ee11d0b31aac867941611c130d1b1415e (patch)
tree178887bb382e9af35a1bf41bc2dbe791842d611b /app-text/qpdf
parentapp-text/qpdf: Bump to 11.6.4 (diff)
downloadgentoo-664b277ee11d0b31aac867941611c130d1b1415e.tar.gz
gentoo-664b277ee11d0b31aac867941611c130d1b1415e.tar.bz2
gentoo-664b277ee11d0b31aac867941611c130d1b1415e.zip
app-text/qpdf: Bump to 11.7.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-text/qpdf')
-rw-r--r--app-text/qpdf/Manifest3
-rw-r--r--app-text/qpdf/qpdf-11.7.0.ebuild99
2 files changed, 102 insertions, 0 deletions
diff --git a/app-text/qpdf/Manifest b/app-text/qpdf/Manifest
index 98c0d0d15a54..72f284dc3d2b 100644
--- a/app-text/qpdf/Manifest
+++ b/app-text/qpdf/Manifest
@@ -5,3 +5,6 @@ DIST qpdf-11.6.3.tar.gz 18660605 BLAKE2B c684dab7544fe6024db26c7538cc2e16319aeb6
DIST qpdf-11.6.4-doc.zip 6865106 BLAKE2B e9d68c384fec1da18e4a677b6b1eed58cb2589609af937d39710a4cd8848df93f702778fe83868d2e3a6232fa4e7d044821770f954b558869e1ff435cb934d64 SHA512 2ebbf7b257adc56b27f645cdda9b311c21db4823f3fb6227a408e874a4aff4a0de2ccb578e71790287141cacac71e08d3f13b87e34041e0c6a980ea89918826e
DIST qpdf-11.6.4.tar.gz 18655617 BLAKE2B 57e460f106989e9f5e882f80827c4f0346b4dc829e6dd2f960cd321a3dd6587d77b1fd2a94a5c0a2be32d5e2183e1d98fab53d37cbefe176814f221793807e8c SHA512 4e2497ae0f2524173b9288466e94a5bcab8326c153a605b4de7a7c55f640934818ecb40c2f9bbb7508c5bd7afd529fa1f88dd08647bfaa4d2b3b6118ca928c9a
DIST qpdf-11.6.4.tar.gz.asc 833 BLAKE2B 423552746f54f52dc7149bc1ba6854dfc4df8e4bb9d076c2cf42196e81c16efdf7fffacf3f155c394042ca08a25a5006b007afe932e64697c3f4bd023837a18b SHA512 3b7a78a9233516f98a26b6c320903ed41bad065a2d7a54d4525c60fa7839bb577b7e3b2200df232e205cd844daa7d582a9970c375a9d40d21fc9782e60b41525
+DIST qpdf-11.7.0-doc.zip 6874893 BLAKE2B b14b0f68f4599bd4f396cccbc35b13b0f52b72856de1afd3fdb0c70b33e1702c4afd7c954011df72905c06ff262b08dc9519e44dcef9b7633423d38208542795 SHA512 7ceeff62788defe3649a8d242220c7c8208ebe92dbd9d67b4b53d5036afb1cdbcfe46b4140b064b0542cba2d8eaaad6eedec1ed7b7bd0ccafe2dd7aa20efaa69
+DIST qpdf-11.7.0.tar.gz 18124824 BLAKE2B aa10e154899a7fd53d696b9521cc8a44d4a336094711ddc2a506dac8841ae12ce5bcd604555725d2b6bae3c63a6a3f6ef0e9ab6baf38dd3d7fa71507234378a3 SHA512 6ee302671fd4513c5b22f101feb773b4101de6cc5ff6b0e25d1daa03df82420f87ce7db49a6c47758d7e8bbc3beeb997d4671d52e4cf0ac0d4f817f10677d1f9
+DIST qpdf-11.7.0.tar.gz.asc 833 BLAKE2B e0b15e6ed6b67fc222f7b4d9f863e8630af814bede3605ca56b83b287d7e02c700092e59f3805565884b55af96c4ddd407331cae26273287b546c32a7975c331 SHA512 ef5aa1661944fd56c3f929ee1ffc78229667ed1d1c639aab82a0ff3a3891455e4dcf3dffbb17e9d22862d6426a263182360b19dd58435a2413c19761abc9b966
diff --git a/app-text/qpdf/qpdf-11.7.0.ebuild b/app-text/qpdf/qpdf-11.7.0.ebuild
new file mode 100644
index 000000000000..56334002fb80
--- /dev/null
+++ b/app-text/qpdf/qpdf-11.7.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 cmake verify-sig
+
+DESCRIPTION="Command-line tool for structural, content-preserving transformation of PDF files"
+HOMEPAGE="
+ https://qpdf.sourceforge.io/
+ https://github.com/qpdf/qpdf/
+"
+SRC_URI="
+ https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz
+ doc? (
+ https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}-doc.zip
+ )
+ verify-sig? (
+ https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz.asc
+ )
+"
+
+LICENSE="|| ( Apache-2.0 Artistic-2 )"
+# Subslot for libqpdf soname version (just represent via major version)
+SLOT="0/$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples gnutls test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ media-libs/libjpeg-turbo:=
+ sys-libs/zlib
+ 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 )
+ verify-sig? ( sec-keys/openpgp-keys-jberkenbilt )
+"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ # glibc only (bug #899052)
+ malloc_info
+)
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/jberkenbilt.asc
+
+src_unpack() {
+ if use verify-sig ; then
+ verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
+ fi
+
+ default
+}
+
+src_configure() {
+ local crypto_provider=$(usex gnutls GNUTLS OPENSSL)
+ local crypto_provider_lowercase=${crypto_provider,,}
+
+ # Keep an eye on https://qpdf.readthedocs.io/en/stable/packaging.html.
+ local mycmakeargs=(
+ -DINSTALL_EXAMPLES=$(usex examples)
+
+ # Avoid automagic crypto deps
+ -DUSE_IMPLICIT_CRYPTO=OFF
+ -DALLOW_CRYPTO_NATIVE=ON
+
+ # Breaks install with USE=-doc in 11.0.0?
+ #-DINSTALL_MANUAL=ON
+
+ -DDEFAULT_CRYPTO=${crypto_provider_lowercase}
+ -DREQUIRE_CRYPTO_${crypto_provider}=ON
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ if use doc ; then
+ mv "${WORKDIR}"/${P}-doc "${BUILD_DIR}"/manual/doc-dist || die
+ fi
+
+ cmake_src_install
+
+ # Completions
+ dobashcomp completions/bash/qpdf
+
+ insinto /usr/share/zsh/site-functions
+ doins completions/zsh/_qpdf
+}