1 |
commit: a162a3be8e9e82ac491e38492db7f72c3aa04c50 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 2 01:09:26 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 2 01:09:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a162a3be |
7 |
|
8 |
app-text/qpdf: add 11.1.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-text/qpdf/Manifest | 2 ++ |
13 |
app-text/qpdf/qpdf-11.1.1.ebuild | 77 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 79 insertions(+) |
15 |
|
16 |
diff --git a/app-text/qpdf/Manifest b/app-text/qpdf/Manifest |
17 |
index f2388856b296..c10b476a929d 100644 |
18 |
--- a/app-text/qpdf/Manifest |
19 |
+++ b/app-text/qpdf/Manifest |
20 |
@@ -4,3 +4,5 @@ DIST qpdf-11.0.0-doc.zip 7049971 BLAKE2B 25191511e4327d99eab8bcd08b1db3a16c52898 |
21 |
DIST qpdf-11.0.0.tar.gz 18452218 BLAKE2B bb1dabae56f6ef5ca635ec7a0434387294ff6b6150ed19335243ac8774f4ecb57a7f97b00ef07c0c4f3bdfd2b510b4699324f77405c2342162c37a7860313c56 SHA512 08f1f3cfb3bc1532d04da9a3453dee6c9b411020c0a1dfe112da1961dd4d6dc76d6e89d57cb00b3b8b0cf0848e9fd3032a16c3c591a89b5631d0badfb44ef234 |
22 |
DIST qpdf-11.1.0-doc.zip 7053772 BLAKE2B 8e2d377fc40a8206567e82733125b4abf23f07d062e0416ed2f2d9349a3555188cba1b68737cfae8943bcda3b93effdd020548b45d257eb9845fe1b569394000 SHA512 300dca6495ff9770138b7166e584cff1f2d26c60f273030211a895cf0f0147124240c2f22e79fae4f66595b863e2ce9dcdd7e8144c8b64357bf9a9e9b92ca6ea |
23 |
DIST qpdf-11.1.0.tar.gz 18452386 BLAKE2B 1df1f148db3132073f5e504b0dc79f8029e7049b334591d5dbd0adb425964d2d97ae5e086a3cbfcd82c82b22491b7b8897db8c3f20dab35feac3657066c6a776 SHA512 4c4daf3e6ae40e57d0d099abb7c9e694b7bec0c6657ffa4dc084f295d57799b8a5cbe5827d346fcbb89fa88a84c4dbd9a5437cc649b617cd479231c9ecc3fb5a |
24 |
+DIST qpdf-11.1.1-doc.zip 7062109 BLAKE2B f9ffa32efa3835427773ee6ef87985388722b868f5a6e9a6df23e5458c2fde049aadbc98dc6966c0b2268c7a264af07cb448f61e49e04b25d908f2bafe140469 SHA512 6e4b87abefedcaf1e3407d1630f9c6e796db64b3cdae25a9489d8f0b1d5c06673821436877c36f015d6a5d126feefda17bb246f0b8ea87c0617238254816f7c2 |
25 |
+DIST qpdf-11.1.1.tar.gz 18464793 BLAKE2B 66fa80b513bc5ef033a60011e34df1c6e9ac6a8b777ab1eb30aeddfa077827dcfe30f6ea5816ab0ec208840d4dc2b4e3823449378b5bc50073ae1d754fb124c4 SHA512 da7540152a82cbb853089afa2503ece04086513bab662171758f1e0e928ac09cc7c00e61470bd5ec5285d99ef586b59ad66d5ff90e9060b1361d837fe18cbc24 |
26 |
|
27 |
diff --git a/app-text/qpdf/qpdf-11.1.1.ebuild b/app-text/qpdf/qpdf-11.1.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..774c671b8246 |
30 |
--- /dev/null |
31 |
+++ b/app-text/qpdf/qpdf-11.1.1.ebuild |
32 |
@@ -0,0 +1,77 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit cmake bash-completion-r1 |
39 |
+ |
40 |
+DESCRIPTION="Command-line tool for structural, content-preserving transformation of PDF files" |
41 |
+HOMEPAGE="https://qpdf.sourceforge.net/" |
42 |
+# TODO: verify-sig |
43 |
+SRC_URI="https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz" |
44 |
+SRC_URI+=" doc? ( https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}-doc.zip )" |
45 |
+ |
46 |
+LICENSE="|| ( Apache-2.0 Artistic-2 )" |
47 |
+# Subslot for libqpdf soname version (just represent via major version) |
48 |
+SLOT="0/$(ver_cut 1)" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris" |
50 |
+IUSE="doc examples gnutls ssl test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ media-libs/libjpeg-turbo:= |
55 |
+ sys-libs/zlib |
56 |
+ ssl? ( |
57 |
+ gnutls? ( net-libs/gnutls:= ) |
58 |
+ !gnutls? ( dev-libs/openssl:= ) |
59 |
+ ) |
60 |
+" |
61 |
+DEPEND=" |
62 |
+ ${RDEPEND} |
63 |
+ test? ( |
64 |
+ app-text/ghostscript-gpl[tiff(+)] |
65 |
+ media-libs/tiff |
66 |
+ sys-apps/diffutils |
67 |
+ ) |
68 |
+" |
69 |
+BDEPEND=" |
70 |
+ dev-lang/perl |
71 |
+ doc? ( app-arch/unzip ) |
72 |
+" |
73 |
+ |
74 |
+DOCS=( ChangeLog README.md TODO ) |
75 |
+ |
76 |
+src_configure() { |
77 |
+ # Keep an eye on https://qpdf.readthedocs.io/en/stable/packaging.html. |
78 |
+ local mycmakeargs=( |
79 |
+ -DINSTALL_EXAMPLES=$(usex examples) |
80 |
+ |
81 |
+ # Breaks install with USE=-doc in 11.0.0? |
82 |
+ #-DINSTALL_MANUAL=ON |
83 |
+ ) |
84 |
+ |
85 |
+ if use ssl ; then |
86 |
+ local crypto_provider=$(usex gnutls GNUTLS OPENSSL) |
87 |
+ local crypto_provider_lowercase=${crypto_provider,,} |
88 |
+ mycmakeargs+=( |
89 |
+ -DDEFAULT_CRYPTO=${crypto_provider_lowercase} |
90 |
+ -DREQUIRE_CRYPTO_${crypto_provider}=ON |
91 |
+ ) |
92 |
+ fi |
93 |
+ |
94 |
+ cmake_src_configure |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ if use doc ; then |
99 |
+ mv "${WORKDIR}"/${P}-doc "${BUILD_DIR}"/manual/doc-dist || die |
100 |
+ fi |
101 |
+ |
102 |
+ cmake_src_install |
103 |
+ |
104 |
+ # Completions |
105 |
+ dobashcomp completions/bash/qpdf |
106 |
+ |
107 |
+ insinto /usr/share/zsh/site-functions |
108 |
+ doins completions/zsh/_qpdf |
109 |
+} |