diff options
author | Sam James <sam@gentoo.org> | 2023-09-07 21:45:49 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-07 21:50:19 +0100 |
commit | 294fa7aaeb98d4c7d913cacf3d6917ed4eb6090f (patch) | |
tree | eb9f286a7aad20b57f7727ff01e91faf88796323 /app-text | |
parent | sys-apps/systemd: re-sync keywords in live (diff) | |
download | gentoo-294fa7aaeb98d4c7d913cacf3d6917ed4eb6090f.tar.gz gentoo-294fa7aaeb98d4c7d913cacf3d6917ed4eb6090f.tar.bz2 gentoo-294fa7aaeb98d4c7d913cacf3d6917ed4eb6090f.zip |
app-text/qpdf: add 11.6.1
Closes: https://bugs.gentoo.org/912421
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/qpdf/Manifest | 2 | ||||
-rw-r--r-- | app-text/qpdf/qpdf-11.6.1.ebuild | 75 |
2 files changed, 77 insertions, 0 deletions
diff --git a/app-text/qpdf/Manifest b/app-text/qpdf/Manifest index b7b3d0152db1..6a696591ebe2 100644 --- a/app-text/qpdf/Manifest +++ b/app-text/qpdf/Manifest @@ -8,3 +8,5 @@ DIST qpdf-11.4.0-doc.zip 6854262 BLAKE2B 58b55287fbef37beae452803db409e163f3fcf4 DIST qpdf-11.4.0.tar.gz 18643945 BLAKE2B cde1c4db4c51733fe71a7e46fc271817825b5a56ce81053edf0f886eabdf13bce55308dd36ebf9b5067dcf173f371135bbc651253a7df214b9863c2b62cdde8f SHA512 6f31a37a9a52752c89d319e0d29d8e6c1e4885ca494de47a65f9374cdb5672497ab93f754481300c8e6c68fc2874860997b778dc05386b6f3e6a5a70a3f9f754 DIST qpdf-11.5.0-doc.zip 6858454 BLAKE2B bd1e7f974eb2b0e22395216a1e3d55b18b1140c2210b230e5382934e5465314f8c73db5e24b8daf2478b89d94eba6214452be5f9f1ec4eb06fe6f5b254742caf SHA512 263fa79a9a1d14086787adf8ce2cfb1e951f504cb214a9c4b44e261a72e715a33e03dc3084a8aaa76e0b068ac0fe5905c6a1ec99e52e962c1589f1f4d0e6f678 DIST qpdf-11.5.0.tar.gz 18638138 BLAKE2B 54545665a31cf0cbfc50faa18f1dc64f036cd5bfd2b274ff443718e704e26f3a8cf83600f9dd7d8039cf4bdcaf42e1c14f03db775226b56c8ba53be33e0ca522 SHA512 3c8504de11c34e7d623b829c0c987ba5555c2bdcfdd5d4408d29f321fd79154ec2d6fa76f45556046dfc931b51bd75e3062973c36c8020383acacbe56c90e04c +DIST qpdf-11.6.1-doc.zip 6861634 BLAKE2B bc9f566de9bc403e9a81184ef860cf2c39253228e4ad776f999d8b896958242fca4833517b03ce1c92e03983a39a17a1b02f3605df354afc414b82a5dbf6398b SHA512 efb8ff85c2a5c712f2f78213eddd6c8568727ff6d15d31da2880ee487053c9d703c47ac383f008f6abbf87feb262c6aa2a84419d21e7b4859215509e80d6814a +DIST qpdf-11.6.1.tar.gz 18646767 BLAKE2B fd6163963eb192b38ed1e78cba443e9e247e6ff408efd6cb480c81ac3d9d233e00edf9ef0858e51ac755b2b7cea0d8763ac6dda3fe9d54618114b4b3a00d5b15 SHA512 a3ce1a531331a6f7e33244d598118f9463f92f0466fd1f2aa3dcdc6dc2c1db0811d00e5ff16ad33ccc81a702ff8dbec719f56194f944de1e00f5e6cc8ed17a69 diff --git a/app-text/qpdf/qpdf-11.6.1.ebuild b/app-text/qpdf/qpdf-11.6.1.ebuild new file mode 100644 index 000000000000..12e307695db6 --- /dev/null +++ b/app-text/qpdf/qpdf-11.6.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake bash-completion-r1 + +DESCRIPTION="Command-line tool for structural, content-preserving transformation of PDF files" +HOMEPAGE="https://qpdf.sourceforge.net/" +# TODO: verify-sig +SRC_URI="https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz" +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 ssl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + media-libs/libjpeg-turbo:= + sys-libs/zlib + 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 ) +" + +src_configure() { + # Keep an eye on https://qpdf.readthedocs.io/en/stable/packaging.html. + local mycmakeargs=( + -DINSTALL_EXAMPLES=$(usex examples) + + # Breaks install with USE=-doc in 11.0.0? + #-DINSTALL_MANUAL=ON + ) + + if use ssl ; then + local crypto_provider=$(usex gnutls GNUTLS OPENSSL) + local crypto_provider_lowercase=${crypto_provider,,} + mycmakeargs+=( + -DDEFAULT_CRYPTO=${crypto_provider_lowercase} + -DREQUIRE_CRYPTO_${crypto_provider}=ON + ) + fi + + 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 +} |