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: Tue, 26 Jan 2016 21:21:08
Message-Id: 1453842930.50daaa792e5b63356daf57a8deb205ee91890b6e.k_f@gentoo
1 commit: 50daaa792e5b63356daf57a8deb205ee91890b6e
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 26 21:15:17 2016 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 26 21:15:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50daaa79
7
8 app-crypt/gnupg: Remove some old versions
9
10 Package-Manager: portage-2.2.27
11
12 app-crypt/gnupg/Manifest | 2 -
13 app-crypt/gnupg/gnupg-2.0.27-r1.ebuild | 167 -------------------------------
14 app-crypt/gnupg/gnupg-2.0.27.ebuild | 163 -------------------------------
15 app-crypt/gnupg/gnupg-2.0.29.ebuild | 167 -------------------------------
16 app-crypt/gnupg/gnupg-2.1.10.ebuild | 173 ---------------------------------
17 app-crypt/gnupg/gnupg-2.1.8.ebuild | 169 --------------------------------
18 app-crypt/gnupg/gnupg-2.1.9.ebuild | 169 --------------------------------
19 7 files changed, 1010 deletions(-)
20
21 diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
22 index 704f0f7..b874b25 100644
23 --- a/app-crypt/gnupg/Manifest
24 +++ b/app-crypt/gnupg/Manifest
25 @@ -1,10 +1,8 @@
26 DIST gnupg-1.4.19.tar.bz2 3713811 SHA256 7f09319d044b0f6ee71fe3587bb873be701723ac0952cff5069046a78de8fd86 SHA512 cce2a83efb05f963ad0f8afd04999cc852889d46b4cad4cf399a37fd6e69f0911a5ccaa0192cb891a941cfa93125349b481efa789a127e3c0aa2c5ba53672741 WHIRLPOOL 14eaddca0981f05757aa0751b9563837efd3f5943a422d5f29e0de94eb6233b85b8848a1f4816ab7e897d6e656c7c08705115d53ed89f554604ffd2009c3c39f
27 DIST gnupg-1.4.20.tar.bz2 3692881 SHA256 04988b1030fa28ddf961ca8ff6f0f8984e0cddcb1eb02859d5d8fe0fe237edcc SHA512 8a66d5a45dcf0508601452061eb1965c3c56c56f0e5ded00b7f54c6104de0a305c1d526abd37be2f55cd9bde79600d9cfaf60536af77ff733d778ace5fcd9dad WHIRLPOOL 26344b6ba0e5f0f11fa411f5af265c922b3b1d62ff030433eb8dc6fef00dbf2ec3370ecb081dd5c6cf85a4a37e7f12aacc83e07b803cc80adda29a11a4a3c715
28 DIST gnupg-2.0.26.tar.bz2 4303384 SHA256 7758e30dc382ae7a7167ed41b7f936aa50af5ea2d6fccdef663b5b750b65b8e0 SHA512 5dd23baaac764fd48abd235ed52a85a2c7fd68b98fcde45c0f294ddb3b5629e8b1bd894585fbed4e6a6cb2bc4a5552c098c3cf1a849fffa469424fd0a4fee726 WHIRLPOOL 8d9b30337957f6bfeddea29116d862ef0c0ddd06d59bc2799db236b91b2c6767aad6f37f2166fc431c5d9454eb41f49f3e261bc38d0e89361f0c467f4591cd5a
29 -DIST gnupg-2.0.27.tar.bz2 4424679 SHA256 57646d3e4b919fa1e5c8f1c0cf5fe1215333041c493a5ebc4b8f2978dbe930f2 SHA512 b05e75f5ef9881df9472818743c175cfe3254088086f36dc0fcf3d34e61f648f1775d90d404f6c622561df5066d972aadbf99ea8ec1290e5d7f7310f4ef2989e WHIRLPOOL abb353b20655002a0957e38d2b889fb5e6a47ba7b7546e1c70fc1f97cf42deeca8f2b061678983f3a160210f4eaf7529441246df1f9f1d875f5cc090456fdfb7
30 DIST gnupg-2.0.28.tar.bz2 4435779 SHA256 ce092ee4ab58fd19b9fb34a460c07b06c348f4360dd5dd4886d041eb521a534c SHA512 7e786fe0648d5ea453f9c7524fec4bd7d5eec26d28f723acf3cb2f7ec9c400c339f0926a179411876c3f8e08b06942dcec643dc930caf58239bbd4932f4bd3c1 WHIRLPOOL ccf7427e54a545914e89677618055a114b4c9dc4db48669a2fc726fced98475df4ed27c93bd180f1250d147111ee663c736cdf4e1d8afdc40ed967cdffd0eb66
31 DIST gnupg-2.0.29.tar.bz2 4416251 SHA256 68ed6b386ba78425b05a60e8ee22785ff0fef190bdc6f1c612f19a58819d4ac9 SHA512 23b452c740ab5c1e1e37337ae0583dd3b15df58a5bb5639c0c2aef1fb603e0a7d90a257ac99b0d9dfb68b81fa061c0c64e0bfd256c00d64e2f432192f5052f37 WHIRLPOOL f3d59a9453b4a65c726788c35b065ffc9cde0b746705080cd3491c73439786d791da29cf8f5bf1e5594a0e39cfaec214e346fe18ec3acf0b425dc396aa189f33
32 DIST gnupg-2.1.10.tar.bz2 5173253 SHA256 93bd58d81771a4fa488566e5d2e13b1fd7afc86789401eb41731882abfd26cf9 SHA512 ceea93a7e7d30e07839bcc52d4246fd5be1ec81a8c4d4d62059e2b0c0e58fab07a1531016f82bcc506340653d66c73541dd3f5897df7691abeb4068d94957003 WHIRLPOOL 01f92f6020b79b373d4d6879cc39913c575c67a52c1bd425770322de0ce5a9fbd796d800cbb41a15553fd30a6c8f85a794e0b4c09420a2b49f6cb0542cdb52fb
33 DIST gnupg-2.1.11.tar.bz2 5224007 SHA256 b7b0fb2c8c5d47d7ec916d4a1097c0ddcb94a12bb1c0ac424ad86b1ee316b61a SHA512 b39f3fb461ad879b1909808434c4b03dab4d1d79aa674fbc88e3d50960184c0c25a840206ff32b760672f1b2153253f4d7a88eb726d8662f629fa04b6739ad31 WHIRLPOOL 486d623e73172a6d7dc7a6e4a5b411e70e0002a960f0398833377b8e8d79e5456a73f945db7c8bbca6ff7fd33fbfb49ca587e3a393094ce0a16d86cd906f7f09
34 -DIST gnupg-2.1.8.tar.bz2 4900705 SHA256 a3b8d01e4690715d42e8f289493c85413766f3fa935e4fe7e5ff5b0f6e2781a3 SHA512 80176fda032c921d3716fba3d3a264f9951464fd578a9d8d60673585efef17e20eec4d026921ab7ab2d7bd4dbf0a2b94a33a58c07acb747eebcb758e42bafd57 WHIRLPOOL 32e2e959363529cfd9ca857f823970b6cdd6497a72515aa9e75c2a680c83acea55a38d8de19b16c7327f92c0ab326e76a37952014b317afe2689c211c0d1965b
35 DIST gnupg-2.1.9.tar.bz2 4925167 SHA256 1cb7633a57190beb66f9249cb7446603229b273d4d89331b75c652fa4a29f7b6 SHA512 c19b8cac42b7060caada230b77f36a0b0ed0a05efd519818c5b4057ef0fcb16602f2f3ade2409de2ef353a9e2acc3e5fa106a4449c6929a36a599a82194c0ee0 WHIRLPOOL 105b83e82330a00084a0e9f3d96c8788ac2c9e7831beea0ea42786df4e378dc9e8f2c1a31f12af9c53d363aa71810cd231afdf8f20eab424fea5f59b103033a9
36
37 diff --git a/app-crypt/gnupg/gnupg-2.0.27-r1.ebuild b/app-crypt/gnupg/gnupg-2.0.27-r1.ebuild
38 deleted file mode 100644
39 index 4e5e91e..0000000
40 --- a/app-crypt/gnupg/gnupg-2.0.27-r1.ebuild
41 +++ /dev/null
42 @@ -1,167 +0,0 @@
43 -# Copyright 1999-2015 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -# $Id$
46 -
47 -EAPI="5"
48 -
49 -inherit eutils flag-o-matic toolchain-funcs
50 -
51 -DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
52 -HOMEPAGE="http://www.gnupg.org/"
53 -SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
54 -# SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
55 -
56 -LICENSE="GPL-3"
57 -SLOT="0"
58 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
59 -IUSE="bzip2 doc ldap nls mta readline static selinux smartcard tools usb"
60 -
61 -COMMON_DEPEND_LIBS="
62 - >=dev-libs/libassuan-2
63 - >=dev-libs/libgcrypt-1.4:0=
64 - >=dev-libs/libgpg-error-1.11
65 - >=dev-libs/libksba-1.0.7
66 - >=dev-libs/pth-1.3.7
67 - >=net-misc/curl-7.10
68 - sys-libs/zlib
69 - bzip2? ( app-arch/bzip2 )
70 - readline? ( sys-libs/readline )
71 - smartcard? ( usb? ( virtual/libusb:0 ) )
72 - ldap? ( net-nds/openldap )"
73 -COMMON_DEPEND_BINS="app-crypt/pinentry"
74 -
75 -# Existence of executables is checked during configuration.
76 -DEPEND="${COMMON_DEPEND_LIBS}
77 - ${COMMON_DEPEND_BINS}
78 - static? (
79 - >=dev-libs/libassuan-2[static-libs]
80 - >=dev-libs/libgcrypt-1.4:0=[static-libs]
81 - >=dev-libs/libgpg-error-1.11[static-libs]
82 - >=dev-libs/libksba-1.0.7[static-libs]
83 - >=dev-libs/pth-1.3.7[static-libs]
84 - >=net-misc/curl-7.10[static-libs]
85 - sys-libs/zlib[static-libs]
86 - bzip2? ( app-arch/bzip2[static-libs] )
87 - )
88 - nls? ( sys-devel/gettext )
89 - doc? ( sys-apps/texinfo )"
90 -
91 -RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
92 - ${COMMON_DEPEND_BINS}
93 - mta? ( virtual/mta )
94 - !<=app-crypt/gnupg-2.0.1
95 - selinux? ( sec-policy/selinux-gpg )
96 - nls? ( virtual/libintl )"
97 -
98 -REQUIRED_USE="smartcard? ( !static )"
99 -
100 -src_prepare() {
101 - epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
102 - epatch_user
103 -}
104 -
105 -src_configure() {
106 - local myconf=()
107 -
108 - # 'USE=static' support was requested:
109 - # gnupg1: bug #29299
110 - # gnupg2: bug #159623
111 - use static && append-ldflags -static
112 -
113 - if use smartcard; then
114 - myconf+=(
115 - --enable-scdaemon
116 - $(use_enable usb ccid-driver)
117 - )
118 - else
119 - myconf+=( --disable-scdaemon )
120 - fi
121 -
122 - if use elibc_SunOS || use elibc_AIX; then
123 - myconf+=( --disable-symcryptrun )
124 - else
125 - myconf+=( --enable-symcryptrun )
126 - fi
127 -
128 - # glib fails and picks up clang's internal stdint.h causing weird errors
129 - [[ ${CC} == clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
130 -
131 - econf \
132 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
133 - --enable-gpg \
134 - --enable-gpgsm \
135 - --enable-agent \
136 - --enable-large-secmem \
137 - --without-adns \
138 - "${myconf[@]}" \
139 - $(use_enable bzip2) \
140 - $(use_enable nls) \
141 - $(use_enable mta mailto) \
142 - $(use_enable ldap) \
143 - $(use_with readline) \
144 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
145 -}
146 -
147 -src_compile() {
148 - default
149 -
150 - if use doc; then
151 - cd doc
152 - emake html
153 - fi
154 -}
155 -
156 -src_install() {
157 - default
158 -
159 - use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
160 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
161 -
162 - emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
163 - rm "${ED}"/usr/share/gnupg/help* || die
164 -
165 - dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
166 - doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
167 -
168 - dosym gpg2 /usr/bin/gpg
169 - dosym gpgv2 /usr/bin/gpgv
170 - dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
171 - dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
172 - dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
173 - if use ldap; then
174 - dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
175 - fi
176 - echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
177 - echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
178 -
179 - dodir /etc/env.d
180 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
181 -
182 - if use doc; then
183 - dohtml doc/gnupg.html/* doc/*.png
184 - fi
185 -}
186 -
187 -pkg_postinst() {
188 - elog "If you wish to view images emerge:"
189 - elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
190 - elog "Remember to use photo-viewer option in configuration file to activate"
191 - elog "the right viewer."
192 - elog
193 -
194 - if use smartcard; then
195 - elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
196 - use usb && elog " - a CCID-compatible reader, used directly through libusb;"
197 - elog " - sys-apps/pcsc-lite and a compatible reader device;"
198 - elog " - dev-libs/openct and a compatible reader device;"
199 - elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
200 - elog ""
201 - elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
202 - elog "app-crypt/ccid first."
203 - fi
204 -
205 - ewarn "Please remember to restart gpg-agent if a different version"
206 - ewarn "of the agent is currently used. If you are unsure of the gpg"
207 - ewarn "agent you are using please run 'killall gpg-agent',"
208 - ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
209 -}
210
211 diff --git a/app-crypt/gnupg/gnupg-2.0.27.ebuild b/app-crypt/gnupg/gnupg-2.0.27.ebuild
212 deleted file mode 100644
213 index ffb48b4..0000000
214 --- a/app-crypt/gnupg/gnupg-2.0.27.ebuild
215 +++ /dev/null
216 @@ -1,163 +0,0 @@
217 -# Copyright 1999-2015 Gentoo Foundation
218 -# Distributed under the terms of the GNU General Public License v2
219 -# $Id$
220 -
221 -EAPI="5"
222 -
223 -inherit eutils flag-o-matic toolchain-funcs
224 -
225 -DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
226 -HOMEPAGE="http://www.gnupg.org/"
227 -SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
228 -# SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
229 -
230 -LICENSE="GPL-3"
231 -SLOT="0"
232 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
233 -IUSE="bzip2 doc ldap nls mta readline static selinux smartcard tools usb"
234 -
235 -COMMON_DEPEND_LIBS="
236 - >=dev-libs/libassuan-2
237 - >=dev-libs/libgcrypt-1.4:0=
238 - >=dev-libs/libgpg-error-1.11
239 - >=dev-libs/libksba-1.0.7
240 - >=dev-libs/pth-1.3.7
241 - >=net-misc/curl-7.10
242 - sys-libs/zlib
243 - bzip2? ( app-arch/bzip2 )
244 - readline? ( sys-libs/readline )
245 - smartcard? ( usb? ( virtual/libusb:0 ) )
246 - ldap? ( net-nds/openldap )"
247 -COMMON_DEPEND_BINS="app-crypt/pinentry"
248 -
249 -# Existence of executables is checked during configuration.
250 -DEPEND="${COMMON_DEPEND_LIBS}
251 - ${COMMON_DEPEND_BINS}
252 - static? (
253 - >=dev-libs/libassuan-2[static-libs]
254 - >=dev-libs/libgcrypt-1.4:0=[static-libs]
255 - >=dev-libs/libgpg-error-1.11[static-libs]
256 - >=dev-libs/libksba-1.0.7[static-libs]
257 - >=dev-libs/pth-1.3.7[static-libs]
258 - >=net-misc/curl-7.10[static-libs]
259 - sys-libs/zlib[static-libs]
260 - bzip2? ( app-arch/bzip2[static-libs] )
261 - )
262 - nls? ( sys-devel/gettext )
263 - doc? ( sys-apps/texinfo )"
264 -
265 -RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
266 - ${COMMON_DEPEND_BINS}
267 - mta? ( virtual/mta )
268 - !<=app-crypt/gnupg-2.0.1
269 - selinux? ( sec-policy/selinux-gpg )
270 - nls? ( virtual/libintl )"
271 -
272 -REQUIRED_USE="smartcard? ( !static )"
273 -
274 -src_prepare() {
275 - epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
276 - epatch_user
277 -}
278 -
279 -src_configure() {
280 - local myconf=()
281 -
282 - # 'USE=static' support was requested:
283 - # gnupg1: bug #29299
284 - # gnupg2: bug #159623
285 - use static && append-ldflags -static
286 -
287 - if use smartcard; then
288 - myconf+=(
289 - --enable-scdaemon
290 - $(use_enable usb ccid-driver)
291 - )
292 - else
293 - myconf+=( --disable-scdaemon )
294 - fi
295 -
296 - if use elibc_SunOS || use elibc_AIX; then
297 - myconf+=( --disable-symcryptrun )
298 - else
299 - myconf+=( --enable-symcryptrun )
300 - fi
301 -
302 - econf \
303 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
304 - --enable-gpg \
305 - --enable-gpgsm \
306 - --enable-agent \
307 - --without-adns \
308 - "${myconf[@]}" \
309 - $(use_enable bzip2) \
310 - $(use_enable nls) \
311 - $(use_enable mta mailto) \
312 - $(use_enable ldap) \
313 - $(use_with readline) \
314 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
315 -}
316 -
317 -src_compile() {
318 - default
319 -
320 - if use doc; then
321 - cd doc
322 - emake html
323 - fi
324 -}
325 -
326 -src_install() {
327 - default
328 -
329 - use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
330 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
331 -
332 - emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
333 - rm "${ED}"/usr/share/gnupg/help* || die
334 -
335 - dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
336 - doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
337 -
338 - dosym gpg2 /usr/bin/gpg
339 - dosym gpgv2 /usr/bin/gpgv
340 - dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
341 - dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
342 - dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
343 - if use ldap; then
344 - dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
345 - fi
346 - echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
347 - echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
348 -
349 - dodir /etc/env.d
350 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
351 -
352 - if use doc; then
353 - dohtml doc/gnupg.html/* doc/*.png
354 - fi
355 -}
356 -
357 -pkg_postinst() {
358 - elog "If you wish to view images emerge:"
359 - elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
360 - elog "Remember to use photo-viewer option in configuration file to activate"
361 - elog "the right viewer."
362 - elog
363 -
364 - if use smartcard; then
365 - elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
366 - use usb && elog " - a CCID-compatible reader, used directly through libusb;"
367 - elog " - sys-apps/pcsc-lite and a compatible reader device;"
368 - elog " - dev-libs/openct and a compatible reader device;"
369 - elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
370 - elog ""
371 - elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
372 - elog "app-crypt/ccid first."
373 - fi
374 -
375 - ewarn "Please remember to restart gpg-agent if a different version"
376 - ewarn "of the agent is currently used. If you are unsure of the gpg"
377 - ewarn "agent you are using please run 'killall gpg-agent',"
378 - ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
379 -}
380
381 diff --git a/app-crypt/gnupg/gnupg-2.0.29.ebuild b/app-crypt/gnupg/gnupg-2.0.29.ebuild
382 deleted file mode 100644
383 index ba5a0c7..0000000
384 --- a/app-crypt/gnupg/gnupg-2.0.29.ebuild
385 +++ /dev/null
386 @@ -1,167 +0,0 @@
387 -# Copyright 1999-2015 Gentoo Foundation
388 -# Distributed under the terms of the GNU General Public License v2
389 -# $Id$
390 -
391 -EAPI="5"
392 -
393 -inherit eutils flag-o-matic toolchain-funcs
394 -
395 -DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
396 -HOMEPAGE="http://www.gnupg.org/"
397 -SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
398 -# SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
399 -
400 -LICENSE="GPL-3"
401 -SLOT="0"
402 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
403 -IUSE="bzip2 doc ldap nls mta readline static selinux smartcard tools usb"
404 -
405 -COMMON_DEPEND_LIBS="
406 - >=dev-libs/libassuan-2
407 - >=dev-libs/libgcrypt-1.5:0=
408 - >=dev-libs/libgpg-error-1.19
409 - >=dev-libs/libksba-1.0.7
410 - >=dev-libs/pth-1.3.7
411 - >=net-misc/curl-7.10
412 - sys-libs/zlib
413 - bzip2? ( app-arch/bzip2 )
414 - readline? ( sys-libs/readline )
415 - smartcard? ( usb? ( virtual/libusb:0 ) )
416 - ldap? ( net-nds/openldap )"
417 -COMMON_DEPEND_BINS="app-crypt/pinentry"
418 -
419 -# Existence of executables is checked during configuration.
420 -DEPEND="${COMMON_DEPEND_LIBS}
421 - ${COMMON_DEPEND_BINS}
422 - static? (
423 - >=dev-libs/libassuan-2[static-libs]
424 - >=dev-libs/libgcrypt-1.4:0=[static-libs]
425 - >=dev-libs/libgpg-error-1.11[static-libs]
426 - >=dev-libs/libksba-1.0.7[static-libs]
427 - >=dev-libs/pth-1.3.7[static-libs]
428 - >=net-misc/curl-7.10[static-libs]
429 - sys-libs/zlib[static-libs]
430 - bzip2? ( app-arch/bzip2[static-libs] )
431 - )
432 - nls? ( sys-devel/gettext )
433 - doc? ( sys-apps/texinfo )"
434 -
435 -RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
436 - ${COMMON_DEPEND_BINS}
437 - mta? ( virtual/mta )
438 - !<=app-crypt/gnupg-2.0.1
439 - selinux? ( sec-policy/selinux-gpg )
440 - nls? ( virtual/libintl )"
441 -
442 -REQUIRED_USE="smartcard? ( !static )"
443 -
444 -src_prepare() {
445 - epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
446 - epatch_user
447 -}
448 -
449 -src_configure() {
450 - local myconf=()
451 -
452 - # 'USE=static' support was requested:
453 - # gnupg1: bug #29299
454 - # gnupg2: bug #159623
455 - use static && append-ldflags -static
456 -
457 - if use smartcard; then
458 - myconf+=(
459 - --enable-scdaemon
460 - $(use_enable usb ccid-driver)
461 - )
462 - else
463 - myconf+=( --disable-scdaemon )
464 - fi
465 -
466 - if use elibc_SunOS || use elibc_AIX; then
467 - myconf+=( --disable-symcryptrun )
468 - else
469 - myconf+=( --enable-symcryptrun )
470 - fi
471 -
472 - # glib fails and picks up clang's internal stdint.h causing weird errors
473 - [[ ${CC} == clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
474 -
475 - econf \
476 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
477 - --enable-gpg \
478 - --enable-gpgsm \
479 - --enable-agent \
480 - --enable-large-secmem \
481 - --without-adns \
482 - "${myconf[@]}" \
483 - $(use_enable bzip2) \
484 - $(use_enable nls) \
485 - $(use_enable mta mailto) \
486 - $(use_enable ldap) \
487 - $(use_with readline) \
488 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
489 -}
490 -
491 -src_compile() {
492 - default
493 -
494 - if use doc; then
495 - cd doc
496 - emake html
497 - fi
498 -}
499 -
500 -src_install() {
501 - default
502 -
503 - use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
504 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
505 -
506 - emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
507 - rm "${ED}"/usr/share/gnupg/help* || die
508 -
509 - dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
510 - doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
511 -
512 - dosym gpg2 /usr/bin/gpg
513 - dosym gpgv2 /usr/bin/gpgv
514 - dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
515 - dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
516 - dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
517 - if use ldap; then
518 - dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
519 - fi
520 - echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
521 - echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
522 -
523 - dodir /etc/env.d
524 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
525 -
526 - if use doc; then
527 - dohtml doc/gnupg.html/* doc/*.png
528 - fi
529 -}
530 -
531 -pkg_postinst() {
532 - elog "If you wish to view images emerge:"
533 - elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
534 - elog "Remember to use photo-viewer option in configuration file to activate"
535 - elog "the right viewer."
536 - elog
537 -
538 - if use smartcard; then
539 - elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
540 - use usb && elog " - a CCID-compatible reader, used directly through libusb;"
541 - elog " - sys-apps/pcsc-lite and a compatible reader device;"
542 - elog " - dev-libs/openct and a compatible reader device;"
543 - elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
544 - elog ""
545 - elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
546 - elog "app-crypt/ccid first."
547 - fi
548 -
549 - ewarn "Please remember to restart gpg-agent if a different version"
550 - ewarn "of the agent is currently used. If you are unsure of the gpg"
551 - ewarn "agent you are using please run 'killall gpg-agent',"
552 - ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
553 -}
554
555 diff --git a/app-crypt/gnupg/gnupg-2.1.10.ebuild b/app-crypt/gnupg/gnupg-2.1.10.ebuild
556 deleted file mode 100644
557 index a1c4aba..0000000
558 --- a/app-crypt/gnupg/gnupg-2.1.10.ebuild
559 +++ /dev/null
560 @@ -1,173 +0,0 @@
561 -# Copyright 1999-2015 Gentoo Foundation
562 -# Distributed under the terms of the GNU General Public License v2
563 -# $Id$
564 -
565 -EAPI="5"
566 -
567 -inherit eutils flag-o-matic toolchain-funcs
568 -
569 -DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
570 -HOMEPAGE="http://www.gnupg.org/"
571 -MY_P="${P/_/-}"
572 -SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
573 -
574 -LICENSE="GPL-3"
575 -SLOT="0"
576 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
577 -IUSE="bzip2 doc +gnutls ldap nls readline static selinux smartcard tofu tools usb"
578 -
579 -COMMON_DEPEND_LIBS="
580 - dev-libs/npth
581 - >=dev-libs/libassuan-2.4.1
582 - >=dev-libs/libgcrypt-1.6.2[threads]
583 - >=dev-libs/libgpg-error-1.17
584 - >=dev-libs/libksba-1.2.0
585 - >=net-misc/curl-7.10
586 - gnutls? ( >=net-libs/gnutls-3.0 )
587 - sys-libs/zlib
588 - ldap? ( net-nds/openldap )
589 - bzip2? ( app-arch/bzip2 )
590 - readline? ( sys-libs/readline:= )
591 - smartcard? ( usb? ( virtual/libusb:0 ) )
592 - tofu? ( >=dev-db/sqlite-3.7 )
593 - "
594 -COMMON_DEPEND_BINS="app-crypt/pinentry
595 - !app-crypt/dirmngr"
596 -
597 -# Existence of executables is checked during configuration.
598 -DEPEND="${COMMON_DEPEND_LIBS}
599 - ${COMMON_DEPEND_BINS}
600 - static? (
601 - >=dev-libs/libassuan-2[static-libs]
602 - >=dev-libs/libgcrypt-1.6.2[static-libs]
603 - >=dev-libs/libgpg-error-1.17[static-libs]
604 - >=dev-libs/libksba-1.0.7[static-libs]
605 - dev-libs/npth[static-libs]
606 - >=net-misc/curl-7.10[static-libs]
607 - sys-libs/zlib[static-libs]
608 - bzip2? ( app-arch/bzip2[static-libs] )
609 - )
610 - nls? ( sys-devel/gettext )
611 - doc? ( sys-apps/texinfo )"
612 -
613 -RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
614 - ${COMMON_DEPEND_BINS}
615 - selinux? ( sec-policy/selinux-gpg )
616 - nls? ( virtual/libintl )"
617 -
618 -REQUIRED_USE="smartcard? ( !static )"
619 -
620 -S="${WORKDIR}/${MY_P}"
621 -
622 -src_prepare() {
623 - epatch_user
624 -}
625 -
626 -src_configure() {
627 - local myconf=()
628 -
629 - # 'USE=static' support was requested:
630 - # gnupg1: bug #29299
631 - # gnupg2: bug #159623
632 - use static && append-ldflags -static
633 -
634 - if use smartcard; then
635 - myconf+=(
636 - --enable-scdaemon
637 - $(use_enable usb ccid-driver)
638 - )
639 - else
640 - myconf+=( --disable-scdaemon )
641 - fi
642 -
643 - if use elibc_SunOS || use elibc_AIX; then
644 - myconf+=( --disable-symcryptrun )
645 - else
646 - myconf+=( --enable-symcryptrun )
647 - fi
648 -
649 - # glib fails and picks up clang's internal stdint.h causing weird errors
650 - [[ ${CC} == clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
651 -
652 - econf \
653 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
654 - --enable-gpg \
655 - --enable-gpgsm \
656 - --enable-large-secmem \
657 - --without-adns \
658 - "${myconf[@]}" \
659 - $(use_enable bzip2) \
660 - $(use_enable gnutls) \
661 - $(use_with ldap) \
662 - $(use_enable nls) \
663 - $(use_with readline) \
664 - $(use_enable tofu) \
665 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
666 -}
667 -
668 -src_compile() {
669 - default
670 -
671 - if use doc; then
672 - cd doc
673 - emake html
674 - fi
675 -}
676 -
677 -src_install() {
678 - default
679 -
680 - use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
681 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
682 -
683 - emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
684 - # The help*txt files are read from the datadir by GnuPG directly.
685 - # They do not work if compressed or moved!
686 - #rm "${ED}"/usr/share/gnupg/help* || die
687 -
688 - dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
689 - doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
690 -
691 - dosym gpg2 /usr/bin/gpg
692 - dosym gpgv2 /usr/bin/gpgv
693 - echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
694 - echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
695 -
696 - dodir /etc/env.d
697 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
698 -
699 - if use doc; then
700 - dohtml doc/gnupg.html/* doc/*.png
701 - fi
702 -}
703 -
704 -pkg_postinst() {
705 - elog "If you wish to view images emerge:"
706 - elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
707 - elog "Remember to use photo-viewer option in configuration file to activate"
708 - elog "the right viewer."
709 - elog
710 -
711 - if use smartcard; then
712 - elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
713 - use usb && elog " - a CCID-compatible reader, used directly through libusb;"
714 - elog " - sys-apps/pcsc-lite and a compatible reader device;"
715 - elog " - dev-libs/openct and a compatible reader device;"
716 - elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
717 - elog ""
718 - elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
719 - elog "app-crypt/ccid first."
720 - fi
721 -
722 - ewarn "Please remember to restart gpg-agent if a different version"
723 - ewarn "of the agent is currently used. If you are unsure of the gpg"
724 - ewarn "agent you are using please run 'killall gpg-agent',"
725 - ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
726 -
727 - if [[ -n ${REPLACING_VERSIONS} ]]; then
728 - elog "If upgrading from a version prior than 2.1 you might have to re-import"
729 - elog "secret keys after restarting the gpg-agent as the new version is using"
730 - elog "a new storage mechanism."
731 - elog "You can migrate the keys using gpg --import \$HOME/.gnupg/secring.gpg"
732 - fi
733 -}
734
735 diff --git a/app-crypt/gnupg/gnupg-2.1.8.ebuild b/app-crypt/gnupg/gnupg-2.1.8.ebuild
736 deleted file mode 100644
737 index 4e192a1..0000000
738 --- a/app-crypt/gnupg/gnupg-2.1.8.ebuild
739 +++ /dev/null
740 @@ -1,169 +0,0 @@
741 -# Copyright 1999-2015 Gentoo Foundation
742 -# Distributed under the terms of the GNU General Public License v2
743 -# $Id$
744 -
745 -EAPI="5"
746 -
747 -inherit eutils flag-o-matic toolchain-funcs
748 -
749 -DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
750 -HOMEPAGE="http://www.gnupg.org/"
751 -MY_P="${P/_/-}"
752 -SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
753 -
754 -LICENSE="GPL-3"
755 -SLOT="0"
756 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
757 -IUSE="bzip2 doc +gnutls ldap nls readline static selinux smartcard tools usb"
758 -
759 -COMMON_DEPEND_LIBS="
760 - dev-libs/npth
761 - >=dev-libs/libassuan-2
762 - >=dev-libs/libgcrypt-1.6.2[threads]
763 - >=dev-libs/libgpg-error-1.17
764 - >=dev-libs/libksba-1.0.7
765 - >=net-misc/curl-7.10
766 - gnutls? ( >=net-libs/gnutls-3.0 )
767 - sys-libs/zlib
768 - ldap? ( net-nds/openldap )
769 - bzip2? ( app-arch/bzip2 )
770 - readline? ( sys-libs/readline:= )
771 - smartcard? ( usb? ( virtual/libusb:0 ) )
772 - "
773 -COMMON_DEPEND_BINS="app-crypt/pinentry
774 - !app-crypt/dirmngr"
775 -
776 -# Existence of executables is checked during configuration.
777 -DEPEND="${COMMON_DEPEND_LIBS}
778 - ${COMMON_DEPEND_BINS}
779 - static? (
780 - >=dev-libs/libassuan-2[static-libs]
781 - >=dev-libs/libgcrypt-1.6.2[static-libs]
782 - >=dev-libs/libgpg-error-1.17[static-libs]
783 - >=dev-libs/libksba-1.0.7[static-libs]
784 - dev-libs/npth[static-libs]
785 - >=net-misc/curl-7.10[static-libs]
786 - sys-libs/zlib[static-libs]
787 - bzip2? ( app-arch/bzip2[static-libs] )
788 - )
789 - nls? ( sys-devel/gettext )
790 - doc? ( sys-apps/texinfo )"
791 -
792 -RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
793 - ${COMMON_DEPEND_BINS}
794 - selinux? ( sec-policy/selinux-gpg )
795 - nls? ( virtual/libintl )"
796 -
797 -REQUIRED_USE="smartcard? ( !static )"
798 -
799 -S="${WORKDIR}/${MY_P}"
800 -
801 -src_prepare() {
802 - epatch_user
803 -}
804 -
805 -src_configure() {
806 - local myconf=()
807 -
808 - # 'USE=static' support was requested:
809 - # gnupg1: bug #29299
810 - # gnupg2: bug #159623
811 - use static && append-ldflags -static
812 -
813 - if use smartcard; then
814 - myconf+=(
815 - --enable-scdaemon
816 - $(use_enable usb ccid-driver)
817 - )
818 - else
819 - myconf+=( --disable-scdaemon )
820 - fi
821 -
822 - if use elibc_SunOS || use elibc_AIX; then
823 - myconf+=( --disable-symcryptrun )
824 - else
825 - myconf+=( --enable-symcryptrun )
826 - fi
827 -
828 - # glib fails and picks up clang's internal stdint.h causing weird errors
829 - [[ ${CC} == clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
830 -
831 - econf \
832 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
833 - --enable-gpg \
834 - --enable-gpgsm \
835 - --enable-large-secmem \
836 - --without-adns \
837 - "${myconf[@]}" \
838 - $(use_enable bzip2) \
839 - $(use_enable gnutls) \
840 - $(use_with ldap) \
841 - $(use_enable nls) \
842 - $(use_with readline) \
843 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
844 -}
845 -
846 -src_compile() {
847 - default
848 -
849 - if use doc; then
850 - cd doc
851 - emake html
852 - fi
853 -}
854 -
855 -src_install() {
856 - default
857 -
858 - use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
859 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
860 -
861 - emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
862 - rm "${ED}"/usr/share/gnupg/help* || die
863 -
864 - dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
865 - doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
866 -
867 - dosym gpg2 /usr/bin/gpg
868 - dosym gpgv2 /usr/bin/gpgv
869 - echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
870 - echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
871 -
872 - dodir /etc/env.d
873 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
874 -
875 - if use doc; then
876 - dohtml doc/gnupg.html/* doc/*.png
877 - fi
878 -}
879 -
880 -pkg_postinst() {
881 - elog "If you wish to view images emerge:"
882 - elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
883 - elog "Remember to use photo-viewer option in configuration file to activate"
884 - elog "the right viewer."
885 - elog
886 -
887 - if use smartcard; then
888 - elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
889 - use usb && elog " - a CCID-compatible reader, used directly through libusb;"
890 - elog " - sys-apps/pcsc-lite and a compatible reader device;"
891 - elog " - dev-libs/openct and a compatible reader device;"
892 - elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
893 - elog ""
894 - elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
895 - elog "app-crypt/ccid first."
896 - fi
897 -
898 - ewarn "Please remember to restart gpg-agent if a different version"
899 - ewarn "of the agent is currently used. If you are unsure of the gpg"
900 - ewarn "agent you are using please run 'killall gpg-agent',"
901 - ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
902 -
903 - if [[ -n ${REPLACING_VERSIONS} ]]; then
904 - elog "If upgrading from a version prior than 2.1 you might have to re-import"
905 - elog "secret keys after restarting the gpg-agent as the new version is using"
906 - elog "a new storage mechanism."
907 - elog "You can migrate the keys using gpg --import \$HOME/.gnupg/secring.gpg"
908 - fi
909 -}
910
911 diff --git a/app-crypt/gnupg/gnupg-2.1.9.ebuild b/app-crypt/gnupg/gnupg-2.1.9.ebuild
912 deleted file mode 100644
913 index 71d0db3..0000000
914 --- a/app-crypt/gnupg/gnupg-2.1.9.ebuild
915 +++ /dev/null
916 @@ -1,169 +0,0 @@
917 -# Copyright 1999-2015 Gentoo Foundation
918 -# Distributed under the terms of the GNU General Public License v2
919 -# $Id$
920 -
921 -EAPI="5"
922 -
923 -inherit eutils flag-o-matic toolchain-funcs
924 -
925 -DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
926 -HOMEPAGE="http://www.gnupg.org/"
927 -MY_P="${P/_/-}"
928 -SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
929 -
930 -LICENSE="GPL-3"
931 -SLOT="0"
932 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
933 -IUSE="bzip2 doc +gnutls ldap nls readline static selinux smartcard tools usb"
934 -
935 -COMMON_DEPEND_LIBS="
936 - dev-libs/npth
937 - >=dev-libs/libassuan-2
938 - >=dev-libs/libgcrypt-1.6.2[threads]
939 - >=dev-libs/libgpg-error-1.17
940 - >=dev-libs/libksba-1.0.7
941 - >=net-misc/curl-7.10
942 - gnutls? ( >=net-libs/gnutls-3.0 )
943 - sys-libs/zlib
944 - ldap? ( net-nds/openldap )
945 - bzip2? ( app-arch/bzip2 )
946 - readline? ( sys-libs/readline:= )
947 - smartcard? ( usb? ( virtual/libusb:0 ) )
948 - "
949 -COMMON_DEPEND_BINS="app-crypt/pinentry
950 - !app-crypt/dirmngr"
951 -
952 -# Existence of executables is checked during configuration.
953 -DEPEND="${COMMON_DEPEND_LIBS}
954 - ${COMMON_DEPEND_BINS}
955 - static? (
956 - >=dev-libs/libassuan-2[static-libs]
957 - >=dev-libs/libgcrypt-1.6.2[static-libs]
958 - >=dev-libs/libgpg-error-1.17[static-libs]
959 - >=dev-libs/libksba-1.0.7[static-libs]
960 - dev-libs/npth[static-libs]
961 - >=net-misc/curl-7.10[static-libs]
962 - sys-libs/zlib[static-libs]
963 - bzip2? ( app-arch/bzip2[static-libs] )
964 - )
965 - nls? ( sys-devel/gettext )
966 - doc? ( sys-apps/texinfo )"
967 -
968 -RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
969 - ${COMMON_DEPEND_BINS}
970 - selinux? ( sec-policy/selinux-gpg )
971 - nls? ( virtual/libintl )"
972 -
973 -REQUIRED_USE="smartcard? ( !static )"
974 -
975 -S="${WORKDIR}/${MY_P}"
976 -
977 -src_prepare() {
978 - epatch_user
979 -}
980 -
981 -src_configure() {
982 - local myconf=()
983 -
984 - # 'USE=static' support was requested:
985 - # gnupg1: bug #29299
986 - # gnupg2: bug #159623
987 - use static && append-ldflags -static
988 -
989 - if use smartcard; then
990 - myconf+=(
991 - --enable-scdaemon
992 - $(use_enable usb ccid-driver)
993 - )
994 - else
995 - myconf+=( --disable-scdaemon )
996 - fi
997 -
998 - if use elibc_SunOS || use elibc_AIX; then
999 - myconf+=( --disable-symcryptrun )
1000 - else
1001 - myconf+=( --enable-symcryptrun )
1002 - fi
1003 -
1004 - # glib fails and picks up clang's internal stdint.h causing weird errors
1005 - [[ ${CC} == clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
1006 -
1007 - econf \
1008 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
1009 - --enable-gpg \
1010 - --enable-gpgsm \
1011 - --enable-large-secmem \
1012 - --without-adns \
1013 - "${myconf[@]}" \
1014 - $(use_enable bzip2) \
1015 - $(use_enable gnutls) \
1016 - $(use_with ldap) \
1017 - $(use_enable nls) \
1018 - $(use_with readline) \
1019 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
1020 -}
1021 -
1022 -src_compile() {
1023 - default
1024 -
1025 - if use doc; then
1026 - cd doc
1027 - emake html
1028 - fi
1029 -}
1030 -
1031 -src_install() {
1032 - default
1033 -
1034 - use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
1035 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
1036 -
1037 - emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
1038 - rm "${ED}"/usr/share/gnupg/help* || die
1039 -
1040 - dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
1041 - doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
1042 -
1043 - dosym gpg2 /usr/bin/gpg
1044 - dosym gpgv2 /usr/bin/gpgv
1045 - echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
1046 - echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
1047 -
1048 - dodir /etc/env.d
1049 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
1050 -
1051 - if use doc; then
1052 - dohtml doc/gnupg.html/* doc/*.png
1053 - fi
1054 -}
1055 -
1056 -pkg_postinst() {
1057 - elog "If you wish to view images emerge:"
1058 - elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
1059 - elog "Remember to use photo-viewer option in configuration file to activate"
1060 - elog "the right viewer."
1061 - elog
1062 -
1063 - if use smartcard; then
1064 - elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
1065 - use usb && elog " - a CCID-compatible reader, used directly through libusb;"
1066 - elog " - sys-apps/pcsc-lite and a compatible reader device;"
1067 - elog " - dev-libs/openct and a compatible reader device;"
1068 - elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
1069 - elog ""
1070 - elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
1071 - elog "app-crypt/ccid first."
1072 - fi
1073 -
1074 - ewarn "Please remember to restart gpg-agent if a different version"
1075 - ewarn "of the agent is currently used. If you are unsure of the gpg"
1076 - ewarn "agent you are using please run 'killall gpg-agent',"
1077 - ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
1078 -
1079 - if [[ -n ${REPLACING_VERSIONS} ]]; then
1080 - elog "If upgrading from a version prior than 2.1 you might have to re-import"
1081 - elog "secret keys after restarting the gpg-agent as the new version is using"
1082 - elog "a new storage mechanism."
1083 - elog "You can migrate the keys using gpg --import \$HOME/.gnupg/secring.gpg"
1084 - fi
1085 -}