* app-crypt/gnupg: add git version * dev-libs/npth: Add git version
[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="Npth: part of gnupg update"
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         ./autogen.sh
37 }
38
39 src_configure() {
40         local myconf2; 
41
42         if use localprefix; then
43                 myconf2+=(
44                         --prefix=/usr/local
45                         --datarootdir=/usr/local
46                 )
47         fi
48
49         ./configure \
50                 ${myconf2[@]} \
51                 --enable-maintainer-mode \
52                 --enable-symcryptrun \
53                 --enable-mailto \
54                 --enable-gpgtar
55 }