You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/edna/edna-0.6.ebuild

64 lines
1.9 KiB

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/edna/edna-0.6.ebuild,v 1.5 2009/06/08 11:28:22 jer Exp $
EAPI=2
inherit eutils multilib
DESCRIPTION="Greg Stein's python streaming audio server for desktop or LAN use"
HOMEPAGE="http://edna.sourceforge.net/"
SRC_URI="mirror://sourceforge/edna/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="flac ogg"
RDEPEND=">=dev-lang/python-2.5
flac? ( media-libs/mutagen )
ogg? ( dev-python/pyogg )"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/${P}"-SystemExit.patch \
"${FILESDIR}/${P}"-flac.patch \
"${FILESDIR}/${P}"-daemon.patch \
"${FILESDIR}/${P}"-syslog.patch
}
src_install() {
newinitd "${FILESDIR}"/edna.gentoo edna
dodir /usr/bin /usr/$(get_libdir)/edna /usr/$(get_libdir)/edna/templates
exeinto /usr/bin ; newexe edna.py edna
exeinto /usr/$(get_libdir)/edna ; doexe ezt.py
exeinto /usr/$(get_libdir)/edna ; doexe MP3Info.py
insinto /usr/$(get_libdir)/edna/templates
insopts -m 644
doins templates/*
insinto /usr/$(get_libdir)/edna/resources
doins resources/*
insinto /etc/edna
insopts -m 644
doins edna.conf
dosym /usr/$(get_libdir)/edna/resources /etc/edna/resources
dosym /usr/$(get_libdir)/edna/templates /etc/edna/templates
dodoc README ChangeLog
dohtml -r www/*
}
pkg_postinst() {
enewgroup edna
enewuser edna -1 -1 -1 edna
elog "Edit edna.conf to taste before starting (multiple source"
elog "directories are allowed). Test edna from a shell prompt"
elog "until you have it configured properly, then add edna to"
elog "the default runlevel when you're ready. Add the USE flag"
elog "vorbis if you want edna to serve ogg files."
elog "See edna.conf and the html docs for more info, and set"
elog "PYTHONPATH=/usr/lib/edna to run from a shell prompt."
}