# Copyright 1999-2006 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.5 2006/06/28 03:09:05 squinky86 Exp $ inherit eutils qt3 multilib kde-functions need-kde 3 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="3" # why?? DEPEND="$(qt_min_version 3) kde? ( >=kde-base/kdelibs-3 )" 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 "${DISTDIR}"/${P}-libyahoo.patch.gz } src_compile() { local myconf if use kde ; then myconf="--with-kde=yes --with-kde-libs=${KDEDIR}" 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 }