net-misc/sks: file alignment
[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 COMMON_DEPEND_LIBS="
21     >=dev-libs/libassuan-2.1:0
22     >=dev-libs/libgcrypt-1.6
23     >=dev-libs/libgpg-error-1.11:0
24     >=dev-libs/libksba-1.2.0:0
25     dev-libs/npth:2.1
26     >=net-misc/curl-7.10:0"
27
28 BDEPEND="dev-vcs/git:0
29         media-gfx/transfig:0"
30
31 DEPEND="
32         ${COMMON_DEPEND_LIBS}
33         net-nds/openldap:0=
34         ${BDEPEND}"
35
36 RDEPEND="${DEPEND}"
37
38 src_prepare() {
39         epatch "${FILESDIR}/gnupg_master_0002-Fix-building-with-GNU-Automake-1.13.patch"
40
41         ./autogen.sh || die "Autgen script failed"
42 }
43
44 src_configure() {
45         econf \
46                 --program-prefix='gpg2.1-' \
47                 --infodir=/usr/share/info/gnupg2.1 \
48                 --datarootdir=/usr/share/gnupg2.1 \
49                 --docdir=/usr/share/doc/gnupg2.1 \
50                 --enable-maintainer-mode \
51                 --enable-symcryptrun \
52                 --enable-mailto \
53                 --enable-gpgtar
54 }
55
56 src_install(){
57         default
58         dosym gpg2.1-gpg2 /usr/bin/gpg2.1
59         dosym gpg2.1-gpg-agent /usr/bin/gpg2.1-agent
60 }