diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-31 17:43:40 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-31 18:21:53 +0100 |
commit | d984f6872fa61936967e656ccc68d63e11db92a6 (patch) | |
tree | a1e72763b12cca09629ac429ba93693a1809764f /app-text/qpdf | |
parent | sec-keys/openpgp-keys-jberkenbilt: Add key, v1 (diff) | |
download | gentoo-d984f6872fa61936967e656ccc68d63e11db92a6.tar.gz gentoo-d984f6872fa61936967e656ccc68d63e11db92a6.tar.bz2 gentoo-d984f6872fa61936967e656ccc68d63e11db92a6.zip |
app-text/qpdf: Bump to 11.6.4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-text/qpdf')
-rw-r--r-- | app-text/qpdf/Manifest | 3 | ||||
-rw-r--r-- | app-text/qpdf/qpdf-11.6.4.ebuild | 97 |
2 files changed, 100 insertions, 0 deletions
diff --git a/app-text/qpdf/Manifest b/app-text/qpdf/Manifest index 74917605c3a1..98c0d0d15a54 100644 --- a/app-text/qpdf/Manifest +++ b/app-text/qpdf/Manifest @@ -2,3 +2,6 @@ DIST qpdf-11.5.0-doc.zip 6858454 BLAKE2B bd1e7f974eb2b0e22395216a1e3d55b18b1140c DIST qpdf-11.5.0.tar.gz 18638138 BLAKE2B 54545665a31cf0cbfc50faa18f1dc64f036cd5bfd2b274ff443718e704e26f3a8cf83600f9dd7d8039cf4bdcaf42e1c14f03db775226b56c8ba53be33e0ca522 SHA512 3c8504de11c34e7d623b829c0c987ba5555c2bdcfdd5d4408d29f321fd79154ec2d6fa76f45556046dfc931b51bd75e3062973c36c8020383acacbe56c90e04c DIST qpdf-11.6.3-doc.zip 6864204 BLAKE2B 05a9d44b877ab9eab4548646ec2cd8110a47e594b0b1d364c7a5d25b249efa368f94c0e549da8697f685fde17ce59378a32e6c31f5dcd1731c97a2434cbe5af0 SHA512 0cdeb6d408823a49909d2394a9cedd8ae5d4f9fd4f4dbef70ce60c60401bc9b78b1740669f46b78609f11b0b4c8bdaafe094158e52b9449dca32d6afd3ece377 DIST qpdf-11.6.3.tar.gz 18660605 BLAKE2B c684dab7544fe6024db26c7538cc2e16319aeb6c023b53ea97ec9c5ae474ac67538a99a80524d924ac0758f0fc7d552dbea1a47df7595b25dbec121738a07ec8 SHA512 afc1d130e10bb527a7425ce39f6d93245c3d9b08002d104fdf0e909b586f80174fa2eed863794f10b76bab86a064b904eebca89902212accc45a68f9430c122e +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 diff --git a/app-text/qpdf/qpdf-11.6.4.ebuild b/app-text/qpdf/qpdf-11.6.4.ebuild new file mode 100644 index 000000000000..fa1477cfe723 --- /dev/null +++ b/app-text/qpdf/qpdf-11.6.4.ebuild @@ -0,0 +1,97 @@ +# 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.net/ + https://github.com/qpdf/qpdf/ +" +SRC_URI=" + https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( + https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz.asc + ) +" +SRC_URI+=" doc? ( https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}-doc.zip )" + +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 +} |