# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/esound/esound-0.2.34.ebuild,v 1.15 2005/12/31 11:03:13 vapier Exp $ inherit libtool gnome.org eutils DESCRIPTION="The Enlightened Sound Daemon" HOMEPAGE="http://www.tux.org/~ricdude/EsounD.html" LICENSE="GPL-2 LGPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86" IUSE="tcpd alsa ipv6" DEPEND=">=media-libs/audiofile-0.1.5 alsa? ( >=media-libs/alsa-lib-0.5.10b ) tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PN}-0.2.32-amd64.patch } src_compile() { elibtoolize # Work-around for old auto-stuff. See bug #99013. export LC_ALL=C econf \ `use_with tcpd libwrap` \ `use_enable alsa` \ `use_enable ipv6` \ --sysconfdir=/etc/esd \ || die make || die } src_install() { einstall \ sysconfdir=${D}/etc/esd \ || die dodoc AUTHORS COPYING* ChangeLog README TODO NEWS TIPS dodoc docs/esound.ps dohtml -r docs/html insinto /etc/conf.d newins ${FILESDIR}/esound.conf.d esound exeinto /etc/init.d extradepend="" use tcpd && extradepend=" portmap" use alsa && extradepend="$extradepend alsasound" sed "s/@extradepend@/$extradepend/" <${FILESDIR}/esound.init.d >${T}/esound doexe ${T}/esound }