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