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