1 |
commit: 4bffb8b541223d4ebaf3a659a42675d57d8419e4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 17 20:56:33 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 17 21:52:04 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bffb8b5 |
7 |
|
8 |
app-crypt/gpgme: add 1.19.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-crypt/gpgme/Manifest | 2 + |
13 |
app-crypt/gpgme/gpgme-1.19.0.ebuild | 162 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 164 insertions(+) |
15 |
|
16 |
diff --git a/app-crypt/gpgme/Manifest b/app-crypt/gpgme/Manifest |
17 |
index fb1c045a3555..50144ff866d9 100644 |
18 |
--- a/app-crypt/gpgme/Manifest |
19 |
+++ b/app-crypt/gpgme/Manifest |
20 |
@@ -2,3 +2,5 @@ DIST gpgme-1.17.1.tar.bz2 1747692 BLAKE2B 44cf9309cbad038f23aa7c5c77fd85be23faf3 |
21 |
DIST gpgme-1.17.1.tar.bz2.sig 119 BLAKE2B 31832424c0e029dc520d3302a71b086d9fcb044c74344cc0fb4b6c6a02d0dd840e62e7eb60acfaf004e6f3650d58436b58e645ef2a50b948ecaf3ca162bf577a SHA512 e1a4213d0d39f2efd0d5c007a0449c76bd650e76e002a9acb673eef0579912db06d844df11a4f7cb821e1d8468d2d6c1303f1c5d915a5c3c9cb5abacfbd004fc |
22 |
DIST gpgme-1.18.0.tar.bz2 1762323 BLAKE2B a071b839eb75455378514f003920cd387320e9fae416e71151cf6ac1b4a058b58ed054450b79e3eeaf820ff5324ea14efa003612867477b7379a776942d62be6 SHA512 c0cb0b337d017793a15dd477a7f5eaef24587fcda3d67676bf746bb342398d04792c51abe3c26ae496e799c769ce667d4196d91d86e8a690d02c6718c8f6b4ac |
23 |
DIST gpgme-1.18.0.tar.bz2.sig 119 BLAKE2B 968f8b24ec71b4157214dd026aed83c96894ef353a9cb171f268d640a62fe464ba43540f318abf95dcfc19dffab177a0c3ad8a6e9937dc80e4ececbc8ceb3203 SHA512 02958d86cc037fffc787c6611ace8676d4e04cc1f65fd117eb911d3bfd665dddb7849bcd838af598465be78960f54883eac09c29c42f891f2e4b9713095aed7d |
24 |
+DIST gpgme-1.19.0.tar.bz2 1821913 BLAKE2B e0359d50cdeff14a20f0e4f463f78b1e1df62e6e3cd50c5f59d90754e7ffe1c74d0c155507bc9d16c61a45a47fdda7e82a86d7db8cbf3999615d854fc1bb5207 SHA512 c6f01ad9432abe33f407e81083dd2f299375ad13b0517429ea1c55fb8cffa05e470dd26f5910a78b8d0f4c8c1e620788a9f369d983c191a3dac681714054fe84 |
25 |
+DIST gpgme-1.19.0.tar.bz2.sig 119 BLAKE2B 699c2db9746c48b133ff71fbf621e3f8b9dc3e11517cb6abea48e7b0b11d6ece1f9e5aa72cfcd74b0cf24f4a51316e055baed0d93c3146e0c13865b0fdf3e9f3 SHA512 cc8bdd83063155e4aa893b4fe79208d4ff524fcaa4e21b6de0dd879501bdb21ebd7074e841625aa5b4c206273297232d3c005f44abd05214b5d9d711eb980c07 |
26 |
|
27 |
diff --git a/app-crypt/gpgme/gpgme-1.19.0.ebuild b/app-crypt/gpgme/gpgme-1.19.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..93eccd707136 |
30 |
--- /dev/null |
31 |
+++ b/app-crypt/gpgme/gpgme-1.19.0.ebuild |
32 |
@@ -0,0 +1,162 @@ |
33 |
+# Copyright 1999-2023 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+# Maintainers should: |
39 |
+# 1. Join the "Gentoo" project at https://dev.gnupg.org/project/view/27/ |
40 |
+# 2. Subscribe to release tasks like https://dev.gnupg.org/T6159 |
41 |
+# (find the one for the current release then subscribe to it + |
42 |
+# any subsequent ones linked within so you're covered for a while.) |
43 |
+ |
44 |
+DISTUTILS_OPTIONAL=1 |
45 |
+PYTHON_COMPAT=( python3_{9..11} ) |
46 |
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
47 |
+ |
48 |
+inherit distutils-r1 libtool flag-o-matic qmake-utils toolchain-funcs verify-sig |
49 |
+ |
50 |
+DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" |
51 |
+HOMEPAGE="https://www.gnupg.org/related_software/gpgme" |
52 |
+SRC_URI=" |
53 |
+ mirror://gnupg/gpgme/${P}.tar.bz2 |
54 |
+ verify-sig? ( mirror://gnupg/gpgme/${P}.tar.bz2.sig ) |
55 |
+" |
56 |
+ |
57 |
+LICENSE="GPL-2 LGPL-2.1" |
58 |
+# Please check ABI on each bump, even if SONAMEs didn't change: bug #833355 |
59 |
+# Use e.g. app-portage/iwdevtools integration with dev-libs/libabigail's abidiff. |
60 |
+# Subslot: SONAME of each: <libgpgme.libgpgmepp.libqgpgme.FUDGE> |
61 |
+# Bump FUDGE if a release is made which breaks ABI without changing SONAME. |
62 |
+# (Reset to 0 if FUDGE != 0 if libgpgme/libgpgmepp/libqpggme change.) |
63 |
+SLOT="1/11.6.15.2" |
64 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
65 |
+IUSE="common-lisp static-libs +cxx python qt5 test" |
66 |
+RESTRICT="!test? ( test )" |
67 |
+REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )" |
68 |
+ |
69 |
+# - On each bump, update dep bounds on each version from configure.ac! |
70 |
+RDEPEND=" |
71 |
+ >=app-crypt/gnupg-2 |
72 |
+ >=dev-libs/libassuan-2.5.3:= |
73 |
+ >=dev-libs/libgpg-error-1.36:= |
74 |
+ >=dev-libs/libgpg-error-1.46-r1 |
75 |
+ python? ( ${PYTHON_DEPS} ) |
76 |
+ qt5? ( dev-qt/qtcore:5 ) |
77 |
+" |
78 |
+DEPEND=" |
79 |
+ ${RDEPEND} |
80 |
+ test? ( |
81 |
+ qt5? ( dev-qt/qttest:5 ) |
82 |
+ ) |
83 |
+" |
84 |
+#doc? ( app-doc/doxygen[dot] ) |
85 |
+BDEPEND=" |
86 |
+ python? ( dev-lang/swig ) |
87 |
+ verify-sig? ( sec-keys/openpgp-keys-gnupg ) |
88 |
+" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}"/${PN}-1.18.0-tests-start-stop-agent-use-command-v.patch |
92 |
+) |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ default |
96 |
+ |
97 |
+ elibtoolize |
98 |
+ |
99 |
+ # bug #697456 |
100 |
+ addpredict /run/user/$(id -u)/gnupg |
101 |
+ |
102 |
+ local MAX_WORKDIR=66 |
103 |
+ if use test && [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then |
104 |
+ eerror "Unable to run tests as WORKDIR='${WORKDIR}' is longer than ${MAX_WORKDIR} which causes failure!" |
105 |
+ die "Could not run tests as requested with too-long WORKDIR." |
106 |
+ fi |
107 |
+ |
108 |
+ # Make best effort to allow longer PORTAGE_TMPDIR |
109 |
+ # as usock limitation fails build/tests |
110 |
+ ln -s "${P}" "${WORKDIR}/b" || die |
111 |
+ S="${WORKDIR}/b" |
112 |
+} |
113 |
+ |
114 |
+src_configure() { |
115 |
+ local languages=() |
116 |
+ |
117 |
+ # bug #847955 |
118 |
+ append-lfs-flags |
119 |
+ |
120 |
+ if use common-lisp ; then |
121 |
+ languages+=( "cl" ) |
122 |
+ fi |
123 |
+ |
124 |
+ if use cxx ; then |
125 |
+ languages+=( "cpp" ) |
126 |
+ fi |
127 |
+ |
128 |
+ # TODO: qt6? but qt5 and qt5 are mutually exclusive :( |
129 |
+ if use qt5; then |
130 |
+ languages+=( "qt5" ) |
131 |
+ |
132 |
+ #use doc || |
133 |
+ export DOXYGEN=true |
134 |
+ export MOC="$(qt5_get_bindir)/moc" |
135 |
+ fi |
136 |
+ |
137 |
+ local myeconfargs=( |
138 |
+ $(use test || echo "--disable-gpgconf-test --disable-gpg-test --disable-gpgsm-test --disable-g13-test") |
139 |
+ --enable-languages="${languages[*]}" |
140 |
+ $(use_enable static-libs static) |
141 |
+ ) |
142 |
+ |
143 |
+ econf "${myeconfargs[@]}" |
144 |
+ |
145 |
+ if use python ; then |
146 |
+ emake -C lang/python prepare |
147 |
+ |
148 |
+ pushd lang/python > /dev/null || die |
149 |
+ top_builddir="../.." srcdir="." CPP="$(tc-getCPP)" distutils-r1_src_configure |
150 |
+ popd > /dev/null || die |
151 |
+ fi |
152 |
+} |
153 |
+ |
154 |
+src_compile() { |
155 |
+ default |
156 |
+ |
157 |
+ if use python ; then |
158 |
+ pushd lang/python > /dev/null || die |
159 |
+ top_builddir="../.." srcdir="." CPP="$(tc-getCPP)" distutils-r1_src_compile |
160 |
+ popd > /dev/null || die |
161 |
+ fi |
162 |
+} |
163 |
+ |
164 |
+src_test() { |
165 |
+ default |
166 |
+ |
167 |
+ if use python ; then |
168 |
+ distutils-r1_src_test |
169 |
+ fi |
170 |
+} |
171 |
+ |
172 |
+python_test() { |
173 |
+ emake -C lang/python/tests check \ |
174 |
+ PYTHON=${EPYTHON} \ |
175 |
+ PYTHONS=${EPYTHON} \ |
176 |
+ TESTFLAGS="--python-libdir=${BUILD_DIR}/lib" |
177 |
+} |
178 |
+ |
179 |
+src_install() { |
180 |
+ default |
181 |
+ |
182 |
+ if use python ; then |
183 |
+ pushd lang/python > /dev/null || die |
184 |
+ top_builddir="../.." srcdir="." CPP="$(tc-getCPP)" distutils-r1_src_install |
185 |
+ popd > /dev/null || die |
186 |
+ fi |
187 |
+ |
188 |
+ find "${ED}" -type f -name '*.la' -delete || die |
189 |
+ |
190 |
+ # Backward compatibility for gentoo |
191 |
+ # (in the past, we had slots) |
192 |
+ dodir /usr/include/gpgme |
193 |
+ dosym ../gpgme.h /usr/include/gpgme/gpgme.h |
194 |
+} |