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