Gentoo Archives: gentoo-commits

From: "Kristian Fiskerstrand (k_f)" <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/gnupg: gnupg-2.1.6.ebuild ChangeLog gnupg-2.1.5.ebuild
Date: Wed, 01 Jul 2015 15:21:06
Message-Id: 20150701152057.F0D1174C@oystercatcher.gentoo.org
1 k_f 15/07/01 15:20:57
2
3 Modified: ChangeLog
4 Added: gnupg-2.1.6.ebuild
5 Removed: gnupg-2.1.5.ebuild
6 Log:
7 Version bump to gnupg 2.1.6
8
9 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x250B7AFED6379D85!)
10
11 Revision Changes Path
12 1.608 app-crypt/gnupg/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.608&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.608&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.607&r2=1.608
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v
21 retrieving revision 1.607
22 retrieving revision 1.608
23 diff -u -r1.607 -r1.608
24 --- ChangeLog 12 Jun 2015 16:23:41 -0000 1.607
25 +++ ChangeLog 1 Jul 2015 15:20:57 -0000 1.608
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-crypt/gnupg
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.607 2015/06/12 16:23:41 k_f Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.608 2015/07/01 15:20:57 k_f Exp $
31 +
32 +*gnupg-2.1.6 (01 Jul 2015)
33 +
34 + 01 Jul 2015; Kristian Fiskerstrand <k_f@g.o> +gnupg-2.1.6.ebuild,
35 + -gnupg-2.1.5.ebuild:
36 + Version bump to gnupg 2.1.6
37
38 *gnupg-2.1.5 (12 Jun 2015)
39
40
41
42
43 1.1 app-crypt/gnupg/gnupg-2.1.6.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-2.1.6.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-2.1.6.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gnupg-2.1.6.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-2.1.6.ebuild,v 1.1 2015/07/01 15:20:57 k_f Exp $
53
54 EAPI="5"
55
56 inherit eutils flag-o-matic toolchain-funcs
57
58 DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
59 HOMEPAGE="http://www.gnupg.org/"
60 MY_P="${P/_/-}"
61 SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
62
63 LICENSE="GPL-3"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
66 IUSE="bzip2 doc +gnutls ldap nls readline static selinux smartcard tools usb"
67
68 COMMON_DEPEND_LIBS="
69 dev-libs/npth
70 >=dev-libs/libassuan-2
71 >=dev-libs/libgcrypt-1.6.2
72 >=dev-libs/libgpg-error-1.17
73 >=dev-libs/libksba-1.0.7
74 >=net-misc/curl-7.10
75 gnutls? ( >=net-libs/gnutls-3.0 )
76 sys-libs/zlib
77 ldap? ( net-nds/openldap )
78 bzip2? ( app-arch/bzip2 )
79 readline? ( sys-libs/readline:= )
80 smartcard? ( usb? ( virtual/libusb:0 ) )
81 "
82 COMMON_DEPEND_BINS="app-crypt/pinentry
83 !app-crypt/dirmngr"
84
85 # Existence of executables is checked during configuration.
86 DEPEND="${COMMON_DEPEND_LIBS}
87 ${COMMON_DEPEND_BINS}
88 static? (
89 >=dev-libs/libassuan-2[static-libs]
90 >=dev-libs/libgcrypt-1.6.2[static-libs]
91 >=dev-libs/libgpg-error-1.17[static-libs]
92 >=dev-libs/libksba-1.0.7[static-libs]
93 dev-libs/npth[static-libs]
94 >=net-misc/curl-7.10[static-libs]
95 sys-libs/zlib[static-libs]
96 bzip2? ( app-arch/bzip2[static-libs] )
97 )
98 nls? ( sys-devel/gettext )
99 doc? ( sys-apps/texinfo )"
100
101 RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
102 ${COMMON_DEPEND_BINS}
103 selinux? ( sec-policy/selinux-gpg )
104 nls? ( virtual/libintl )"
105
106 REQUIRED_USE="smartcard? ( !static )"
107
108 S="${WORKDIR}/${MY_P}"
109
110 src_prepare() {
111 epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
112 epatch_user
113 }
114
115 src_configure() {
116 local myconf=()
117
118 # 'USE=static' support was requested:
119 # gnupg1: bug #29299
120 # gnupg2: bug #159623
121 use static && append-ldflags -static
122
123 if use smartcard; then
124 myconf+=(
125 --enable-scdaemon
126 $(use_enable usb ccid-driver)
127 )
128 else
129 myconf+=( --disable-scdaemon )
130 fi
131
132 if use elibc_SunOS || use elibc_AIX; then
133 myconf+=( --disable-symcryptrun )
134 else
135 myconf+=( --enable-symcryptrun )
136 fi
137
138 # glib fails and picks up clang's internal stdint.h causing weird errors
139 [[ ${CC} == clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
140
141 econf \
142 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
143 --enable-gpg \
144 --enable-gpgsm \
145 --enable-large-secmem \
146 --without-adns \
147 "${myconf[@]}" \
148 $(use_enable bzip2) \
149 $(use_enable gnutls) \
150 $(use_with ldap) \
151 $(use_enable nls) \
152 $(use_with readline) \
153 CC_FOR_BUILD="$(tc-getBUILD_CC)"
154 }
155
156 src_compile() {
157 default
158
159 if use doc; then
160 cd doc
161 emake html
162 fi
163 }
164
165 src_install() {
166 default
167
168 use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
169 tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
170
171 emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
172 rm "${ED}"/usr/share/gnupg/help* || die
173
174 dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
175 doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
176
177 dosym gpg2 /usr/bin/gpg
178 dosym gpgv2 /usr/bin/gpgv
179 echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
180 echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
181
182 dodir /etc/env.d
183 echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
184
185 if use doc; then
186 dohtml doc/gnupg.html/* doc/*.png
187 fi
188 }
189
190 pkg_postinst() {
191 elog "If you wish to view images emerge:"
192 elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
193 elog "Remember to use photo-viewer option in configuration file to activate"
194 elog "the right viewer."
195 elog
196
197 if use smartcard; then
198 elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
199 use usb && elog " - a CCID-compatible reader, used directly through libusb;"
200 elog " - sys-apps/pcsc-lite and a compatible reader device;"
201 elog " - dev-libs/openct and a compatible reader device;"
202 elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
203 elog ""
204 elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
205 elog "app-crypt/ccid first."
206 fi
207
208 ewarn "Please remember to restart gpg-agent if a different version"
209 ewarn "of the agent is currently used. If you are unsure of the gpg"
210 ewarn "agent you are using please run 'killall gpg-agent',"
211 ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
212
213 if [[ -n ${REPLACING_VERSIONS} ]]; then
214 elog "If upgrading from a version prior than 2.1 you might have to re-import"
215 elog "secret keys after restarting the gpg-agent as the new version is using"
216 elog "a new storage mechanism."
217 elog "You can migrate the keys using gpg --import \$HOME/.gnupg/secring.gpg"
218 fi
219 }