You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/gpa/gpa-0.9.1_pre20100416.ebuild

60 lines
1.6 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/gpa/gpa-0.9.1_pre20100416.ebuild,v 1.9 2012/05/03 18:16:38 jdhore Exp $
EAPI="3"
inherit autotools eutils multilib
DESCRIPTION="The GNU Privacy Assistant (GPA) is a graphical user interface for GnuPG"
HOMEPAGE="http://gpa.wald.intevation.org"
#STUPID_NUM="603"
#SRC_URI="http://wald.intevation.org/frs/download.php/${STUPID_NUM}/${P}.tar.bz2"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
IUSE="nls"
RDEPEND=">=x11-libs/gtk+-2.10.0:2
>=dev-libs/libgpg-error-1.4
>=dev-libs/libassuan-1.1.0
>=app-crypt/gnupg-2
>=app-crypt/gpgme-1.2.0"
DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
src_prepare() {
epatch "${FILESDIR}"/${PN}-desktop-file-validate.patch
local x=/usr/share/gettext/po/Makefile.in.in
[[ -e $x ]] && cp -f $x po/ #323743
sed -e "s|gnupg/:|:|g" -i configure.ac || die
eautoreconf
}
src_configure() {
local myconf
# By default gnupg puts gpgkeys_hkp in /usr/libexec/gnupg, so
# check if it is in uncommon /usr/lib/gnupg, and change libexecdir
# if so. If we do not do this, hkp server types is not usable,
# as gpa cannot find gpgkeys_hkp ...
[[ -f /usr/lib/gnupg/gpgkeys_hkp ]] && myconf="--libexecdir=/usr/$(get_libdir)"
econf \
--with-gpgme-prefix=/usr \
--with-libassuan-prefix=/usr \
$(use_enable nls) \
${myconf}
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog README NEWS TODO
}