# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Rivendell is a complete radio broadcast automation solution, with facilities for the acquisition, management, scheduling and playout of audio content." HOMEPAGE="http://rivendellaudio.org/" SRC_URI="http://rivendellaudio.org/ftpdocs/rivendell/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="alsa cdparanoia ftp jack ogg samba" DEPEND="alsa? ( media-libs/alsa-lib media-libs/libsamplerate ) ftp? ( net-ftp/lftp ) jack? (media-sound/jack-audio-connection-kit media-libs/libsamplerate ) cdparanoia? ( media-sound/cdparanoia app-cdr/cdrkit) samba? ( net-fs/samba ) =x11-libs/qt-3* virtual/mysql media-sound/sox sys-devel/bc media-sound/mpg321 net-misc/wget ogg? ( media-libs/libogg ) media-libs/id3lib" RDEPEND="${DEPEND}" pkg_setup() { enewgroup rivendell enewuser rivendell -1 /bin/bash /var/lib/rivendell rivendell } src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-sandbox.patch" } src_compile() { econf \ $(use_enable !jack --disable-jack) \ $(use_enable !alsa --disable-alsa) \ || die emake || die } 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 } pkg_postinst() { elog "You will need to set up the /etc/rd.conf file before" elog "running Rivendell for the first time. Once complete," elog "use rdadmin to initialize the Rivendell database." elog "An init script to control system deamons has been" elog "placed in /etc/init.d/" }