1 |
commit: 12d68e5192c7e9e06eb3716be075d0e0cc0518ab |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 8 07:21:26 2022 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 8 07:57:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d68e51 |
7 |
|
8 |
app-crypt/gpgme: Bump to version 1.17.0 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
app-crypt/gpgme/Manifest | 1 + |
13 |
app-crypt/gpgme/gpgme-1.17.0.ebuild | 111 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 112 insertions(+) |
15 |
|
16 |
diff --git a/app-crypt/gpgme/Manifest b/app-crypt/gpgme/Manifest |
17 |
index df3e6542686b..5715ee6062f7 100644 |
18 |
--- a/app-crypt/gpgme/Manifest |
19 |
+++ b/app-crypt/gpgme/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST gpgme-1.15.1.tar.bz2 1699349 BLAKE2B d3a6ccaa35360ed3fc79364dfcc3f2fdcb70e5e41ac72ef011373a39d5def9be9ce1be45843ab65a87630d3fc570d29db5f40b9a273aa8e281464c9d1d3477de SHA512 1d75a848cce6389f7cb8896b57a28dfe1dc5a447bfb4f128b0994a43e04134343400a3be063e971f03dfd595474cfd558519741d5d56afb3e84853ad4f2a45c2 |
22 |
DIST gpgme-1.16.0.tar.bz2 1718913 BLAKE2B da55e695b148e949a1c0770d0298d7a8c9f87d7a1f9e45d380f8c13c472bd44cb4266adb9a113e2b1dcc2596291744f48fdf998ff2de876059d89d184dc87f3a SHA512 69487be69612e9bf0221ff56ae687248bd13635db1b7087130e93c1670e38f3c810bbca17723555c04fe207976c35871bbc3da005179ce099504321cf33636e4 |
23 |
+DIST gpgme-1.17.0.tar.bz2 1748416 BLAKE2B 32df1e3e579275d39507cb013ab7eded12149735f27a5eb1f4c3142df6b97864947a64c7fa58736e6cdea4ae623fb42eeb007596ec08ac5fdfb2af7826447550 SHA512 7ab379c6be2031ff24334a636e596f01c9d491627b695cc6cce7a361e78c6054b7891c521f07becea3c5da10c58043c1acffbba6058bbbfaa515241d75dd6c46 |
24 |
|
25 |
diff --git a/app-crypt/gpgme/gpgme-1.17.0.ebuild b/app-crypt/gpgme/gpgme-1.17.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..c6303a56b2af |
28 |
--- /dev/null |
29 |
+++ b/app-crypt/gpgme/gpgme-1.17.0.ebuild |
30 |
@@ -0,0 +1,111 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+DISTUTILS_OPTIONAL=1 |
38 |
+ |
39 |
+inherit distutils-r1 flag-o-matic libtool qmake-utils toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" |
42 |
+HOMEPAGE="http://www.gnupg.org/related_software/gpgme" |
43 |
+SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2" |
44 |
+ |
45 |
+LICENSE="GPL-2 LGPL-2.1" |
46 |
+SLOT="1/11" # subslot = soname major version |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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" |
48 |
+IUSE="common-lisp static-libs +cxx python qt5" |
49 |
+ |
50 |
+# Note: On each bump, update dep bounds on each version from configure.ac! |
51 |
+RDEPEND=">=app-crypt/gnupg-2 |
52 |
+ >=dev-libs/libassuan-2.5.3:= |
53 |
+ >=dev-libs/libgpg-error-1.36:= |
54 |
+ python? ( ${PYTHON_DEPS} ) |
55 |
+ qt5? ( dev-qt/qtcore:5 )" |
56 |
+ #doc? ( app-doc/doxygen[dot] ) |
57 |
+DEPEND="${RDEPEND} |
58 |
+ qt5? ( dev-qt/qttest:5 )" |
59 |
+BDEPEND="python? ( dev-lang/swig )" |
60 |
+ |
61 |
+REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )" |
62 |
+ |
63 |
+do_python() { |
64 |
+ if use python; then |
65 |
+ pushd "lang/python" > /dev/null || die |
66 |
+ top_builddir="../.." srcdir="." CPP=$(tc-getCPP) distutils-r1_src_${EBUILD_PHASE} |
67 |
+ popd > /dev/null |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ addpredict /run/user/$(id -u)/gnupg |
73 |
+ |
74 |
+ local MAX_WORKDIR=66 |
75 |
+ if [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then |
76 |
+ ewarn "Disabling tests as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail tests" |
77 |
+ SKIP_TESTS=1 |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ elibtoolize |
84 |
+ |
85 |
+ # Make best effort to allow longer PORTAGE_TMPDIR |
86 |
+ # as usock limitation fails build/tests |
87 |
+ ln -s "${P}" "${WORKDIR}/b" |
88 |
+ S="${WORKDIR}/b" |
89 |
+} |
90 |
+ |
91 |
+src_configure() { |
92 |
+ local languages=() |
93 |
+ use common-lisp && languages+=( "cl" ) |
94 |
+ use cxx && languages+=( "cpp" ) |
95 |
+ if use qt5; then |
96 |
+ languages+=( "qt" ) |
97 |
+ #use doc || |
98 |
+ export DOXYGEN=true |
99 |
+ export MOC="$(qt5_get_bindir)/moc" |
100 |
+ fi |
101 |
+ |
102 |
+ econf \ |
103 |
+ $([[ -n "${SKIP_TESTS}" ]] && echo "--disable-gpg-test --disable-gpgsm-test") \ |
104 |
+ --enable-languages="${languages[*]}" \ |
105 |
+ $(use_enable static-libs static) |
106 |
+ |
107 |
+ use python && make -C lang/python prepare |
108 |
+ |
109 |
+ do_python |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ default |
114 |
+ do_python |
115 |
+} |
116 |
+ |
117 |
+src_test() { |
118 |
+ [[ -z "${SKIP_TESTS}" ]] || return |
119 |
+ |
120 |
+ default |
121 |
+ if use python; then |
122 |
+ test_python() { |
123 |
+ emake -C lang/python/tests check \ |
124 |
+ PYTHON=${EPYTHON} \ |
125 |
+ PYTHONS=${EPYTHON} \ |
126 |
+ TESTFLAGS="--python-libdir=${BUILD_DIR}/lib" |
127 |
+ } |
128 |
+ python_foreach_impl test_python |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+src_install() { |
133 |
+ default |
134 |
+ do_python |
135 |
+ find "${ED}" -type f -name '*.la' -delete || die |
136 |
+ |
137 |
+ # backward compatibility for gentoo |
138 |
+ # in the past we had slots |
139 |
+ dodir /usr/include/gpgme |
140 |
+ dosym ../gpgme.h /usr/include/gpgme/gpgme.h |
141 |
+} |