Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/
Date: Sun, 15 Jul 2018 13:04:50
Message-Id: 1531659760.efa4b18fca19ada8ff44face930925aeb414841d.k_f@gentoo
1 commit: efa4b18fca19ada8ff44face930925aeb414841d
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 15 13:00:44 2018 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 15 13:02:40 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efa4b18f
7
8 app-crypt/gnupg: New upstream version 2.2.9
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 app-crypt/gnupg/Manifest | 1 +
13 app-crypt/gnupg/gnupg-2.2.9.ebuild | 130 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 131 insertions(+)
15
16 diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
17 index 04bb4fb39ce..2b0ebc3ff93 100644
18 --- a/app-crypt/gnupg/Manifest
19 +++ b/app-crypt/gnupg/Manifest
20 @@ -1,2 +1,3 @@
21 DIST gnupg-1.4.21.tar.bz2 3689305 BLAKE2B 0c26c9c3aeae2bf2eafa858bc3bd15cc2702bce12a8a90938565322c34e2eeb8e5432932f5c9344a76aa4528b66051141536c062d9923a79d12a0767421bb017 SHA512 619e0fbc10310c7e55d129027e2945791fe91a0884b1d6f53acb4b2e380d1c6e71d1a516a59876182c5c70a4227d44a74ceda018c343b5291fa9a5d6de77c984
22 DIST gnupg-2.2.8.tar.bz2 6632465 BLAKE2B e13bdfb2b17f87dd2122da5a489318bfcefec26c0fbb65dc6a36034314985bbd405cb22cfaf9bffa4c7928657cbc63d363f16b77d00bf86737b73c73ffbce4f2 SHA512 24271ec2663b941ed5e72e2179b48ac73d5cd838292aa9d4954952b11713f4b466f30e6af632b22c9e7c284350e300a07046d41d0ab73dcbd1639b303cd09007
23 +DIST gnupg-2.2.9.tar.bz2 6659547 BLAKE2B 3715fa0fcfbed24b0c985811c14e5a8c84caef0e66937ec7eb2ebefb4603a2c9a994d3c73224941254c685ca32cd83d7bb924fb7171ee569b346f2092ed7ae5d SHA512 96faf227bef78fee99ff20606f3ce74eddc407c3864b928f8676a80f50dfaf2dd291eaeeaa0d291a254275a87e4f8506df9ed31c1cfc7652999208c292a16922
24
25 diff --git a/app-crypt/gnupg/gnupg-2.2.9.ebuild b/app-crypt/gnupg/gnupg-2.2.9.ebuild
26 new file mode 100644
27 index 00000000000..d53de1b7125
28 --- /dev/null
29 +++ b/app-crypt/gnupg/gnupg-2.2.9.ebuild
30 @@ -0,0 +1,130 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="6"
35 +
36 +inherit systemd toolchain-funcs
37 +
38 +MY_P="${P/_/-}"
39 +
40 +DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
41 +HOMEPAGE="http://www.gnupg.org/"
42 +SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb wks-server"
48 +
49 +COMMON_DEPEND_LIBS="
50 + >=dev-libs/npth-1.2
51 + >=dev-libs/libassuan-2.5.0
52 + >=dev-libs/libgcrypt-1.7.3
53 + >=dev-libs/libgpg-error-1.28
54 + >=dev-libs/libksba-1.3.4
55 + >=net-misc/curl-7.10
56 + ssl? ( >=net-libs/gnutls-3.0:0= )
57 + sys-libs/zlib
58 + ldap? ( net-nds/openldap )
59 + bzip2? ( app-arch/bzip2 )
60 + readline? ( sys-libs/readline:0= )
61 + smartcard? ( usb? ( virtual/libusb:0 ) )
62 + tofu? ( >=dev-db/sqlite-3.7 )
63 + virtual/mta
64 + "
65 +COMMON_DEPEND_BINS="app-crypt/pinentry
66 + !app-crypt/dirmngr"
67 +
68 +# Existence of executables is checked during configuration.
69 +DEPEND="${COMMON_DEPEND_LIBS}
70 + ${COMMON_DEPEND_BINS}
71 + nls? ( sys-devel/gettext )
72 + doc? ( sys-apps/texinfo )"
73 +
74 +RDEPEND="${COMMON_DEPEND_LIBS}
75 + ${COMMON_DEPEND_BINS}
76 + selinux? ( sec-policy/selinux-gpg )
77 + nls? ( virtual/libintl )"
78 +
79 +S="${WORKDIR}/${MY_P}"
80 +
81 +DOCS=(
82 + ChangeLog NEWS README THANKS TODO VERSION
83 + doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
84 +)
85 +
86 +PATCHES=(
87 + "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
88 +)
89 +
90 +src_configure() {
91 + local myconf=()
92 +
93 + if use smartcard; then
94 + myconf+=(
95 + --enable-scdaemon
96 + $(use_enable usb ccid-driver)
97 + )
98 + else
99 + myconf+=( --disable-scdaemon )
100 + fi
101 +
102 + if use elibc_SunOS || use elibc_AIX; then
103 + myconf+=( --disable-symcryptrun )
104 + else
105 + myconf+=( --enable-symcryptrun )
106 + fi
107 +
108 + # glib fails and picks up clang's internal stdint.h causing weird errors
109 + [[ ${CC} == *clang ]] && \
110 + export gl_cv_absolute_stdint_h=/usr/include/stdint.h
111 +
112 + econf \
113 + "${myconf[@]}" \
114 + $(use_enable bzip2) \
115 + $(use_enable ssl gnutls) \
116 + $(use_enable nls) \
117 + $(use_enable tofu) \
118 + $(use_enable wks-server wks-tools) \
119 + $(use_with ldap) \
120 + $(use_with readline) \
121 + --enable-gpg \
122 + --enable-gpgsm \
123 + --enable-large-secmem \
124 + --enable-all-tests \
125 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
126 +}
127 +
128 +src_compile() {
129 + default
130 +
131 + use doc && emake -C doc html
132 +}
133 +
134 +src_test() {
135 + #Bug: 638574
136 + use tofu && export TESTFLAGS=--parallel
137 + default
138 +}
139 +
140 +src_install() {
141 + default
142 +
143 + use tools &&
144 + dobin \
145 + tools/{convert-from-106,gpg-check-pattern} \
146 + tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
147 + tools/make-dns-cert
148 +
149 + dosym gpg /usr/bin/gpg2
150 + dosym gpgv /usr/bin/gpgv2
151 + echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
152 + echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
153 +
154 + dodir /etc/env.d
155 + echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
156 +
157 + use doc && dodoc doc/gnupg.html/* doc/*.png
158 +
159 + systemd_douserunit doc/examples/systemd-user/*.{service,socket}
160 +}