Mitch Harder wrote a simple live ebuild, based on the 0.96.5 ebuild.
Now there was a problem with revision number in the binary so I'm attaching a 
modified ebuild (based on 0.96.6) that changes:
- FIXED: make was executed twice. build.sh already runs it
- FIXED: GTA_BUILD was wrong/empty (see the comment in the ebuild to know more)

Enjoy!


# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils subversion

#TODO: headless mode (but not very well tested yet, may still be too
#hardcore)
IUSE="nls dbus gnutls"

DESCRIPTION="A GTK+ Gnutella client"
ESVN_REPO_URI="https://gtk-gnutella.svn.sourceforge.net/svnroot/gtk-gnutella/trunk/gtk-gnutella";
ESVN_PROJECT="gtk-gnutella"
HOMEPAGE="http://gtk-gnutella.sourceforge.net/";

SLOT="0"
LICENSE="GPL-2"
KEYWORDS=""

RDEPEND=">=dev-libs/libxml2-2.6.0
        >=x11-libs/gtk+-2.2.1
        dbus? ( >=sys-apps/dbus-0.35.2 )
        gnutls? ( >=net-libs/gnutls-1.0.16 )
        nls? ( >=sys-devel/gettext-0.11.5 )"
DEPEND="${RDEPEND}
        dev-util/pkgconfig"

src_compile() {
        # gtk-gnutella now uses a custom build script which in turn drives
        # the Configure script. The options for the build script are less
        # arcane, so use that for clarity. The drawback is that the build
        # script uses a bit of magic on its own and also runs make.

        # The original svn revision update script relies on .svn/ and svn info 
that
        # are not present in the temporary workdir. So disable the script and 
update
        # the revision using the eclass variable.
        subversion_wc_info
        epatch "${FILESDIR}"/${PN}-revision-overwrite-disable.patch
        sed -i -e "s/Revision: [[:digit:]]*/Revision: ${ESVN_WC_REVISION}/" 
src/revision.h || die "sed failed"

        local myconf

        if ! use nls; then
                myconf="${myconf} --disable-nls"
        fi

        if ! use dbus; then
                myconf="${myconf} --disable-dbus"
        fi

        if ! use gnutls; then
                myconf="${myconf} --disable-gnutls"
        fi

        ./build.sh --prefix="/usr" --gtk2 ${myconf}
}

src_install() {
        dodir /usr/bin
        make INSTALL_PREFIX="${D}" install || die "Install failed"
        dodoc AUTHORS ChangeLog README TODO
}
 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP 
autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 In cerca dell'anima gemella? Prova con Meetic, puoi conoscere centinaia di 
single e chattare anche con la webcam
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8289&d=6-4

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to