Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/gnupg: ChangeLog gnupg-1.4.10-r1.ebuild gnupg-1.4.10.ebuild
Date: Fri, 02 Apr 2010 22:38:24
Message-Id: E1NxpVO-0003ct-Jz@stork.gentoo.org
1 robbat2 10/04/02 22:38:22
2
3 Modified: ChangeLog gnupg-1.4.10.ebuild
4 Added: gnupg-1.4.10-r1.ebuild
5 Log:
6 Move the EAPI=3 change to a seperate ebuild for the 1.4 series, as some autobuilds still contain a Portage that does not support it, and this can get brought in very early sometimes.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.368 app-crypt/gnupg/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.368&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.368&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.367&r2=1.368
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v
19 retrieving revision 1.367
20 retrieving revision 1.368
21 diff -p -w -b -B -u -u -r1.367 -r1.368
22 --- ChangeLog 1 Apr 2010 21:28:21 -0000 1.367
23 +++ ChangeLog 2 Apr 2010 22:38:22 -0000 1.368
24 @@ -1,6 +1,14 @@
25 # ChangeLog for app-crypt/gnupg
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.367 2010/04/01 21:28:21 abcd Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.368 2010/04/02 22:38:22 robbat2 Exp $
29 +
30 +*gnupg-1.4.10-r1 (02 Apr 2010)
31 +
32 + 02 Apr 2010; Robin H. Johnson <robbat2@g.o> gnupg-1.4.10.ebuild,
33 + +gnupg-1.4.10-r1.ebuild:
34 + Move the EAPI=3 change to a seperate ebuild for the 1.4 series, as some
35 + autobuilds still contain a Portage that does not support it, and this can
36 + get brought in very early sometimes.
37
38 01 Apr 2010; Jonathan Callen <abcd@g.o> gnupg-1.4.10.ebuild,
39 gnupg-2.0.14.ebuild, gnupg-2.0.15.ebuild:
40
41
42
43 1.10 app-crypt/gnupg/gnupg-1.4.10.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10.ebuild?rev=1.10&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10.ebuild?rev=1.10&content-type=text/plain
47 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10.ebuild?r1=1.9&r2=1.10
48
49 Index: gnupg-1.4.10.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10.ebuild,v
52 retrieving revision 1.9
53 retrieving revision 1.10
54 diff -p -w -b -B -u -u -r1.9 -r1.10
55 --- gnupg-1.4.10.ebuild 1 Apr 2010 21:28:21 -0000 1.9
56 +++ gnupg-1.4.10.ebuild 2 Apr 2010 22:38:22 -0000 1.10
57 @@ -1,8 +1,8 @@
58 # Copyright 1999-2010 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10.ebuild,v 1.9 2010/04/01 21:28:21 abcd Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10.ebuild,v 1.10 2010/04/02 22:38:22 robbat2 Exp $
62
63 -EAPI="3"
64 +EAPI="2"
65
66 inherit eutils flag-o-matic toolchain-funcs
67
68 @@ -21,7 +21,7 @@ SRC_URI="mirror://gnupg/gnupg/${P}.tar.b
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
73 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
74 IUSE="bzip2 bindist curl idea ldap nls readline selinux smartcard static usb zlib linguas_ru"
75 #IUSE="bzip2 bindist curl ecc idea ldap nls readline selinux smartcard static usb zlib linguas_ru"
76
77 @@ -91,7 +91,7 @@ src_configure() {
78 use static &&append-ldflags -static
79
80 econf \
81 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
82 + --docdir="/usr/share/doc/${PF}" \
83 $(use_enable ldap) \
84 --enable-mailto \
85 --enable-hkp \
86 @@ -107,7 +107,7 @@ src_configure() {
87 $(use_with usb libusb /usr) \
88 $(use_enable static) \
89 --enable-static-rnd=linux \
90 - --libexecdir="${EPREFIX}/usr/libexec" \
91 + --libexecdir=/usr/libexec \
92 --enable-noexecstack \
93 CC_FOR_BUILD=$(tc-getBUILD_CC) \
94 ${myconf}
95 @@ -117,7 +117,7 @@ src_install() {
96 emake DESTDIR="${D}" install || die "emake install failed"
97
98 # keep the documentation in /usr/share/doc/...
99 - rm -rf "${ED}usr/share/gnupg/FAQ" "${ED}usr/share/gnupg/faq.html"
100 + rm -rf "${D}/usr/share/gnupg/FAQ" "${D}/usr/share/gnupg/faq.html"
101
102 dodoc AUTHORS BUGS ChangeLog NEWS PROJECTS README THANKS \
103 TODO VERSION doc/{FAQ,HACKING,DETAILS,OpenPGP,faq.raw}
104
105
106
107 1.1 app-crypt/gnupg/gnupg-1.4.10-r1.ebuild
108
109 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10-r1.ebuild?rev=1.1&view=markup
110 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10-r1.ebuild?rev=1.1&content-type=text/plain
111
112 Index: gnupg-1.4.10-r1.ebuild
113 ===================================================================
114 # Copyright 1999-2010 Gentoo Foundation
115 # Distributed under the terms of the GNU General Public License v2
116 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.10-r1.ebuild,v 1.1 2010/04/02 22:38:22 robbat2 Exp $
117
118 EAPI="3"
119
120 inherit eutils flag-o-matic toolchain-funcs
121
122 ECCVER="0.2.0"
123 ECCVER_GNUPG="1.4.9"
124 ECC_PATCH="${PN}-${ECCVER_GNUPG}-ecc${ECCVER}.diff"
125 MY_P=${P/_/}
126
127 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
128 HOMEPAGE="http://www.gnupg.org/"
129 SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2
130 !bindist? (
131 idea? ( mirror://gentoo/idea.c.gz )
132 )"
133 # ecc? ( http://www.calcurco.cat/eccGnuPG/src/${ECC_PATCH}.bz2 )
134
135 LICENSE="GPL-2"
136 SLOT="0"
137 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
138 IUSE="bzip2 bindist curl idea ldap nls readline selinux smartcard static usb zlib linguas_ru"
139 #IUSE="bzip2 bindist curl ecc idea ldap nls readline selinux smartcard static usb zlib linguas_ru"
140
141 COMMON_DEPEND="
142 ldap? ( net-nds/openldap )
143 bzip2? ( app-arch/bzip2 )
144 zlib? ( sys-libs/zlib )
145 curl? ( net-misc/curl )
146 virtual/mta
147 readline? ( sys-libs/readline )
148 smartcard? ( =virtual/libusb-0* )
149 usb? ( =virtual/libusb-0* )"
150
151 RDEPEND="!static? ( ${COMMON_DEPEND} )
152 selinux? ( sec-policy/selinux-gnupg )
153 nls? ( virtual/libintl )"
154
155 DEPEND="${COMMON_DEPEND}
156 dev-lang/perl
157 nls? ( sys-devel/gettext )"
158
159 S="${WORKDIR}/${MY_P}"
160
161 src_prepare() {
162 if use idea; then
163 if use bindist; then
164 einfo "Skipping IDEA support to comply with binary distribution (bug #148907)."
165 else
166 ewarn "Please read http://www.gnupg.org/(en)/faq/why-not-idea.html"
167 mv "${WORKDIR}"/idea.c "${S}"/cipher/idea.c || \
168 ewarn "failed to insert IDEA module"
169 fi
170 fi
171
172 # if use ecc; then
173 # if use bindist; then
174 # einfo "Skipping ECC patch to comply with binary distribution (bug #148907)."
175 # else
176 # sed -i \
177 # "s/- VERSION='${ECCVER_GNUPG}'/- VERSION='${PV}'/" \
178 # "${WORKDIR}/${ECC_PATCH}"
179 # sed -i \
180 # "s/+ VERSION='${ECCVER_GNUPG}-ecc${ECCVER}'/+ VERSION='${PV}-ecc${ECCVER}'/" \
181 # "${WORKDIR}/${ECC_PATCH}"
182 #
183 # epatch "${WORKDIR}/${ECC_PATCH}"
184 # fi
185 # fi
186
187 # Install RU man page in right location
188 sed -e "/^man_MANS =/s/ gpg\.ru\.1//" -i doc/Makefile.in || die "sed doc/Makefile.in failed"
189
190 # Fix PIC definitions
191 sed -i -e 's:PIC:__PIC__:' mpi/i386/mpih-{add,sub}1.S intl/relocatable.c
192 sed -i -e 's:if PIC:ifdef __PIC__:' mpi/sparc32v8/mpih-mul{1,2}.S
193 }
194
195 src_configure() {
196 # Certain sparc32 machines seem to have trouble building correctly with
197 # -mcpu enabled. While this is not a gnupg problem, it is a temporary
198 # fix until the gcc problem can be tracked down.
199 if [ "${ARCH}" == "sparc" ] && [ "${PROFILE_ARCH}" == "sparc" ]; then
200 filter-flags -mcpu=supersparc -mcpu=v8 -mcpu=v7
201 fi
202
203 # 'USE=static' support was requested in #29299
204 use static &&append-ldflags -static
205
206 econf \
207 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
208 $(use_enable ldap) \
209 --enable-mailto \
210 --enable-hkp \
211 --enable-finger \
212 $(use_with !zlib included-zlib) \
213 $(use_with curl libcurl /usr) \
214 $(use_enable nls) \
215 $(use_enable bzip2) \
216 $(use_enable smartcard card-support) \
217 $(use_enable selinux selinux-support) \
218 --disable-capabilities \
219 $(use_with readline) \
220 $(use_with usb libusb /usr) \
221 $(use_enable static) \
222 --enable-static-rnd=linux \
223 --libexecdir="${EPREFIX}/usr/libexec" \
224 --enable-noexecstack \
225 CC_FOR_BUILD=$(tc-getBUILD_CC) \
226 ${myconf}
227 }
228
229 src_install() {
230 emake DESTDIR="${D}" install || die "emake install failed"
231
232 # keep the documentation in /usr/share/doc/...
233 rm -rf "${ED}usr/share/gnupg/FAQ" "${ED}usr/share/gnupg/faq.html"
234
235 dodoc AUTHORS BUGS ChangeLog NEWS PROJECTS README THANKS \
236 TODO VERSION doc/{FAQ,HACKING,DETAILS,OpenPGP,faq.raw}
237
238 dohtml doc/faq.html
239
240 exeinto /usr/libexec/gnupg
241 doexe tools/make-dns-cert
242
243 # install RU documentation in right location
244 if use linguas_ru; then
245 cp doc/gpg.ru.1 "${T}/gpg.1"
246 doman -i18n=ru "${T}/gpg.1"
247 fi
248 }
249
250 pkg_postinst() {
251 ewarn "If you are using a non-Linux system, or a kernel older than 2.6.9,"
252 ewarn "you MUST make the gpg binary setuid."
253 echo
254 if use !bindist && use idea; then
255 elog
256 elog "IDEA"
257 elog "you have compiled ${PN} with support for the IDEA algorithm, this code"
258 elog "is distributed under the GPL in countries where it is permitted to do so"
259 elog "by law."
260 elog
261 elog "Please read http://www.gnupg.org/(en)/faq/why-not-idea.html for more information."
262 elog
263 ewarn "If you are in a country where the IDEA algorithm is patented, you are permitted"
264 ewarn "to use it at no cost for 'non revenue generating data transfer between private"
265 ewarn "individuals'."
266 ewarn
267 ewarn "Countries where the patent applies are listed here"
268 ewarn "http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm#Security"
269 ewarn
270 ewarn "Further information and other licenses are availble from http://www.mediacrypt.com/"
271 ewarn
272 fi
273 # if use !bindist && use ecc; then
274 # ewarn
275 # ewarn "The elliptical curves patch is experimental"
276 # ewarn "Further info available at http://alumnes.eps.udl.es/%7Ed4372211/index.en.html"
277 # fi
278 elog
279 elog "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
280 elog
281 elog "If you wish to view images emerge:"
282 elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
283 elog "Remember to use photo-viewer option in configuration file to activate the right viewer"
284 }