# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libipoddevice/libipoddevice-0.4.0.ebuild,v 1.3 2005/12/07 12:16:39 herbs Exp $ inherit multilib eutils DESCRIPTION="libipoddevice is a device-specific layer for the Apple iPod" HOMEPAGE="http://banshee-project.org/Libipoddevice" SRC_URI="http://banshee-project.org/files/libipoddevice/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=sys-apps/dbus-0.30 >=sys-apps/hal-0.5.2 sys-apps/pmount virtual/eject" DEPEND="${RDEPEND} >=dev-libs/glib-2.0 >=gnome-base/libgtop-2.12" src_unpack() { unpack ${A} # use correct libdir in pkgconfig file if [ $(get_libdir) != "lib" ] ; then sed -i -e 's:^libdir=.*:libdir=@libdir@:' \ ${S}/ipoddevice.pc.in || die "sed failed" fi } 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 || die "configure failed" emake || die "make failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc ChangeLog NEWS README }