summaryrefslogtreecommitdiff
blob: 9b94ccde3653cbaa1b21c1d80f91560389694614 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/slimserver-alienbbc/slimserver-alienbbc-1.06.ebuild,v 1.1 2006/11/13 19:58:25 twp Exp $

inherit eutils

SLIMSERVER_VERSION="6.5"
MY_P="alienbbc-linux-v${PV}_${SLIMSERVER_VERSION}"
DESCRIPTION="A plugin for SlimServer for listening to RealAudio streams"
HOMEPAGE="http://www.x2systems.com/AlienBBC/"
SRC_URI="http://www.x2systems.com/AlienBBC/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="
	>=media-sound/slimserver-${SLIMSERVER_VERSION}
	>=media-video/mplayer-1.0_pre7"
S="${WORKDIR}"

pkg_preinst() {
	if ! built_with_use media-video/mplayer live; then
		eerror "media-video/mplayer not built with USE=live"
		die "media-video/mplayer not built with USE=live"
	fi
	# FIXME does mplayer need to be built with USE=real?
}

src_install() {
	dodir /opt/slimserver/.mplayer
	touch ${D}/opt/slimserver/.mplayer/.config
	cp -r * ${D}/opt/slimserver
}