Remove paperkey as this is included in main portage tree
[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 #EGIT_COMMIT="a77ed0f266d03e234027dda4de5a7f3dd6787b1e"
12 HOMEPAGE="http://gnupg.org/"
13
14 LICENSE="GPL-2"
15 SLOT="2.1"
16 KEYWORDS="~amd64 ~x86"
17 IUSE=""
18
19 REQUIRED_USE=""
20 # Restrict test as it fails with ecc key generation atm
21 RESTRICT="test"
22
23 WANT_AUTOMAKE="1.13"
24 COMMON_DEPEND_LIBS="
25     >=dev-libs/libassuan-2.1:0
26     >=dev-libs/libgcrypt-1.6
27     >=dev-libs/libgpg-error-1.11:0
28     >=dev-libs/libksba-1.2.0:0
29         >=net-libs/gnutls-3.3.1:0
30     dev-libs/npth:2.1
31     >=net-misc/curl-7.10:0"
32
33 BDEPEND="dev-vcs/git:0
34         media-gfx/transfig:0"
35
36 DEPEND="
37         ${COMMON_DEPEND_LIBS}
38         net-nds/openldap:0=
39         ${BDEPEND}"
40
41 RDEPEND="${DEPEND}"
42
43 src_prepare() {
44         epatch "${FILESDIR}/gnupg_master_0002-Fix-building-with-GNU-Automake-1.13.patch"
45
46         autoreconf || die "Autoreconf fail"
47         ./autogen.sh || die "Autgen script failed"
48 }
49
50 src_configure() {
51         econf \
52                 --program-prefix='gpg2.1-' \
53                 --infodir=/usr/share/info/gnupg2.1 \
54                 --datarootdir=/usr/share/gnupg2.1 \
55                 --docdir=/usr/share/doc/gnupg2.1 \
56                 --enable-maintainer-mode \
57                 --enable-symcryptrun \
58                 --enable-mailto \
59                 --enable-gpgtar || die "Configure fail"
60 }
61
62 src_install(){
63         default
64         dosym gpg2.1-gpg2 /usr/bin/gpg2.1
65         dosym gpg2.1-gpg-agent /usr/bin/gpg2.1-agent
66         dosym gpg2.1-dirmngr /usr/bin/dirmngr
67     dosym gpg2.1-dirmngr-client /usr/bin/dirmngr-client
68 }