summaryrefslogtreecommitdiff
blob: 4e217c486ae95d2b5f9ea95685266510d4de9caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit autotools

DESCRIPTION="A GTK+-based LDAP client"
HOMEPAGE="http://sourceforge.net/projects/gqclient/"
SRC_URI="mirror://sourceforge/gqclient/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

# More use flags are needed because now there are a number of
# automagic dependencies.
IUSE="kerberos gnome-keyring"

RDEPEND=">=x11-libs/gtk+-2.6
	>=net-nds/openldap-2
	kerberos? ( virtual/krb5 )
	dev-libs/openssl
	dev-libs/libxml2
	>=dev-libs/glib-2.6
	x11-libs/pango
	dev-libs/cyrus-sasl
	gnome-keyring? ( >=gnome-base/gnome-keyring-0.4.4 )
	>=gnome-base/libglade-2"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

src_prepare() {
	epatch "${FILESDIR}/${P}-crypto.patch"
	epatch "${FILESDIR}/${P}-autoconf.patch"

	eautoreconf
}

src_configure() {
	local myconf="--enable-browser-dnd --enable-cache --disable-update-mimedb"
	use kerberos && myconf="${myconf} --with-kerberos-prefix=/usr"
	use gnome-keyring && myconf="${myconf} --with-keyring-api=gnome"

	econf ${myconf} || die "econf failed"
}

src_install() {
	rm -f "${D}"/usr/share/locale/locale.alias
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS ChangeLog NEWS README* TODO
}