summaryrefslogtreecommitdiff
blob: 365afd9334f32c962eb357a7b4f7ad90f908e885 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Rivendell Open Source Radio Automation"
HOMEPAGE="http://www.rivendellaudio.org"
SRC_URI="http://www.rivendellaudio.org/ftpdocs/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="media-libs/libradio
	=x11-libs/qt-3*"
RDEPEND="${DEPEND}"

pkg_setup() {
	enewgroup rivendell
	enewuser rivendell -1 /bin/bash /var/lib/rivendell rivendell
}

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/sandbox.patch
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"

	insinto /etc
	doins conf/rd.conf-sample

	mkdir ${D}/var/snd
	chown rivendell:rivendell ${D}/var/snd
}