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: gnupg-1.4.12.ebuild ChangeLog
Date: Tue, 31 Jan 2012 02:44:20
Message-Id: 20120131024408.84C852004C@flycatcher.gentoo.org
1 robbat2 12/01/31 02:44:08
2
3 Modified: ChangeLog
4 Added: gnupg-1.4.12.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.421 app-crypt/gnupg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.421&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.421&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.420&r2=1.421
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v
20 retrieving revision 1.420
21 retrieving revision 1.421
22 diff -p -w -b -B -u -u -r1.420 -r1.421
23 --- ChangeLog 11 Jan 2012 00:19:55 -0000 1.420
24 +++ ChangeLog 31 Jan 2012 02:44:08 -0000 1.421
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-crypt/gnupg
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.420 2012/01/11 00:19:55 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.421 2012/01/31 02:44:08 robbat2 Exp $
30 +
31 +*gnupg-1.4.12 (31 Jan 2012)
32 +
33 + 31 Jan 2012; Robin H. Johnson <robbat2@g.o> +gnupg-1.4.12.ebuild:
34 + Version bump.
35
36 11 Jan 2012; Robin H. Johnson <robbat2@g.o> gnupg-1.4.11.ebuild:
37 Bug #398441: IDEA patents have expired, remove bindist impact on USE=idea.
38
39
40
41 1.1 app-crypt/gnupg/gnupg-1.4.12.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-1.4.12.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-1.4.12.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnupg-1.4.12.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.12.ebuild,v 1.1 2012/01/31 02:44:08 robbat2 Exp $
51
52 EAPI="3"
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 ECCVER="0.2.0"
57 ECCVER_GNUPG="1.4.9"
58 ECC_PATCH="${PN}-${ECCVER_GNUPG}-ecc${ECCVER}.diff"
59 MY_P=${P/_/}
60
61 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
62 HOMEPAGE="http://www.gnupg.org/"
63 SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2
64 idea? ( mirror://gentoo/idea.c.gz )"
65 # ecc? ( http://www.calcurco.cat/eccGnuPG/src/${ECC_PATCH}.bz2 )
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
70 IUSE="bzip2 curl idea ldap nls readline selinux smartcard static usb zlib linguas_ru"
71 #IUSE="bzip2 bindist curl ecc idea ldap nls readline selinux smartcard static usb zlib linguas_ru"
72
73 COMMON_DEPEND="
74 ldap? ( net-nds/openldap )
75 bzip2? ( app-arch/bzip2 )
76 zlib? ( sys-libs/zlib )
77 curl? ( net-misc/curl )
78 virtual/mta
79 readline? ( sys-libs/readline )
80 smartcard? ( =virtual/libusb-0* )
81 usb? ( =virtual/libusb-0* )"
82
83 RDEPEND="!static? ( ${COMMON_DEPEND} )
84 selinux? ( sec-policy/selinux-gnupg )
85 nls? ( virtual/libintl )"
86
87 DEPEND="${COMMON_DEPEND}
88 dev-lang/perl
89 nls? ( sys-devel/gettext )"
90
91 S="${WORKDIR}/${MY_P}"
92
93 src_prepare() {
94 if use idea; then
95 mv "${WORKDIR}"/idea.c "${S}"/cipher/idea.c || \
96 ewarn "failed to insert IDEA module"
97 fi
98
99 # if use ecc; then
100 # if use bindist; then
101 # einfo "Skipping ECC patch to comply with binary distribution (bug #148907)."
102 # else
103 # sed -i \
104 # "s/- VERSION='${ECCVER_GNUPG}'/- VERSION='${PV}'/" \
105 # "${WORKDIR}/${ECC_PATCH}"
106 # sed -i \
107 # "s/+ VERSION='${ECCVER_GNUPG}-ecc${ECCVER}'/+ VERSION='${PV}-ecc${ECCVER}'/" \
108 # "${WORKDIR}/${ECC_PATCH}"
109 #
110 # epatch "${WORKDIR}/${ECC_PATCH}"
111 # fi
112 # fi
113
114 # Install RU man page in right location
115 sed -e "/^man_MANS =/s/ gpg\.ru\.1//" -i doc/Makefile.in || die "sed doc/Makefile.in failed"
116
117 # Fix PIC definitions
118 sed -i -e 's:PIC:__PIC__:' mpi/i386/mpih-{add,sub}1.S intl/relocatable.c \
119 || die "sed PIC failed"
120 sed -i -e 's:if PIC:ifdef __PIC__:' mpi/sparc32v8/mpih-mul{1,2}.S || \
121 die"Sed PIC failed"
122 }
123
124 src_configure() {
125 # Certain sparc32 machines seem to have trouble building correctly with
126 # -mcpu enabled. While this is not a gnupg problem, it is a temporary
127 # fix until the gcc problem can be tracked down.
128 if [ "${ARCH}" == "sparc" ] && [ "${PROFILE_ARCH}" == "sparc" ]; then
129 filter-flags -mcpu=supersparc -mcpu=v8 -mcpu=v7
130 fi
131
132 # 'USE=static' support was requested in #29299
133 use static &&append-ldflags -static
134
135 econf \
136 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
137 $(use_enable ldap) \
138 --enable-mailto \
139 --enable-hkp \
140 --enable-finger \
141 $(use_with !zlib included-zlib) \
142 $(use_with curl libcurl /usr) \
143 $(use_enable nls) \
144 $(use_enable bzip2) \
145 $(use_enable smartcard card-support) \
146 $(use_enable selinux selinux-support) \
147 --without-capabilities \
148 $(use_with readline) \
149 $(use_with usb libusb /usr) \
150 --enable-static-rnd=linux \
151 --libexecdir="${EPREFIX}/usr/libexec" \
152 --enable-noexecstack \
153 CC_FOR_BUILD=$(tc-getBUILD_CC) \
154 ${myconf}
155 }
156
157 src_install() {
158 emake DESTDIR="${D}" install || die "emake install failed"
159
160 # keep the documentation in /usr/share/doc/...
161 rm -rf "${ED}usr/share/gnupg/FAQ" "${ED}usr/share/gnupg/faq.html" || die
162
163 dodoc AUTHORS BUGS ChangeLog NEWS PROJECTS README THANKS \
164 TODO VERSION doc/{FAQ,HACKING,DETAILS,OpenPGP} || die
165
166 exeinto /usr/libexec/gnupg
167 doexe tools/make-dns-cert || die
168
169 # install RU documentation in right location
170 if use linguas_ru; then
171 cp doc/gpg.ru.1 "${T}/gpg.1" || die
172 doman -i18n=ru "${T}/gpg.1" || die
173 fi
174 }
175
176 pkg_postinst() {
177 ewarn "If you are using a non-Linux system, or a kernel older than 2.6.9,"
178 ewarn "you MUST make the gpg binary setuid."
179 echo
180 # if use !bindist && use ecc; then
181 # ewarn
182 # ewarn "The elliptical curves patch is experimental"
183 # ewarn "Further info available at http://alumnes.eps.udl.es/%7Ed4372211/index.en.html"
184 # fi
185 elog
186 elog "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
187 elog
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 the right viewer"
191 }