For people using portage (Gentoo's package and build manager), I've
put together an ebuild to build gtk-gnutella using the source code
from the Sourceforge SVN repository:

gtk-gnutella-9999.ebuild
===============================================>
# Copyright 1999-2008 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"
# SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
SRC_URI=""
ESVN_REPO_URI="http://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="alpha amd64 ppc sparc x86 ~x86-fbsd"
KEYWORDS="~x86 ~amd64"

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.

        # If compiling for testing purposes, turn debugging
        CFLAGS="${CFLAGS} -O0 -g"

        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}

        emake || die "Compile failed"
}

src_install() {
        dodir /usr/bin
        make INSTALL_PREFIX="${D}" install || die "Install failed"
        dodoc AUTHORS ChangeLog README TODO
}

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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