net-misc/sks-9999: bump db to 5.3
[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
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     >=net-libs/gnutls-3.0"
33
34 BDEPEND="dev-vcs/git:0
35         media-gfx/transfig:0"
36
37 DEPEND="
38         ${COMMON_DEPEND_LIBS}
39         net-nds/openldap:0=
40         ${BDEPEND}"
41
42 RDEPEND="${DEPEND}"
43
44 src_prepare() {
45         epatch "${FILESDIR}/gnupg_master_0002-Fix-building-with-GNU-Automake-1.13.patch"
46
47         autoreconf || die "Autoreconf fail"
48         ./autogen.sh || die "Autgen script failed"
49 }
50
51 src_configure() {
52         econf \
53                 --program-prefix='gpg2.1-' \
54                 --infodir=/usr/share/info/gnupg2.1 \
55                 --datarootdir=/usr/share/gnupg2.1 \
56                 --docdir=/usr/share/doc/gnupg2.1 \
57                 --enable-maintainer-mode \
58                 --enable-symcryptrun \
59                 --enable-mailto \
60                 --enable-gpgtar || die "Configure fail"
61 }
62
63 src_install(){
64         default
65         dosym gpg2.1-gpg2 /usr/bin/gpg2.1
66         dosym gpg2.1-gpg-agent /usr/bin/gpg2.1-agent
67         dosym gpg2.1-dirmngr /usr/bin/dirmngr
68     dosym gpg2.1-dirmngr-client /usr/bin/dirmngr-client
69 }