Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gpgme/
Date: Thu, 26 Sep 2019 22:22:08
Message-Id: 1569536427.5230fb90fe11f235d209450233d34191018f269e.radhermit@gentoo
1 commit: 5230fb90fe11f235d209450233d34191018f269e
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 26 22:18:59 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 26 22:20:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5230fb90
7
8 app-crypt/gpgme: version bump to 1.13.1
9
10 Bump libassuan dep to 2.5.3 for pkgconfig usage.
11
12 Closes: https://bugs.gentoo.org/692738
13
14 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
15
16 app-crypt/gpgme/Manifest | 1 +
17 app-crypt/gpgme/gpgme-1.13.1.ebuild | 117 ++++++++++++++++++++++++++++++++++++
18 2 files changed, 118 insertions(+)
19
20 diff --git a/app-crypt/gpgme/Manifest b/app-crypt/gpgme/Manifest
21 index 2341a8d4569..b7a6fdd2517 100644
22 --- a/app-crypt/gpgme/Manifest
23 +++ b/app-crypt/gpgme/Manifest
24 @@ -1 +1,2 @@
25 DIST gpgme-1.13.0.tar.bz2 1820504 BLAKE2B 71fbb034e3c5939d1953554ccbe0e89e2089c53a4c79e90ee51bdf96500bf4be8a5e1633772ab8dadd44616dde7be551ad7d3af0a59d7e1df10a19cd9cf56baa SHA512 47a7a67dcc6d111cddd805d288d42e870948114a6dc09ce0675ad8b3d1580bbc2a683e1e70cb2f416919cf2129c72a9ff30e2e3b9527809d04e863cc1f87267b
26 +DIST gpgme-1.13.1.tar.bz2 1759616 BLAKE2B 17fff261ab76b72e096aa42cc847443bfd3bbf0eb6d04af1d38561ddce1d11cfe9a98b6ced268b28f33e2cb7d900a9e6b3dfc56f1c784a021dbefbf493522e70 SHA512 11de670c6cf512508103fe67af56d9fbb2a9dda6fc6fa3cd321371bbe337c7c2c81913ca557d07187adb2a63d37ea1a44da97ab22345bbe6022c405d0cb083b8
27
28 diff --git a/app-crypt/gpgme/gpgme-1.13.1.ebuild b/app-crypt/gpgme/gpgme-1.13.1.ebuild
29 new file mode 100644
30 index 00000000000..7c4ca43d823
31 --- /dev/null
32 +++ b/app-crypt/gpgme/gpgme-1.13.1.ebuild
33 @@ -0,0 +1,117 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
40 +DISTUTILS_OPTIONAL=1
41 +
42 +inherit distutils-r1 flag-o-matic libtool qmake-utils toolchain-funcs
43 +
44 +DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
45 +HOMEPAGE="http://www.gnupg.org/related_software/gpgme"
46 +SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2"
47 +
48 +LICENSE="GPL-2 LGPL-2.1"
49 +SLOT="1/11" # subslot = soname major version
50 +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"
51 +IUSE="common-lisp static-libs cxx python qt5"
52 +
53 +COMMON_DEPEND=">=app-crypt/gnupg-2
54 + >=dev-libs/libassuan-2.5.3:=
55 + >=dev-libs/libgpg-error-1.29:=
56 + python? ( ${PYTHON_DEPS} )
57 + qt5? ( dev-qt/qtcore:5 )"
58 + #doc? ( app-doc/doxygen[dot] )
59 +DEPEND="${COMMON_DEPEND}
60 + qt5? ( dev-qt/qttest:5 )"
61 +RDEPEND="${COMMON_DEPEND}
62 + cxx? (
63 + !<kde-apps/gpgmepp-4.14.11_pre20160611:4
64 + !kde-apps/gpgmepp:5
65 + !<kde-apps/kdepimlibs-4.14.10_p20160611:4
66 + !=kde-apps/kdepimlibs-4.14.11_pre20160211*:4
67 + )"
68 +BDEPEND="python? ( dev-lang/swig )"
69 +
70 +REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )"
71 +
72 +do_python() {
73 + if use python; then
74 + pushd "lang/python" > /dev/null || die
75 + top_builddir="../.." srcdir="." CPP=$(tc-getCPP) distutils-r1_src_${EBUILD_PHASE}
76 + popd > /dev/null
77 + fi
78 +}
79 +
80 +pkg_setup() {
81 + addpredict /run/user/$(id -u)/gnupg
82 +
83 + local MAX_WORKDIR=66
84 + if [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then
85 + ewarn "Disabling tests as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail tests"
86 + SKIP_TESTS=1
87 + fi
88 +}
89 +
90 +src_prepare() {
91 + default
92 + elibtoolize
93 +
94 + # Make best effort to allow longer PORTAGE_TMPDIR
95 + # as usock limitation fails build/tests
96 + ln -s "${P}" "${WORKDIR}/b"
97 + S="${WORKDIR}/b"
98 +}
99 +
100 +src_configure() {
101 + local languages=()
102 + use common-lisp && languages+=( "cl" )
103 + use cxx && languages+=( "cpp" )
104 + if use qt5; then
105 + languages+=( "qt" )
106 + #use doc ||
107 + export DOXYGEN=true
108 + export MOC="$(qt5_get_bindir)/moc"
109 + fi
110 +
111 + econf \
112 + $([[ -n "${SKIP_TESTS}" ]] && echo "--disable-gpg-test --disable-gpgsm-test") \
113 + --enable-languages="${languages[*]}" \
114 + $(use_enable static-libs static)
115 +
116 + use python && make -C lang/python prepare
117 +
118 + do_python
119 +}
120 +
121 +src_compile() {
122 + default
123 + do_python
124 +}
125 +
126 +src_test() {
127 + [[ -z "${SKIP_TESTS}" ]] || return
128 +
129 + default
130 + if use python; then
131 + test_python() {
132 + emake -C lang/python/tests check \
133 + PYTHON=${EPYTHON} \
134 + PYTHONS=${EPYTHON} \
135 + TESTFLAGS="--python-libdir=${BUILD_DIR}/lib"
136 + }
137 + python_foreach_impl test_python
138 + fi
139 +}
140 +
141 +src_install() {
142 + default
143 + do_python
144 + find "${D}" -name '*.la' -delete || die
145 +
146 + # backward compatibility for gentoo
147 + # in the past we had slots
148 + dodir /usr/include/gpgme
149 + dosym ../gpgme.h /usr/include/gpgme/gpgme.h
150 +}