app-crypt/gnupg: move autogen to src_configure
[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=4
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="localprefix"
17
18 REQUIRED_USE=""
19
20 COMMON_DEPEND_LIBS="
21     >=dev-libs/libassuan-2.1
22     >=dev-libs/libgcrypt-1.5
23     >=dev-libs/libgpg-error-1.11
24     >=dev-libs/libksba-1.2.0
25     >=dev-libs/npth-0.91
26     >=net-misc/curl-7.10"
27
28 DEPEND="
29         ${COMMON_DEPEND_LIBS}
30         media-gfx/transfig
31         "
32 RDEPEND="${DEPEND}"
33
34 src_prepare() {
35         epatch "${FILESDIR}/gnupg_master_0002-Fix-building-with-GNU-Automake-1.13.patch"
36 }
37
38 src_configure() {
39         local myconf2; 
40
41         if use localprefix; then
42                 myconf2+=(
43                         --prefix=/usr/local
44                         --datarootdir=/usr/local
45                 )
46         fi
47
48         ./autogen.sh
49
50         ./configure \
51                 ${myconf2[@]} \
52                 --enable-maintainer-mode \
53                 --enable-symcryptrun \
54                 --enable-mailto \
55                 --enable-gpgtar
56 }