1 |
commit: 1c36873f322e11d69255dcb525abe8e816efb4f2 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 9 21:03:07 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 9 21:03:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c36873f |
7 |
|
8 |
app-crypt/gpgme: version bump |
9 |
|
10 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
12 |
|
13 |
app-crypt/gpgme/Manifest | 1 + |
14 |
app-crypt/gpgme/gpgme-1.12.0.ebuild | 117 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 118 insertions(+) |
16 |
|
17 |
diff --git a/app-crypt/gpgme/Manifest b/app-crypt/gpgme/Manifest |
18 |
index 46a057841ae..940cef61b32 100644 |
19 |
--- a/app-crypt/gpgme/Manifest |
20 |
+++ b/app-crypt/gpgme/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST gpgme-1.11.1.tar.bz2 1419232 BLAKE2B 93980c24e6d692f35105db23a02db891ef022addd583d5bda8e55ec3552dfebb87c9feebb74fdd59fa353a3b08571e51537f8dcaf63af018beff467a848e97e9 SHA512 42fa6f5d6217aaad9b44b969de9603167d179af9a1573342187718ff123cd88c686211c3dc5f2d9cacc20226ab5b8fef85cb66a19ada71d267c397d8ba52cf1a |
23 |
+DIST gpgme-1.12.0.tar.bz2 1658803 BLAKE2B 630646af597074c06a99c1170c4f8170ad0fe4ba643a27a87a61dd8df681ca14f023b07817657bb049eaeaef01df3975bd1fe1b75a026634a62f832c6c311b56 SHA512 c228b3df28377df882be536ada56dc9c73150048a58e591aa4495f89c854af95820152cd60139840f994c249e9c7df50d8b89eb9d6dc4ce02aa80bbfebcdd014 |
24 |
|
25 |
diff --git a/app-crypt/gpgme/gpgme-1.12.0.ebuild b/app-crypt/gpgme/gpgme-1.12.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a84457c507b |
28 |
--- /dev/null |
29 |
+++ b/app-crypt/gpgme/gpgme-1.12.0.ebuild |
30 |
@@ -0,0 +1,117 @@ |
31 |
+# Copyright 1999-2018 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
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 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
+IUSE="common-lisp static-libs cxx python qt5" |
49 |
+ |
50 |
+COMMON_DEPEND=">=app-crypt/gnupg-2 |
51 |
+ >=dev-libs/libassuan-2.0.2:= |
52 |
+ >=dev-libs/libgpg-error-1.29:= |
53 |
+ python? ( ${PYTHON_DEPS} ) |
54 |
+ qt5? ( dev-qt/qtcore:5 )" |
55 |
+ #doc? ( app-doc/doxygen[dot] ) |
56 |
+DEPEND="${COMMON_DEPEND} |
57 |
+ qt5? ( dev-qt/qttest:5 )" |
58 |
+RDEPEND="${COMMON_DEPEND} |
59 |
+ cxx? ( |
60 |
+ !<kde-apps/gpgmepp-4.14.11_pre20160611:4 |
61 |
+ !kde-apps/gpgmepp:5 |
62 |
+ !<kde-apps/kdepimlibs-4.14.10_p20160611:4 |
63 |
+ !=kde-apps/kdepimlibs-4.14.11_pre20160211*:4 |
64 |
+ )" |
65 |
+BDEPEND="python? ( dev-lang/swig )" |
66 |
+ |
67 |
+REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )" |
68 |
+ |
69 |
+do_python() { |
70 |
+ if use python; then |
71 |
+ pushd "lang/python" > /dev/null || die |
72 |
+ top_builddir="../.." srcdir="." CPP=$(tc-getCPP) distutils-r1_src_${EBUILD_PHASE} |
73 |
+ popd > /dev/null |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+pkg_setup() { |
78 |
+ addpredict /run/user/$(id -u)/gnupg |
79 |
+ |
80 |
+ local MAX_WORKDIR=66 |
81 |
+ if [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then |
82 |
+ ewarn "Disabling tests as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail tests" |
83 |
+ SKIP_TESTS=1 |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ default |
89 |
+ elibtoolize |
90 |
+ |
91 |
+ # Make best effort to allow longer PORTAGE_TMPDIR |
92 |
+ # as usock limitation fails build/tests |
93 |
+ ln -s "${P}" "${WORKDIR}/b" |
94 |
+ S="${WORKDIR}/b" |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ local languages=() |
99 |
+ use common-lisp && languages+=( "cl" ) |
100 |
+ use cxx && languages+=( "cpp" ) |
101 |
+ if use qt5; then |
102 |
+ languages+=( "qt" ) |
103 |
+ #use doc || |
104 |
+ export DOXYGEN=true |
105 |
+ export MOC="$(qt5_get_bindir)/moc" |
106 |
+ fi |
107 |
+ |
108 |
+ econf \ |
109 |
+ $([[ -n "${SKIP_TESTS}" ]] && echo "--disable-gpg-test --disable-gpgsm-test") \ |
110 |
+ --enable-languages="${languages[*]}" \ |
111 |
+ $(use_enable static-libs static) |
112 |
+ |
113 |
+ use python && make -C lang/python prepare |
114 |
+ |
115 |
+ do_python |
116 |
+} |
117 |
+ |
118 |
+src_compile() { |
119 |
+ default |
120 |
+ do_python |
121 |
+} |
122 |
+ |
123 |
+src_test() { |
124 |
+ [[ -z "${SKIP_TESTS}" ]] || return |
125 |
+ |
126 |
+ default |
127 |
+ if use python; then |
128 |
+ test_python() { |
129 |
+ emake -C lang/python/tests check \ |
130 |
+ PYTHON=${EPYTHON} \ |
131 |
+ PYTHONS=${EPYTHON} \ |
132 |
+ TESTFLAGS="--python-libdir=${BUILD_DIR}/lib" |
133 |
+ } |
134 |
+ python_foreach_impl test_python |
135 |
+ fi |
136 |
+} |
137 |
+ |
138 |
+src_install() { |
139 |
+ default |
140 |
+ do_python |
141 |
+ find "${D}" -name '*.la' -delete || die |
142 |
+ |
143 |
+ # backward compatibility for gentoo |
144 |
+ # in the past we had slots |
145 |
+ dodir /usr/include/gpgme |
146 |
+ dosym ../gpgme.h /usr/include/gpgme/gpgme.h |
147 |
+} |