Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/gnupg: gnupg-2.0.26-r1.ebuild ChangeLog
Date: Fri, 29 Aug 2014 21:08:23
Message-Id: 20140829210819.C20B24328@oystercatcher.gentoo.org
1 alonbl 14/08/29 21:08:19
2
3 Modified: ChangeLog
4 Added: gnupg-2.0.26-r1.ebuild
5 Log:
6 Remove adns USE, bug#513990
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
9
10 Revision Changes Path
11 1.544 app-crypt/gnupg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.544&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.544&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.543&r2=1.544
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v
20 retrieving revision 1.543
21 retrieving revision 1.544
22 diff -u -r1.543 -r1.544
23 --- ChangeLog 29 Aug 2014 18:37:15 -0000 1.543
24 +++ ChangeLog 29 Aug 2014 21:08:19 -0000 1.544
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-crypt/gnupg
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.543 2014/08/29 18:37:15 zlogene Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.544 2014/08/29 21:08:19 alonbl Exp $
30 +
31 +*gnupg-2.0.26-r1 (29 Aug 2014)
32 +
33 + 29 Aug 2014; Alon Bar-Lev <alonbl@g.o> +gnupg-2.0.26-r1.ebuild:
34 + Remove adns USE, bug#513990
35
36 29 Aug 2014; Mikle Kolyada <zlogene@g.o> gnupg-2.0.26.ebuild:
37 alpha stable wrt bug #521174
38
39
40
41 1.1 app-crypt/gnupg/gnupg-2.0.26-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-2.0.26-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-2.0.26-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnupg-2.0.26-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-2.0.26-r1.ebuild,v 1.1 2014/08/29 21:08:19 alonbl Exp $
51
52 EAPI="5"
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
57 HOMEPAGE="http://www.gnupg.org/"
58 SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
59 # SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 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"
64 IUSE="bzip2 doc ldap nls mta readline static selinux smartcard usb"
65
66 COMMON_DEPEND_LIBS="
67 >=dev-libs/libassuan-2
68 >=dev-libs/libgcrypt-1.4:0=
69 >=dev-libs/libgpg-error-1.11
70 >=dev-libs/libksba-1.0.7
71 >=dev-libs/pth-1.3.7
72 >=net-misc/curl-7.10
73 sys-libs/zlib
74 bzip2? ( app-arch/bzip2 )
75 readline? ( sys-libs/readline )
76 smartcard? ( usb? ( virtual/libusb:0 ) )
77 ldap? ( net-nds/openldap )"
78 COMMON_DEPEND_BINS="|| ( app-crypt/pinentry app-crypt/pinentry-qt )"
79
80 # Existence of executables is checked during configuration.
81 DEPEND="${COMMON_DEPEND_LIBS}
82 ${COMMON_DEPEND_BINS}
83 static? (
84 >=dev-libs/libassuan-2[static-libs]
85 >=dev-libs/libgcrypt-1.4:0=[static-libs]
86 >=dev-libs/libgpg-error-1.11[static-libs]
87 >=dev-libs/libksba-1.0.7[static-libs]
88 >=dev-libs/pth-1.3.7[static-libs]
89 >=net-misc/curl-7.10[static-libs]
90 sys-libs/zlib[static-libs]
91 bzip2? ( app-arch/bzip2[static-libs] )
92 )
93 nls? ( sys-devel/gettext )
94 doc? ( sys-apps/texinfo )"
95
96 RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
97 ${COMMON_DEPEND_BINS}
98 mta? ( virtual/mta )
99 !<=app-crypt/gnupg-2.0.1
100 selinux? ( sec-policy/selinux-gpg )
101 nls? ( virtual/libintl )"
102
103 REQUIRED_USE="smartcard? ( !static )"
104
105 src_prepare() {
106 epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
107 epatch "${FILESDIR}/${P}-Need-to-init-the-trustdb-for-import.patch"
108 epatch_user
109 }
110
111 src_configure() {
112 local myconf=()
113
114 # 'USE=static' support was requested:
115 # gnupg1: bug #29299
116 # gnupg2: bug #159623
117 use static && append-ldflags -static
118
119 if use smartcard; then
120 myconf+=(
121 --enable-scdaemon
122 $(use_enable usb ccid-driver)
123 )
124 else
125 myconf+=( --disable-scdaemon )
126 fi
127
128 if use elibc_SunOS || use elibc_AIX; then
129 myconf+=( --disable-symcryptrun )
130 else
131 myconf+=( --enable-symcryptrun )
132 fi
133
134 econf \
135 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
136 --enable-gpg \
137 --enable-gpgsm \
138 --enable-agent \
139 --disable-adns \
140 "${myconf[@]}" \
141 $(use_enable bzip2) \
142 $(use_enable nls) \
143 $(use_enable mta mailto) \
144 $(use_enable ldap) \
145 $(use_with readline) \
146 CC_FOR_BUILD="$(tc-getBUILD_CC)"
147 }
148
149 src_compile() {
150 default
151
152 if use doc; then
153 cd doc
154 emake html
155 fi
156 }
157
158 src_install() {
159 default
160
161 # bug#192151
162 dobin tools/gpgsplit tools/gpg-zip
163
164 emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
165 rm "${ED}"/usr/share/gnupg/help* || die
166
167 dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
168 doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
169
170 dosym gpg2 /usr/bin/gpg
171 dosym gpgv2 /usr/bin/gpgv
172 dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
173 dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
174 dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
175 if use ldap; then
176 dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
177 fi
178 echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
179 echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
180
181 dodir /etc/env.d
182 echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
183
184 if use doc; then
185 dohtml doc/gnupg.html/* doc/*.png
186 fi
187 }
188
189 pkg_postinst() {
190 elog "If you wish to view images emerge:"
191 elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
192 elog "Remember to use photo-viewer option in configuration file to activate"
193 elog "the right viewer."
194 elog
195
196 if use smartcard; then
197 elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
198 use usb && elog " - a CCID-compatible reader, used directly through libusb;"
199 elog " - sys-apps/pcsc-lite and a compatible reader device;"
200 elog " - dev-libs/openct and a compatible reader device;"
201 elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
202 elog ""
203 elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
204 elog "app-crypt/ccid first."
205 fi
206
207 ewarn "Please remember to restart gpg-agent if a different version"
208 ewarn "of the agent is currently used. If you are unsure of the gpg"
209 ewarn "agent you are using please run 'killall gpg-agent',"
210 ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
211 }