/[gentoo-alt]/trunk/prefix/app-crypt/gnupg/gnupg-1.9.21.ebuild
Gentoo

Contents of /trunk/prefix/app-crypt/gnupg/gnupg-1.9.21.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1429 - (show annotations) (download)
Sun Sep 10 10:28:51 2006 UTC (7 years, 10 months ago) by grobian
File size: 3147 byte(s)
added gnupg and gpgme


1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.9.21.ebuild,v 1.5 2006/09/05 14:18:44 gustavoz Exp $
4
5 EAPI="prefix"
6
7 inherit eutils flag-o-matic autotools
8
9 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
10 HOMEPAGE="http://www.gnupg.org/"
11 SRC_URI="mirror://gnupg/alpha/gnupg/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="1.9"
15 KEYWORDS="amd64 ppc-macos x86"
16 IUSE="X gpg2-experimental ldap nls smartcard selinux"
17 #IUSE+=caps
18
19 COMMON_DEPEND="
20 dev-lang/perl
21 sys-libs/zlib
22 virtual/libc
23 >=dev-libs/pth-1.3.7
24 smartcard? ( >=dev-libs/opensc-0.8.0 )
25 >=dev-libs/libgcrypt-1.1.94
26 >=dev-libs/libksba-0.9.15
27 >=dev-libs/libgpg-error-1.0
28 ~dev-libs/libassuan-0.6.10
29 ldap? ( net-nds/openldap )"
30 # caps? ( sys-libs/libcap )"
31
32 DEPEND="${COMMON_DEPEND}
33 nls? ( sys-devel/gettext )"
34
35 RDEPEND="${COMMON_DEPEND}
36 !app-crypt/gpg-agent
37 =app-crypt/gnupg-1.4*
38 X? ( || ( media-gfx/xloadimage media-gfx/xli ) )
39 virtual/mta
40 selinux? ( sec-policy/selinux-gnupg )
41 nls? ( virtual/libintl )"
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46 if use smartcard && ! built_with_use dev-libs/opensc pcsc-lite ; then
47 sed -i -e 's:OPENSC_LIBS="\$OPENSC_LIBS -lpcsclite -lpthread":OPENSC_LIBS="\$OPENSC_LIBS -lopenct -lpthread":' \
48 acinclude.m4 || die "openct patching failed."
49 ./autogen.sh
50 fi
51 sed -i -e 's/PIC/__PIC__/g' intl/relocatable.c || die "PIC patching failed"
52
53 # this warning is only available on gcc4!
54 sed -i -e '/AM_CFLAGS/s!-Wno-pointer-sign!!g' ${S}/g10/Makefile.am
55 sed -i -e '/AM_CFLAGS/s!-Wno-pointer-sign!!g' ${S}/g10/Makefile.in
56
57 epatch "${FILESDIR}/${PN}-1.9.20-fbsd.patch"
58 #epatch "${FILESDIR}/${P}-fbsd-gcc41.patch"
59 AT_M4DIR="m4 gl/m4" eautoreconf
60 }
61
62 src_compile() {
63 local myconf=""
64
65 if use X; then
66 local viewer
67 if has_version 'media-gfx/xloadimage'; then
68 viewer="${EPREFIX}"/usr/bin/xloadimage
69 else
70 viewer="${EPREFIX}"/usr/bin/xli
71 fi
72 myconf="${myconf} --with-photo-viewer=${viewer}"
73 else
74 myconf="${myconf} --disable-photo-viewers"
75 fi
76
77 #use caps || append-ldflags $(bindnow-flags)
78 append-ldflags $(bindnow-flags)
79
80 # the Darwin linker finds that this is not in the final linking phase...
81 append-ldflags -lpth
82
83 #$(use_with caps capabilities) \
84 econf \
85 --enable-agent \
86 --enable-symcryptrun \
87 $(use_enable gpg2-experimental gpg) \
88 --enable-gpgsm \
89 $(use_enable smartcard scdaemon) \
90 $(use_enable nls) \
91 $(use_enable ldap) \
92 --disable-capabilities \
93 ${myconf} \
94 || die
95 emake || die
96 }
97
98 src_install() {
99 make DESTDIR="${EDEST}" install || die
100 dodoc ChangeLog NEWS README THANKS TODO VERSION
101
102 #if ! use caps; then
103 use gpg2-experimental && fperms u+s,go-r /usr/bin/gpg2
104 fperms u+s,go-r /usr/bin/gpg-agent
105 #fi
106 }
107
108 pkg_postinst() {
109 #if ! use caps; then
110 # einfo "gpg is installed suid root to make use of protected memory space"
111 # einfo "This is needed in order to have a secure place to store your"
112 # einfo "passphrases, etc. at runtime but may make some sysadmins nervous."
113 #fi
114 einfo
115 einfo "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
116 einfo
117 }

  ViewVC Help
Powered by ViewVC 1.1.20