# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/bossogg/bossogg-0.13.6-r3.ebuild,v 1.3 2006/02/04 15:15:17 flameeyes Exp $ inherit eutils autotools IUSE="vorbis mad flac" DESCRIPTION="Bossogg Music Server" HOMEPAGE="http://bossogg.wishy.org" SRC_URI="mirror://sourceforge/bossogg/${P}.tar.gz" KEYWORDS="~amd64 ~sparc ~x86" SLOT="0" LICENSE="GPL-2" DEPEND=">=media-libs/libao-0.8.3 media-libs/libshout flac? ( media-libs/flac ) vorbis? ( media-libs/libvorbis ) mad? ( media-libs/libmad media-libs/id3lib ) =dev-db/sqlite-2*" RDEPEND="${DEPEND} dev-python/pysqlite" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-Makefile.patch epatch ${FILESDIR}/${P}-gcc4.patch eautoreconf } src_compile() { econf --enable-shout \ $(use_enable vorbis) \ $(use_enable flac) \ $(use_enable mad mp3) \ $(use_enable mad id3) || die "could not configure" emake -j1 || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc README TODO API newinitd ${FILESDIR}/bossogg.initd bossogg } pkg_postinst() { enewgroup bossogg enewuser bossogg -1 -1 /var/bossogg bossogg -G audio if ! [[ -d /var/bossogg ]]; then mkdir /var/bossogg chown bossogg:bossogg /var/bossogg fi einfo "After running the /etc/init.d/bossogg service for the first" einfo "time, /var/bossogg/.bossogg/bossogg.conf will be created." einfo "Please edit this file and restart the service to setup." einfo "the server." }