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