blob: c9ed365e6bbb15c50e8380dd973bdc4d5553381b (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/kstreamripper/kstreamripper-0.3.4.ebuild,v 1.7 2008/09/10 23:45:53 gentoofan23 Exp $
inherit eutils kde
DESCRIPTION="KStreamripper - a nice KDE3 frontend to media-sound/streamripper"
HOMEPAGE="http://kstreamripper.tuxipuxi.org/"
# Portage isn't capable to get along with this url.
# SRC_URI="http://www.tuxipuxi.org/?download=${P}.tar.bz2"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ~ppc ~ppc64 sparc ~x86"
IUSE=""
RDEPEND=">=media-sound/streamripper-1.32-r2"
DEPEND="${RDEPEND}
>=dev-util/scons-0.96.1"
need-kde 3.2
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-desktop-entry.patch
}
src_compile() {
local myconf="kdeincludes=$(kde-config --prefix)/include prefix=/usr"
use amd64 && myconf="${myconf} libsuffix=64"
unset CFLAGS # freaking scons is passing CFLAGS into g++
scons configure ${myconf} || die "scons configure failed."
scons || die "scons failed."
}
src_install() {
DESTDIR="${D}" scons install || die "scons install failed."
dodoc AUTHORS ChangeLog NEWS README TODO
newicon src/hi32-app-kstreamripper.png ${PN}.png
}
|