# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /media-sound/listen/listen-0.2.1-r1.ebuild 2006/02/07 $ inherit eutils MYPV=0.2-1 DESCRIPTION="A Music player and management for GNOME" HOMEPAGE="http://listengnome.free.fr" SRC_URI="${HOMEPAGE}/packages/src/${PN}_${MYPV}.tar.gz" LICENSE="GPL-2" IUSE="ipod" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND=">=dev-lang/python-2.3 >=dev-python/pygtk-2.0 >=media-libs/gstreamer-0.8 >=dev-python/gst-python-0.8.2 dev-python/pyvorbis dev-python/pymad dev-python/pysqlite dev-python/gnome-python-extras ipod? ( media-libs/libgpod )" DEPEND="${RDEPEND} >=x11-libs/gtk+-2.8 >=sys-apps/dbus-0.50" S=${WORKDIR}/Listen2 pkg_setup() { if use ipod; then ewarn "In order to use your iPod with Listen, you need to have" ewarn "the python bindings for libgpod. They are part of libgpod" ewarn "but aren't installed by the current ebuild" fi if ! built_with_use sys-apps/dbus python ; then echo eerror "In order to install Listen, you need to have sys-apps/dbus" eerror "with 'python' in your USE flags. Please add that flag," eerror "re-emerge dbus, and then emerge listen." die "sys-apps/dbus is missing the python binding." fi } src_unpack() { unpack ${A} cd ${S} } src_compile() { make || die "compile failure" } src_install() { make DESTDIR="${D}" PREFIX="/usr" install || die "install failure" }