1 |
commit: 2d03f8f2e0b5920130340ee30f388b78847434c1 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 26 18:09:03 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 27 00:49:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d03f8f2 |
7 |
|
8 |
app-crypt/gpgme: depend on >=dev-libs/libassuan-2.5.3 |
9 |
|
10 |
This is necessary to avoid a pkg-config dependency error. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/692738 |
13 |
Package-Manager: Portage-2.3.75_p7, Repoman-2.3.17_p49 |
14 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
15 |
|
16 |
app-crypt/gpgme/gpgme-1.13.0-r1.ebuild | 117 +++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 117 insertions(+) |
18 |
|
19 |
diff --git a/app-crypt/gpgme/gpgme-1.13.0-r1.ebuild b/app-crypt/gpgme/gpgme-1.13.0-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..7c4ca43d823 |
22 |
--- /dev/null |
23 |
+++ b/app-crypt/gpgme/gpgme-1.13.0-r1.ebuild |
24 |
@@ -0,0 +1,117 @@ |
25 |
+# Copyright 1999-2019 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
31 |
+DISTUTILS_OPTIONAL=1 |
32 |
+ |
33 |
+inherit distutils-r1 flag-o-matic libtool qmake-utils toolchain-funcs |
34 |
+ |
35 |
+DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" |
36 |
+HOMEPAGE="http://www.gnupg.org/related_software/gpgme" |
37 |
+SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2" |
38 |
+ |
39 |
+LICENSE="GPL-2 LGPL-2.1" |
40 |
+SLOT="1/11" # subslot = soname major version |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-cygwin ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
42 |
+IUSE="common-lisp static-libs cxx python qt5" |
43 |
+ |
44 |
+COMMON_DEPEND=">=app-crypt/gnupg-2 |
45 |
+ >=dev-libs/libassuan-2.5.3:= |
46 |
+ >=dev-libs/libgpg-error-1.29:= |
47 |
+ python? ( ${PYTHON_DEPS} ) |
48 |
+ qt5? ( dev-qt/qtcore:5 )" |
49 |
+ #doc? ( app-doc/doxygen[dot] ) |
50 |
+DEPEND="${COMMON_DEPEND} |
51 |
+ qt5? ( dev-qt/qttest:5 )" |
52 |
+RDEPEND="${COMMON_DEPEND} |
53 |
+ cxx? ( |
54 |
+ !<kde-apps/gpgmepp-4.14.11_pre20160611:4 |
55 |
+ !kde-apps/gpgmepp:5 |
56 |
+ !<kde-apps/kdepimlibs-4.14.10_p20160611:4 |
57 |
+ !=kde-apps/kdepimlibs-4.14.11_pre20160211*:4 |
58 |
+ )" |
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 "${D}" -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 |
+} |