--- /usr/portage/net-p2p/gtk-gnutella/gtk-gnutella-0.95.4-r1.ebuild 2005-09-20 19:00:05.000000000 +0100 +++ gtk-gnutella-0.96_beta.ebuild 2005-12-01 10:45:07.000000000 +0000 @@ -4,10 +4,11 @@ inherit eutils -IUSE="gnome nls" +IUSE="dbus gnome nls" DESCRIPTION="A GTK+ Gnutella client" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +MY_P=${P/_beta/b} +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" RESTRICT="nomirror" HOMEPAGE="http://gtk-gnutella.sourceforge.net/" @@ -16,14 +17,13 @@ KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" DEPEND="dev-libs/libxml2 - =dev-libs/glib-2* =x11-libs/gtk+-2* + =dev-libs/glib-2* + =x11-libs/gtk+-2* dev-util/yacc + dbus? ( sys-apps/dbus ) nls? ( >=sys-devel/gettext-0.11.5 )" -src_unpack() { - unpack ${A} - cd ${S} -} +S=${WORKDIR}/${MY_P} src_compile() { local myconf @@ -34,6 +34,12 @@ 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" \ @@ -51,6 +57,4 @@ make INSTALL_PREFIX=${D} install || die "Install failed" find ${D}/usr/share -type f -exec chmod a-x {} \; dodoc AUTHORS ChangeLog README TODO - } -