blob: 7e373a103cd41e382f46dadc8803976a64dfe05a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2009 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.10 2009/06/29 00:04:59 halcy0n 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}-gcc44.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
}
|