summaryrefslogtreecommitdiff
blob: e896ec891e0eb571be44ee85db42c905c7567c35 (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
50
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/radiostation/radiostation-0.5.ebuild,v 1.9 2004/09/15 17:20:52 eradicator Exp $

IUSE="debug kde"

DESCRIPTION="Managements system for online audio streams"
HOMEPAGE="http://mindx.dyndns.org/kde/radio/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 sparc"

# We don't inherit kde because we might not need to install the kde
# related components, and if that's the case, we don't want to accidently
# pull in kde as a dependency

DEPEND="kde? ( >=kde-base/kdelibs-3.1 )
	dev-util/dialog
	net-www/lynx
	net-misc/wget
	media-sound/xmms"

S=${WORKDIR}/kderadiostation-${PV}
SRC_URI="http://mindx.dyndns.org/kde/radio/source/kderadiostation-${PV}.tar.gz
	 http://mindx.dyndns.org/kde/radio/source/radiostation"

src_unpack() {
	if use kde; then
		unpack kderadiostation-${PV}.tar.gz
	fi

	cp ${DISTDIR}/radiostation ${WORKDIR}
}

src_compile() {
	if use kde; then
		econf `use_enable debug` || die "Unsuccessful configure"
		emake || die "Unsuccessful make"
	fi
}

src_install() {
	if use kde; then
		einstall || die "Unsuccessful install"
		dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
	fi

	dobin ${WORKDIR}/radiostation
}