# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 mono eutils autotools DESCRIPTION="an application to publish music over local networks" HOMEPAGE="http://www.snorp.net/log/tangerine" SRC_URI="http://www.snorp.net/files/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="beagle ipod" RDEPEND=">=dev-lang/mono-1.1 >=dev-dotnet/gtk-sharp-2 >=dev-dotnet/gnome-sharp-2 >=dev-dotnet/glade-sharp-2 || ( >=net-dns/avahi-0.6.11 >=net-misc/mDNSResponder-107.5 ) beagle? ( >=app-misc/beagle-0.1.4 ) ipod? ( >=dev-dotnet/ipod-sharp-0.5.16 )" DEPEND="${RDEPEND} dev-util/pkgconfig" pkg_setup() { if ! built_with_use 'net-dns/avahi' mono ; then eerror "Please build avahi with the mono USE-flag" die "avahi without mono support detected" fi G2CONF="${G2CONF} $(use_enable beagle) $(use_enable ipod)" if ! has_version '>=net-dns/avahi-0.6.11' ; then G2CONF="${G2CONF} --enable-mdnsd" fi } src_compile() { econf || die "econf failed" emake -j1 || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" }