dev-libs/libgcrypt: add transfig build dep
[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=""
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         epatch "${FILESDIR}/0001-doc-gpg-agent-Add-missing-entry-for-allow-preset-pas.patch"
47
48         autoreconf || die "Autoreconf fail"
49         ./autogen.sh || die "Autgen script failed"
50 }
51
52 src_configure() {
53         econf \
54                 --program-prefix='gpg2.1-' \
55                 --infodir=/usr/share/info/gnupg2.1 \
56                 --datarootdir=/usr/share/gnupg2.1 \
57                 --docdir=/usr/share/doc/gnupg2.1 \
58                 --enable-maintainer-mode \
59                 --enable-symcryptrun \
60                 --enable-mailto \
61                 --enable-gpgtar || die "Configure fail"
62 }
63
64 src_install(){
65         default
66         dosym gpg2.1-gpg2 /usr/bin/gpg2.1
67         dosym gpg2.1-gpg-agent /usr/bin/gpg2.1-agent
68         dosym gpg2.1-dirmngr /usr/bin/dirmngr
69         dosym gpg2.1-dirmngr-client /usr/bin/dirmngr-client
70 }