Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gpgme/
Date: Thu, 01 Sep 2022 02:16:33
Message-Id: 1661998548.b140713e716f7ba9927dbfac65714f2bfec63a9a.sam@gentoo
1 commit: b140713e716f7ba9927dbfac65714f2bfec63a9a
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Wed Aug 31 01:00:43 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 02:15:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b140713e
7
8 app-crypt/gpgme: Remove --with-libassuan-prefix
9
10 The --with-libassuan-prefix configure argument causes app-crypt/gpgme to
11 use the deprecated libassuan-config script instead of the maintained
12 gpgrt-config script.
13
14 Bug: https://bugs.gentoo.org/811933
15 Closes: https://bugs.gentoo.org/844226
16 Upstream-Bug: https://dev.gnupg.org/T6136
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 app-crypt/gpgme/gpgme-1.18.0-r1.ebuild | 130 +++++++++++++++++++++++++++++++++
20 1 file changed, 130 insertions(+)
21
22 diff --git a/app-crypt/gpgme/gpgme-1.18.0-r1.ebuild b/app-crypt/gpgme/gpgme-1.18.0-r1.ebuild
23 new file mode 100644
24 index 000000000000..66befaf859db
25 --- /dev/null
26 +++ b/app-crypt/gpgme/gpgme-1.18.0-r1.ebuild
27 @@ -0,0 +1,130 @@
28 +# Copyright 1999-2022 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=8
32 +
33 +PYTHON_COMPAT=( python3_{8..11} )
34 +DISTUTILS_OPTIONAL=1
35 +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc
36 +
37 +inherit distutils-r1 libtool flag-o-matic qmake-utils toolchain-funcs verify-sig
38 +
39 +DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
40 +HOMEPAGE="https://www.gnupg.org/related_software/gpgme"
41 +SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2
42 + verify-sig? ( mirror://gnupg/gpgme/${P}.tar.bz2.sig )"
43 +
44 +LICENSE="GPL-2 LGPL-2.1"
45 +# Please check ABI on each bump, even if SONAMEs didn't change: bug #833355
46 +# Use e.g. app-portage/iwdevtools integration with dev-libs/libabigail's abidiff.
47 +# Subslot: SONAME of each: <libgpgme.libgpgmepp.libqgpgme.FUDGE>
48 +# Bump FUDGE if a release is made which breaks ABI without changing SONAME.
49 +# (Reset to 0 if FUDGE != 0 if libgpgme/libgpgmepp/libqpggme change.)
50 +SLOT="1/11.6.15.1"
51 +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"
52 +IUSE="common-lisp static-libs +cxx python qt5 test"
53 +RESTRICT="!test? ( test )"
54 +
55 +# Note: On each bump, update dep bounds on each version from configure.ac!
56 +RDEPEND=">=app-crypt/gnupg-2
57 + >=dev-libs/libassuan-2.5.3:=
58 + >=dev-libs/libgpg-error-1.36:=
59 + python? ( ${PYTHON_DEPS} )
60 + qt5? ( dev-qt/qtcore:5 )"
61 + #doc? ( app-doc/doxygen[dot] )
62 +DEPEND="${RDEPEND}
63 + test? (
64 + qt5? ( dev-qt/qttest:5 )
65 + )"
66 +BDEPEND="python? ( dev-lang/swig )
67 + verify-sig? ( sec-keys/openpgp-keys-gnupg )"
68 +
69 +REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )"
70 +
71 +PATCHES=(
72 + "${FILESDIR}"/${PN}-1.18.0-tests-start-stop-agent-use-command-v.patch
73 +)
74 +
75 +do_python() {
76 + if use python; then
77 + pushd "lang/python" > /dev/null || die
78 + top_builddir="../.." srcdir="." CPP="$(tc-getCPP)" distutils-r1_src_${EBUILD_PHASE}
79 + popd > /dev/null || die
80 + fi
81 +}
82 +
83 +src_prepare() {
84 + default
85 +
86 + elibtoolize
87 +
88 + # bug #697456
89 + addpredict /run/user/$(id -u)/gnupg
90 +
91 + local MAX_WORKDIR=66
92 + if use test && [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then
93 + eerror "Unable to run tests as WORKDIR='${WORKDIR}' is longer than ${MAX_WORKDIR} which causes failure!"
94 + die "Could not run tests as requested with too-long WORKDIR."
95 + fi
96 +
97 + # Make best effort to allow longer PORTAGE_TMPDIR
98 + # as usock limitation fails build/tests
99 + ln -s "${P}" "${WORKDIR}/b" || die
100 + S="${WORKDIR}/b"
101 +}
102 +
103 +src_configure() {
104 + local languages=()
105 +
106 + use common-lisp && languages+=( "cl" )
107 + use cxx && languages+=( "cpp" )
108 + if use qt5; then
109 + languages+=( "qt" )
110 + #use doc ||
111 + export DOXYGEN=true
112 + export MOC="$(qt5_get_bindir)/moc"
113 + fi
114 +
115 + # bug #847955
116 + append-lfs-flags
117 +
118 + econf \
119 + $(use test || echo "--disable-gpgconf-test --disable-gpg-test --disable-gpgsm-test --disable-g13-test") \
120 + --enable-languages="${languages[*]}" \
121 + $(use_enable static-libs static)
122 +
123 + use python && emake -C lang/python prepare
124 +
125 + do_python
126 +}
127 +
128 +src_compile() {
129 + default
130 + do_python
131 +}
132 +
133 +src_test() {
134 + default
135 +
136 + use python && distutils-r1_src_test
137 +}
138 +
139 +python_test() {
140 + emake -C lang/python/tests check \
141 + PYTHON=${EPYTHON} \
142 + PYTHONS=${EPYTHON} \
143 + TESTFLAGS="--python-libdir=${BUILD_DIR}/lib"
144 +}
145 +
146 +src_install() {
147 + default
148 +
149 + do_python
150 +
151 + find "${ED}" -type f -name '*.la' -delete || die
152 +
153 + # Backward compatibility for gentoo
154 + # (in the past, we had slots)
155 + dodir /usr/include/gpgme
156 + dosym ../gpgme.h /usr/include/gpgme/gpgme.h
157 +}