# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/gtk-gnutella/gtk-gnutella-0.95.4-r1.ebuild,v 1.1 2005/09/20 18:00:05 mkay Exp $ inherit eutils IUSE="dbus gnome nls" DESCRIPTION="A GTK+ Gnutella client" MY_P=${P/_beta/b} SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" RESTRICT="nomirror" HOMEPAGE="http://gtk-gnutella.sourceforge.net/" SLOT="0" LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" DEPEND="dev-libs/libxml2 =dev-libs/glib-2* =x11-libs/gtk+-2* dev-util/yacc nls? ( >=sys-devel/gettext-0.11.5 ) dbus? ( sys-apps/dbus) " S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} } src_compile() { cd ${WORKDIR}/${MY_P} local myconf if use nls; then myconf="${myconf} -Dd_enablenls -Dgmsgfmt=\"/usr/bin/msgfmt\" -Dmsgfmt=\"/usr/bin/msgfmt\"" else myconf="${myconf} -Ud_enablenls" fi if use dbus; then myconf="${myconf} -Ddbus=true" else myconf="${myconf} -Ddbus=false" fi ./Configure -d -s -e \ -Dprefix="/usr" \ -Dprivlib="/usr/share/gtk-gnutella" \ -Dccflags="${CFLAGS}" \ -Dgtkversion=2 \ ${myconf} \ -Doptimize=" " \ -Dofficial="true" || die "Configure failed" emake || die "Compile failed" } src_install() { dodir /usr/bin make INSTALL_PREFIX=${D} install || die "Install failed" find ${D}/usr/share -type f -exec chmod a-x {} \; dodoc AUTHORS ChangeLog README TODO }