# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils rpm DESCRIPTION="iPod Device support through HAL" HOMEPAGE="http://sonance.aaronbock.net/libipoddevice" SRC_URI="http://repo.nrpms.net/libipoddevice/0.2.4/SRPMS/libipoddevice-0.2.4-2.1.fc4.nr.src.rpm" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="submount" RDEPEND=">=dev-libs/glib-2.0 >=sys-apps/dbus-0.30 >=sys-apps/hal-0.5.2 submount? ( sys-fs/submount )" pkg_setup() { if ! built_with_use sys-apps/dbus gtk; then die "need sys-libs/dbus built with gtk USE flag" fi } src_compile() { econf $(use_enable submount) || die "econf failed" MAKEOPTS="-j1" emake || die "emake failed" } src_install() { make install DESTDIR=${D} || die "install failed" }