# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/qtella/qtella-0.7.0-r1.ebuild,v 1.9 2008/07/27 22:12:53 carlo Exp $ EAPI=1 inherit eutils qt3 multilib SRC_URI="mirror://sourceforge/qtella/${P}.tar.gz http://squinky.gotdns.com/${P}-libyahoo.patch.gz" HOMEPAGE="http://qtella.sourceforge.net/" DESCRIPTION="Excellent QT/KDE Gnutella Client" LICENSE="GPL-2" IUSE="kde" KEYWORDS="ppc ~sparc x86" SLOT="0" DEPEND="x11-libs/qt:3 kde? ( kde-base/kdelibs:3.5 )" src_unpack() { unpack ${P}.tar.gz cd "${S}" if ! use kde; then epatch "${FILESDIR}"/${PV}-nokde.patch fi epatch "${FILESDIR}"/${P}-errno.patch epatch "${FILESDIR}"/${P}-gcc41.patch epatch "${FILESDIR}"/${P}-gcc43.patch epatch "${DISTDIR}"/${P}-libyahoo.patch.gz } src_compile() { local myconf if use kde ; then myconf="--with-kde=yes --with-kde-libs=`kde-config --expandvars --install lib` --with-kde-includes=`kde-config --expandvars --install include`" else myconf="--with-kde=no" fi econf ${myconf} || die "econf failed" emake -j1 || die "emake failed" } src_install() { make DESTDIR=${D} install || die "make install failed" dodoc AUTHORS ChangeLog THANKS }