# C"opyr"ight 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="iPod Device support through HAL" HOMEPAGE="http://banshee-project.org/index.php/Main_Page" SRC_URI="http://banshee-project.org/files/$PN/$P.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="pmount submount" RDEPEND=">=dev-libs/glib-2.0 >=sys-apps/dbus-0.30 >=sys-apps/hal-0.5.2 pmount? ( sys-apps/pmount ) !pmount? ( submount? ( sys-fs/submount ) ) sys-apps/eject" pkg_setup() { if ! built_with_use sys-apps/dbus gtk; then die "need sys-libs/dbus built with gtk USE flag" fi } src_compile() { local myconf if use pmount; then myconf="--disable-submount --with-unmount-command=/usr/bin/pumount" elif use submount; then myconf="--enable-submount --with-unmount-command=/usr/bin/umount" else myconf="--disable-submount --with-unmount-command=/usr/bin/umount" fi econf ${myconf} --with-eject-command=/usr/bin/eject || die "econf failed" MAKEOPTS="-j1" emake || die "emake failed" } src_install() { make install DESTDIR="${D}" || die "install failed" dodoc AUTHORS ChangeLog NEWS README }