inherit eutils S=${WORKDIR}/${PN}-${PV/_/} DESCRIPTION="GQ is a GTK+-based LDAP client" HOMEPAGE="http://www.gq-project.org/" SRC_URI="mirror://sourceforge/gqclient/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="kerberos nls ssl sasl" RESTRICT="nostrip" RDEPEND=">=x11-libs/gtk+-2 >=net-nds/openldap-2 kerberos? ( app-crypt/mit-krb5 ) ssl? ( dev-libs/openssl ) dev-libs/libxml2 >=dev-libs/glib-2 x11-libs/pango sasl? ( dev-libs/cyrus-sasl ) virtual/libc" DEPEND="${RDEPEND} dev-util/pkgconfig" src_compile() { local myconf="--enable-browser-dnd --enable-cache" use nls \ && myconf="${myconf} --with-included-gettext" \ || myconf="${myconf} --disable-nls" use kerberos && myconf="${myconf} --with-kerberos-prefix=/usr" econf $myconf || die "./configure failed" emake || die "Compilation failed" } src_install() { rm -f ${D}/usr/share/locale/locale.alias dodoc AUTHORS ChangeLog COPYING NEWS README* TODO }