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/gnupg/
Date: Mon, 23 Jan 2017 17:54:06
Message-Id: 1485194006.3be59a67b4911a1a5fb1912c6b533dd258368be8.alonbl@gentoo
1 commit: 3be59a67b4911a1a5fb1912c6b533dd258368be8
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 23 17:51:59 2017 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 23 17:53:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3be59a67
7
8 app-crypt/gnupg: eapi bump
9
10 Package-Manager: portage-2.3.0
11
12 app-crypt/gnupg/gnupg-2.1.17-r2.ebuild | 124 +++++++++++++++++++++++++++++++++
13 1 file changed, 124 insertions(+)
14
15 diff --git a/app-crypt/gnupg/gnupg-2.1.17-r2.ebuild b/app-crypt/gnupg/gnupg-2.1.17-r2.ebuild
16 new file mode 100644
17 index 00000000..7f5a021
18 --- /dev/null
19 +++ b/app-crypt/gnupg/gnupg-2.1.17-r2.ebuild
20 @@ -0,0 +1,124 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI="6"
26 +
27 +inherit eutils flag-o-matic toolchain-funcs
28 +
29 +DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
30 +HOMEPAGE="http://www.gnupg.org/"
31 +LICENSE="GPL-3"
32 +
33 +MY_P="${P/_/-}"
34 +SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
35 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-fbsd ~x86-freebsd ~x86-macos"
36 +
37 +SLOT="0"
38 +IUSE="bzip2 doc +gnutls ldap nls readline selinux +smartcard tofu tools usb wks-server"
39 +
40 +COMMON_DEPEND_LIBS="
41 + >=dev-libs/npth-1.2
42 + >=dev-libs/libassuan-2.4.3
43 + >=dev-libs/libgcrypt-1.7.3
44 + >=dev-libs/libgpg-error-1.24
45 + >=dev-libs/libksba-1.3.4
46 + >=net-misc/curl-7.10
47 + gnutls? ( >=net-libs/gnutls-3.0:0= )
48 + sys-libs/zlib
49 + ldap? ( net-nds/openldap )
50 + bzip2? ( app-arch/bzip2 )
51 + readline? ( sys-libs/readline:0= )
52 + smartcard? ( usb? ( virtual/libusb:0 ) )
53 + tofu? ( >=dev-db/sqlite-3.7 )
54 + "
55 +COMMON_DEPEND_BINS="app-crypt/pinentry
56 + !app-crypt/dirmngr"
57 +
58 +# Existence of executables is checked during configuration.
59 +DEPEND="${COMMON_DEPEND_LIBS}
60 + ${COMMON_DEPEND_BINS}
61 + nls? ( sys-devel/gettext )
62 + doc? ( sys-apps/texinfo )"
63 +
64 +RDEPEND="${COMMON_DEPEND_LIBS}
65 + ${COMMON_DEPEND_BINS}
66 + selinux? ( sec-policy/selinux-gpg )
67 + nls? ( virtual/libintl )"
68 +
69 +S="${WORKDIR}/${MY_P}"
70 +
71 +DOCS=(
72 + ChangeLog NEWS README THANKS TODO VERSION
73 + doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
74 +)
75 +
76 +PATCHES=(
77 + "${FILESDIR}/${PN}-2.1.16-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
78 + "${FILESDIR}/${P}-dirmngr-Strip-root-zone-suffix-from-libdns-cname-res.patch"
79 +)
80 +
81 +src_configure() {
82 + local myconf=()
83 +
84 + if use smartcard; then
85 + myconf+=(
86 + --enable-scdaemon
87 + $(use_enable usb ccid-driver)
88 + )
89 + else
90 + myconf+=( --disable-scdaemon )
91 + fi
92 +
93 + if use elibc_SunOS || use elibc_AIX; then
94 + myconf+=( --disable-symcryptrun )
95 + else
96 + myconf+=( --enable-symcryptrun )
97 + fi
98 +
99 + # glib fails and picks up clang's internal stdint.h causing weird errors
100 + [[ ${CC} == *clang ]] && \
101 + export gl_cv_absolute_stdint_h=/usr/include/stdint.h
102 +
103 + econf \
104 + "${myconf[@]}" \
105 + $(use_enable bzip2) \
106 + $(use_enable gnutls) \
107 + $(use_enable nls) \
108 + $(use_enable tofu) \
109 + $(use_enable wks-server wks-tools) \
110 + $(use_with ldap) \
111 + $(use_with readline) \
112 + --enable-gpg \
113 + --enable-gpgsm \
114 + --enable-large-secmem \
115 + --enable-tools \
116 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
117 +}
118 +
119 +src_compile() {
120 + default
121 +
122 + use doc && emake -C doc html
123 +}
124 +
125 +src_install() {
126 + default
127 +
128 + use tools &&
129 + dobin \
130 + tools/{convert-from-106,gpg-check-pattern} \
131 + tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
132 + tools/make-dns-cert
133 + emake DESTDIR="${ED}" -f doc/Makefile uninstall-nobase_dist_docDATA
134 +
135 + dosym gpg2 /usr/bin/gpg
136 + dosym gpgv2 /usr/bin/gpgv
137 + echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
138 + echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
139 +
140 + dodir /etc/env.d
141 + echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
142 +
143 + use doc && dodoc doc/gnupg.html/* doc/*.png
144 +}