1 |
commit: 57372b9202217e0284a1c5cba14cc4a03a3340e4 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 17 07:16:01 2017 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 17 07:16:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57372b92 |
7 |
|
8 |
app-crypt/gpgme: add live build |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
app-crypt/gpgme/gpgme-9999.ebuild | 119 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 119 insertions(+) |
14 |
|
15 |
diff --git a/app-crypt/gpgme/gpgme-9999.ebuild b/app-crypt/gpgme/gpgme-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..5bf2df8dd78 |
18 |
--- /dev/null |
19 |
+++ b/app-crypt/gpgme/gpgme-9999.ebuild |
20 |
@@ -0,0 +1,119 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI="6" |
25 |
+ |
26 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
27 |
+DISTUTILS_OPTIONAL=1 |
28 |
+ |
29 |
+inherit distutils-r1 flag-o-matic ltprune qmake-utils toolchain-funcs |
30 |
+inherit git-r3 autotools |
31 |
+ |
32 |
+DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" |
33 |
+HOMEPAGE="http://www.gnupg.org/related_software/gpgme" |
34 |
+EGIT_REPO_URI="git://git.gnupg.org/gpgme.git" |
35 |
+ |
36 |
+LICENSE="GPL-2 LGPL-2.1" |
37 |
+SLOT="1/11" # subslot = soname major version |
38 |
+KEYWORDS="" |
39 |
+IUSE="common-lisp static-libs cxx python qt5" |
40 |
+ |
41 |
+COMMON_DEPEND="app-crypt/gnupg |
42 |
+ >=dev-libs/libassuan-2.0.2:= |
43 |
+ >=dev-libs/libgpg-error-1.17:= |
44 |
+ python? ( ${PYTHON_DEPS} ) |
45 |
+ qt5? ( dev-qt/qtcore:5 )" |
46 |
+ #doc? ( app-doc/doxygen[dot] ) |
47 |
+DEPEND="${COMMON_DEPEND} |
48 |
+ python? ( dev-lang/swig ) |
49 |
+ qt5? ( dev-qt/qttest:5 )" |
50 |
+RDEPEND="${COMMON_DEPEND} |
51 |
+ cxx? ( |
52 |
+ !<kde-apps/gpgmepp-4.14.11_pre20160611:4 |
53 |
+ !kde-apps/gpgmepp:5 |
54 |
+ !<kde-apps/kdepimlibs-4.14.10_p20160611:4 |
55 |
+ !=kde-apps/kdepimlibs-4.14.11_pre20160211*:4 |
56 |
+ )" |
57 |
+ |
58 |
+REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )" |
59 |
+ |
60 |
+do_python() { |
61 |
+ if use python; then |
62 |
+ pushd "lang/python" > /dev/null || die |
63 |
+ top_builddir="../.." srcdir="." CPP=$(tc-getCPP) distutils-r1_src_${EBUILD_PHASE} |
64 |
+ popd > /dev/null |
65 |
+ fi |
66 |
+} |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ addpredict /run/user/$(id -u)/gnupg |
70 |
+} |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ eautoreconf |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ local languages=() |
79 |
+ use common-lisp && languages+=( "cl" ) |
80 |
+ use cxx && languages+=( "cpp" ) |
81 |
+ if use qt5; then |
82 |
+ languages+=( "qt" ) |
83 |
+ #use doc || |
84 |
+ export DOXYGEN=true |
85 |
+ export MOC="$(qt5_get_bindir)/moc" |
86 |
+ fi |
87 |
+ |
88 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
89 |
+ # FIXME: I don't know how to select on C++11 (libc++) here, but |
90 |
+ # I do know all Darwin users are using C++11. This should also |
91 |
+ # apply to GCC 4.7+ with libc++, and basically anyone targetting |
92 |
+ # it. |
93 |
+ |
94 |
+ # The C-standard doesn't define strdup, and C++11 drops it |
95 |
+ # resulting in an implicit declaration of strdup error. Since |
96 |
+ # it is in POSIX raise the feature set to that. |
97 |
+ append-cxxflags -D_POSIX_C_SOURCE=200112L |
98 |
+ |
99 |
+ # Work around bug 601834 |
100 |
+ use python && append-cflags -D_DARWIN_C_SOURCE |
101 |
+ fi |
102 |
+ |
103 |
+ econf \ |
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 |
+ default |
119 |
+ if use python; then |
120 |
+ test_python() { |
121 |
+ emake -C lang/python/tests xcheck \ |
122 |
+ PYTHON=${EPYTHON} \ |
123 |
+ PYTHONS=${EPYTHON} \ |
124 |
+ TESTFLAGS="--python-libdir=${BUILD_DIR}/lib" |
125 |
+ } |
126 |
+ python_foreach_impl test_python |
127 |
+ fi |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ default |
132 |
+ do_python |
133 |
+ prune_libtool_files |
134 |
+ |
135 |
+ # backward compatibility for gentoo |
136 |
+ # in the past we had slots |
137 |
+ dodir /usr/include/gpgme |
138 |
+ dosym ../gpgme.h /usr/include/gpgme/gpgme.h |
139 |
+} |