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-2.0.9-r1.ebuild
Date: Tue, 09 Sep 2008 09:53:08
Message-Id: E1Kcztx-0007QN-3I@stork.gentoo.org
1 robbat2 08/09/09 09:52:49
2
3 Modified: ChangeLog
4 Added: gnupg-2.0.9-r1.ebuild
5 Log:
6 Forward-port USE=static from gnupg1 since wschlich asked for it in bug #159623.
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
8
9 Revision Changes Path
10 1.334 app-crypt/gnupg/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.334&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.334&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.333&r2=1.334
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v
19 retrieving revision 1.333
20 retrieving revision 1.334
21 diff -p -w -b -B -u -u -r1.333 -r1.334
22 --- ChangeLog 24 Jul 2008 21:18:53 -0000 1.333
23 +++ ChangeLog 9 Sep 2008 09:52:48 -0000 1.334
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-crypt/gnupg
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.333 2008/07/24 21:18:53 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.334 2008/09/09 09:52:48 robbat2 Exp $
29 +
30 +*gnupg-2.0.9-r1 (09 Sep 2008)
31 +
32 + 09 Sep 2008; Robin H. Johnson <robbat2@g.o> +gnupg-2.0.9-r1.ebuild:
33 + Forward-port USE=static from gnupg1 since wschlich asked for it in bug
34 + #159623.
35
36 24 Jul 2008; Doug Goldstein <cardoe@g.o> metadata.xml:
37 add GLEP 56 USE flag desc from use.local.desc
38
39
40
41 1.1 app-crypt/gnupg/gnupg-2.0.9-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-2.0.9-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-2.0.9-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnupg-2.0.9-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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.9-r1.ebuild,v 1.1 2008/09/09 09:52:48 robbat2 Exp $
51
52 inherit flag-o-matic eutils toolchain-funcs
53
54 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
55 HOMEPAGE="http://www.gnupg.org/"
56 SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
57
58 LICENSE="GPL-3"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE="bzip2 doc ldap nls openct pcsc-lite static selinux smartcard"
62
63 COMMON_DEPEND_LIBS="
64 virtual/libc
65 >=dev-libs/pth-1.3.7
66 >=dev-libs/libgcrypt-1.2.2
67 >=dev-libs/libksba-1.0.2
68 >=dev-libs/libgpg-error-1.4
69 >=net-misc/curl-7.7.2
70 bzip2? ( app-arch/bzip2 )
71 pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )
72 openct? ( >=dev-libs/openct-0.5.0 )
73 ldap? ( net-nds/openldap )"
74 COMMON_DEPEND_BINS="app-crypt/pinentry"
75
76 # existence of bins are checked during configure
77 DEPEND="${COMMON_DEPEND_LIBS}
78 ${COMMON_DEPEND_BINS}
79 >=dev-libs/libassuan-1.0.4
80 nls? ( sys-devel/gettext )
81 doc? ( sys-apps/texinfo )"
82
83 RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
84 ${COMMON_DEPEND_BINS}
85 virtual/mta
86 !app-crypt/gpg-agent
87 !<=app-crypt/gnupg-2.0.1
88 selinux? ( sec-policy/selinux-gnupg )
89 nls? ( virtual/libintl )"
90
91 src_unpack() {
92 unpack ${A}
93 cd "${S}"
94 epatch "${FILESDIR}/${P}-gcc-4.3.patch"
95 }
96
97 src_compile() {
98 # 'USE=static' support was requested:
99 # gnupg1: bug #29299
100 # gnupg2: bug #159623
101 use static && append-ldflags -static
102
103 econf \
104 --docdir="/usr/share/doc/${PF}" \
105 --enable-symcryptrun \
106 --enable-gpg \
107 --enable-gpgsm \
108 --enable-agent \
109 $(use_enable bzip2) \
110 $(use_enable smartcard scdaemon) \
111 $(use_enable nls) \
112 $(use_enable ldap) \
113 $(use_enable static) \
114 --disable-capabilities \
115 CC_FOR_BUILD=$(tc-getBUILD_CC) \
116 || die
117 emake || die
118 if use doc; then
119 cd doc
120 emake html || die
121 fi
122 }
123
124 src_install() {
125 make DESTDIR="${D}" install || die
126 dodoc ChangeLog NEWS README THANKS TODO VERSION
127
128 mv "${D}/usr/share/gnupg"/{help*,faq*,FAQ} "${D}/usr/share/doc/${PF}"
129 prepalldocs
130
131 dosym gpg2 /usr/bin/gpg
132 dosym gpgv2 /usr/bin/gpgv
133 dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
134 dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
135 dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
136 use ldap && dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
137 echo ".so man1/gpg2.1" > "${D}/usr/share/man/man1/gpg.1"
138 echo ".so man1/gpgv2.1" > "${D}/usr/share/man/man1/gpgv.1"
139
140 use doc && dohtml doc/gnupg.html/* doc/*jpg doc/*png
141 }
142
143 pkg_postinst() {
144 elog "If you wish to view images emerge:"
145 elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
146 elog "Remember to use photo-viewer option in configuration file to activate"
147 elog "the right viewer"
148 }