app-crypt/gnupg: symlink for agent
[portage-overlay.git] / app-crypt / gnupg / gnupg-9999.ebuild
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-9999.ebuild,v 1.7 2013/05/03 07:56:29 djc Exp $
4
5 EAPI=5
6
7 inherit eutils autotools flag-o-matic user git-2
8
9 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
10 EGIT_REPO_URI="git://git.gnupg.org/${PN}.git"
11 HOMEPAGE="http://gnupg.org/"
12
13 LICENSE="GPL-2"
14 SLOT="2.1"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 REQUIRED_USE=""
19 WANT_AUTOMAKE="1.13"
20
21 COMMON_DEPEND_LIBS="
22     >=dev-libs/libassuan-2.1:0
23     dev-libs/libgcrypt:2.1
24     >=dev-libs/libgpg-error-1.11:0
25     >=dev-libs/libksba-1.2.0:0
26     dev-libs/npth:2.1
27     >=net-misc/curl-7.10:0"
28
29 BDEPEND="dev-vcs/git:0
30         media-gfx/transfig:0"
31
32 DEPEND="
33         ${COMMON_DEPEND_LIBS}
34         net-nds/openldap:0=
35         ${BDEPEND}"
36
37 RDEPEND="${DEPEND}"
38
39 src_prepare() {
40         epatch "${FILESDIR}/gnupg_master_0002-Fix-building-with-GNU-Automake-1.13.patch"
41
42         ./autogen.sh || die "Autgen script failed"
43 }
44
45 src_configure() {
46         econf \
47                 --program-prefix='gpg2.1-' \
48                 --infodir=/usr/share/info/gnupg2.1 \
49                 --datadir=/usr/share/gnupg2.1 \
50                 --docdir=/usr/share/doc/gnupg2.1 \
51                 --enable-maintainer-mode \
52                 --enable-symcryptrun \
53                 --enable-mailto \
54                 --enable-gpgtar
55 }
56
57 src_install(){
58         default
59         dosym gpg2.1-gpg2 /usr/bin/gpg2.1
60         dosym gpg2.1-gpg-agent /usr/bin/gpg2.1-agent
61 }