summaryrefslogtreecommitdiff
path: root/app-text/qpdf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-11-21 13:04:20 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-11-21 13:04:20 +0000
commitf5a622ba784bb66ee85eb669a821801c5e135ed8 (patch)
treeb385c400b3bcebc972419f425e15cf34f4d679c2 /app-text/qpdf
parent1ad2c51f9cc380c164b03ed03acda1c3fcc0a476 (diff)
gentoo auto-resync : 21:11:2022 - 13:04:20
Diffstat (limited to 'app-text/qpdf')
-rw-r--r--app-text/qpdf/Manifest3
-rw-r--r--app-text/qpdf/qpdf-11.2.0.ebuild77
2 files changed, 80 insertions, 0 deletions
diff --git a/app-text/qpdf/Manifest b/app-text/qpdf/Manifest
index 18524bd75ef7..1e0f9ab371f4 100644
--- a/app-text/qpdf/Manifest
+++ b/app-text/qpdf/Manifest
@@ -2,6 +2,9 @@ DIST qpdf-10.6.3-doc.zip 6852725 BLAKE2B 407b5994d3c3f80f71e60da12ebecf2c977fecb
DIST qpdf-10.6.3.tar.gz 18573584 BLAKE2B 3b6ee845163ab6593ba3d85e8563e4f56f57a831e2bf67fd3a2ccd19aaca47af8c50e03dede233380442384e5bb8fa3fc317a8c54732d2cf3bdfd7d152210a4c SHA512 c584b7443984b0f28eec2fbff054096b9a14a10858dda0c6b370d7a19e34c395ee15a8dc0770d3d85773281cd79944f029fb3bfad55833a2c32ff7e1a751c149
DIST qpdf-11.1.1-doc.zip 7062109 BLAKE2B f9ffa32efa3835427773ee6ef87985388722b868f5a6e9a6df23e5458c2fde049aadbc98dc6966c0b2268c7a264af07cb448f61e49e04b25d908f2bafe140469 SHA512 6e4b87abefedcaf1e3407d1630f9c6e796db64b3cdae25a9489d8f0b1d5c06673821436877c36f015d6a5d126feefda17bb246f0b8ea87c0617238254816f7c2
DIST qpdf-11.1.1.tar.gz 18464793 BLAKE2B 66fa80b513bc5ef033a60011e34df1c6e9ac6a8b777ab1eb30aeddfa077827dcfe30f6ea5816ab0ec208840d4dc2b4e3823449378b5bc50073ae1d754fb124c4 SHA512 da7540152a82cbb853089afa2503ece04086513bab662171758f1e0e928ac09cc7c00e61470bd5ec5285d99ef586b59ad66d5ff90e9060b1361d837fe18cbc24
+DIST qpdf-11.2.0-doc.zip 7066797 BLAKE2B c30d3d768bc0d49d751a4c15d3dd5c72040a0b983acc4844d57ab445a57b61023f24f21a4fedf5d336cc906c68feba511aa33ab8cfc45a463cc37e9162970ad9 SHA512 388fc34b34a1b2b1ad227c8dec8bc464472b150faba30d403e1256cc20a61921e33758e338a8fb2d177694d80af5b87c32ea3f7f258b4796f5e6688117ced768
+DIST qpdf-11.2.0.tar.gz 18450040 BLAKE2B e42aeaf911f9d912eb0abfbebbe737ab9927c337b46cf96f9286ec3ce562c887c23922695435da90f04e8149e16de204563832e1fd742ffe8665d123efc6c699 SHA512 6e28be1fc9cb6aa124229301a43a565ef80ffffab9bacaeabebfbf4ced17c9702a432330a995be390a8fe3d69ac1773ca72b6c24e40f1bf74a71219e02dbac70
EBUILD qpdf-10.6.3.ebuild 1855 BLAKE2B 3579d2303c15c8fc84a6bcb804986574f4a7e36f66e69b2411494c8106d6b1874e979809bf828b9a7af410494579da7fad762ff5df374abd0afbb105b7df6175 SHA512 2ceadd6b80689c2ae8a5ddd5e4960f441883005c61d3c6e18d52666421ac747330a6479485a606043e54f2530c8ab1426f6d1d554f7830bdd9d35dc7471f0077
EBUILD qpdf-11.1.1.ebuild 1865 BLAKE2B f828b1962bcc6f858657f5ab0f1aa5cc4de53f3b1f9ad45ced60e262d76dbaec31dd472a843304ec0160845604933034a3eaf5ac4e19055ff5ad66cc76d71c35 SHA512 6a644b9d79420eae2c2ed69432151715845bbe91285698315e0107acb13d6dd158b010352f7204e61c8113a2d4fe92dc981cb32927805d43e0a880159d8a6b60
+EBUILD qpdf-11.2.0.ebuild 1873 BLAKE2B 3f505a8925e86e540eaf5c041053f6fae32fa41a9449e09d40571ca6f0e09b2ee8523d8359621119669c64fd121acb59cf77377b3de20254071a4699a6a8fec0 SHA512 93f89f21752f0744035cd281159bdfdeeed7e2aa032a26ad52815e6656dff6b1507f9b27ac5164f2e235a903ee706ef7f536b36d6fdf28f343b8c071cf209258
MISC metadata.xml 444 BLAKE2B 1febc86d8f85aff5ec02d910550aca3bde66111c3e7364b264db3fca10020ea9bc2887dc8283217e2cb8d05ba46c176a92993e0d418528cbe590771dccc49d90 SHA512 dde5e34ef0d6c65df8a2ca8d630182413800f4c10f4b9860ed752623b6f4864dd4969c757e06b2689c8c5da3377bfcc28ec223e531432add083cd4a68211ea1c
diff --git a/app-text/qpdf/qpdf-11.2.0.ebuild b/app-text/qpdf/qpdf-11.2.0.ebuild
new file mode 100644
index 000000000000..4deb35b1acec
--- /dev/null
+++ b/app-text/qpdf/qpdf-11.2.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2022 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 ~sparc-solaris"
+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 )
+"
+
+DOCS=( ChangeLog README.md TODO )
+
+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
+}