# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/banshee/banshee-0.10.2.ebuild,v 1.1 2005/12/23 22:19:03 metalgod Exp $ inherit eutils gnome2 mono DESCRIPTION="Banshee allows you to import CDs, sync your music collection, play music directly from an iPod, create playlists with songs from your library, and create audio and MP3 CDs from subsets of your library." HOMEPAGE="http://banshee-project.org" SRC_URI="http://banshee-project.org/files/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~x86" IUSE="aac doc ipod flac mad njb real vorbis" RDEPEND=">=dev-lang/mono-1.1.10 >=dev-dotnet/gtk-sharp-2.3.90 >=dev-dotnet/gnomevfs-sharp-1.9 >=dev-dotnet/gconf-sharp-2.3.90 =media-libs/gstreamer-0.8.11 =media-libs/gst-plugins-0.8.11 =media-plugins/gst-plugins-gnomevfs-0.8.11 mad? ( =media-plugins/gst-plugins-mad-0.8.11 ) vorbis? ( =media-plugins/gst-plugins-ogg-0.8.11 =media-plugins/gst-plugins-vorbis-0.8.11 ) flac? ( =media-plugins/gst-plugins-flac-0.8.11 ) aac? ( =media-plugins/gst-plugins-faad-0.8.11 >=media-libs/faad2-2.0-r4 ) =media-plugins/gst-plugins-cdparanoia-0.8.11 >=media-libs/musicbrainz-2.1.1 real? ( media-video/realplayer ) njb? ( >=dev-dotnet/njb-sharp-0.2.2 ) >=dev-libs/glib-2.0 >=gnome-base/libgnomeui-2.0 >=gnome-base/libbonobo-2.0 >=gnome-base/gnome-desktop-2.0 >=dev-dotnet/ipod-sharp-0.5.12 >=sys-apps/hal-0.5.2 sys-apps/dbus >=dev-db/sqlite-3 >=gnome-extra/nautilus-cd-burner-2.12" USE_DESTDIR=1 DOCS="ChangeLog NEWS README" pkg_setup() { if ! built_with_use sys-apps/dbus mono ; then echo eerror "In order to compile banshee, you need to have sys-apps/dbus emerged" eerror "with 'mono' in your USE flags. Please add that flag, re-emerge" eerror "dbus, and then emerge banshee." die "sys-apps/dbus is missing the .NET binding." fi if use real; then G2CONF="${G2CONF} --enable-helix --with-helix-libs=/opt/RealPlayer/" fi G2CONF="${G2CONF} --disable-xing \ $( use_enable ipod) \ $( use_enable njb) \ $( use_enable doc docs)" } src_unpack() { unpack ${A} cd ${S} # Multilib issue: Use pkgconfig --variable=libdir over --variable=prefix sed -i -e 's:prefix mono`/lib:libdir mono`:' \ ${S}/configure{.ac,} || die "sed failed" } src_compile() { addpredict "/root/.gconf/" addpredict "/root/.gconfd" gnome2_src_configure emake -j1 || "make failed" } src_install() { gnome2_src_install if ! use ipod; then dodir /usr/$(get_libdir)/banshee/Banshee.Dap fi } pkg_postinst() { einfo "In case you have an ipod please rebuild this package with USE=ipod" einfo "If you have a audio player supported by libnjb please" einfo "rebuild this package with USE=njb" }