Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gpgme/
Date: Mon, 02 Jul 2018 04:24:29
Message-Id: 1530505451.7d8c4d9408001cd8e962c358818b508e87211c5b.alonbl@gentoo
1 commit: 7d8c4d9408001cd8e962c358818b508e87211c5b
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 2 04:24:11 2018 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 2 04:24:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d8c4d94
7
8 Revert "app-crypt/gpgme: cleanup"
9
10 This reverts commit dda89246cd68b9b30e7e782d7986390cf53162f7.
11
12 app-crypt/gpgme/Manifest | 1 +
13 app-crypt/gpgme/gpgme-1.10.0.ebuild | 117 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 118 insertions(+)
15
16 diff --git a/app-crypt/gpgme/Manifest b/app-crypt/gpgme/Manifest
17 index 46a057841ae..3ef61eb628f 100644
18 --- a/app-crypt/gpgme/Manifest
19 +++ b/app-crypt/gpgme/Manifest
20 @@ -1 +1,2 @@
21 +DIST gpgme-1.10.0.tar.bz2 1370162 BLAKE2B b421d91a4fcd2e8887dc1a5c276fe1cce66f379741d86dfca751f4863039c39ccaf492c7683d6f6a0de407d2a6056e3496e45e3d472eef36a879e8b903e58c57 SHA512 8ffa348ef4775ed3209486444d54411e28c9a0ff1d7a4315feb0b2856ccd5d110b219100ea41262ca0016af69a1936d79fee0eadf2599c7c5bbeed05d11f7ab5
22 DIST gpgme-1.11.1.tar.bz2 1419232 BLAKE2B 93980c24e6d692f35105db23a02db891ef022addd583d5bda8e55ec3552dfebb87c9feebb74fdd59fa353a3b08571e51537f8dcaf63af018beff467a848e97e9 SHA512 42fa6f5d6217aaad9b44b969de9603167d179af9a1573342187718ff123cd88c686211c3dc5f2d9cacc20226ab5b8fef85cb66a19ada71d267c397d8ba52cf1a
23
24 diff --git a/app-crypt/gpgme/gpgme-1.10.0.ebuild b/app-crypt/gpgme/gpgme-1.10.0.ebuild
25 new file mode 100644
26 index 00000000000..c7959244316
27 --- /dev/null
28 +++ b/app-crypt/gpgme/gpgme-1.10.0.ebuild
29 @@ -0,0 +1,117 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="6"
34 +
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
36 +DISTUTILS_OPTIONAL=1
37 +
38 +inherit distutils-r1 flag-o-matic libtool ltprune qmake-utils toolchain-funcs
39 +
40 +DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
41 +HOMEPAGE="http://www.gnupg.org/related_software/gpgme"
42 +SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2"
43 +
44 +LICENSE="GPL-2 LGPL-2.1"
45 +SLOT="1/11" # subslot = soname major version
46 +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"
47 +IUSE="common-lisp static-libs cxx python qt5"
48 +
49 +COMMON_DEPEND=">=app-crypt/gnupg-2
50 + >=dev-libs/libassuan-2.0.2:=
51 + >=dev-libs/libgpg-error-1.17:=
52 + python? ( ${PYTHON_DEPS} )
53 + qt5? ( dev-qt/qtcore:5 )"
54 + #doc? ( app-doc/doxygen[dot] )
55 +DEPEND="${COMMON_DEPEND}
56 + python? ( dev-lang/swig )
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 +
66 +REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )"
67 +
68 +do_python() {
69 + if use python; then
70 + pushd "lang/python" > /dev/null || die
71 + top_builddir="../.." srcdir="." CPP=$(tc-getCPP) distutils-r1_src_${EBUILD_PHASE}
72 + popd > /dev/null
73 + fi
74 +}
75 +
76 +pkg_setup() {
77 + addpredict /run/user/$(id -u)/gnupg
78 +
79 + local MAX_WORKDIR=66
80 + if [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then
81 + ewarn "Disabling tests as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail tests"
82 + SKIP_TESTS=1
83 + fi
84 +}
85 +
86 +src_prepare() {
87 + default
88 + elibtoolize
89 +
90 + # Make best effort to allow longer PORTAGE_TMPDIR
91 + # as usock limitation fails build/tests
92 + ln -s "${P}" "${WORKDIR}/b"
93 + S="${WORKDIR}/b"
94 +}
95 +
96 +src_configure() {
97 + local languages=()
98 + use common-lisp && languages+=( "cl" )
99 + use cxx && languages+=( "cpp" )
100 + if use qt5; then
101 + languages+=( "qt" )
102 + #use doc ||
103 + export DOXYGEN=true
104 + export MOC="$(qt5_get_bindir)/moc"
105 + fi
106 +
107 + econf \
108 + $([[ -n "${SKIP_TESTS}" ]] && echo "--disable-gpg-test --disable-gpgsm-test") \
109 + --enable-languages="${languages[*]}" \
110 + $(use_enable static-libs static)
111 +
112 + use python && make -C lang/python prepare
113 +
114 + do_python
115 +}
116 +
117 +src_compile() {
118 + default
119 + do_python
120 +}
121 +
122 +src_test() {
123 + [[ -z "${SKIP_TESTS}" ]] || return
124 +
125 + default
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 + do_python
140 + prune_libtool_files
141 +
142 + # backward compatibility for gentoo
143 + # in the past we had slots
144 + dodir /usr/include/gpgme
145 + dosym ../gpgme.h /usr/include/gpgme/gpgme.h
146 +}