# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/listen/listen-0.2.1.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/pyogg dev-python/pymad dev-python/pysqlite ipod? ( dev-python/gnome-python-extras media-libs/libgpod )" DEPEND="${RDEPEND} >=x11-libs/gtk+-2.8 >=sys-apps/dbus-0.50" DOCS="TODO" S=${WORKDIR}/Listen2 pkg_setup() { if use ipod; then ewarn "In order to use your iPod with Listen, you need to have" ewarn "'python-gpod' which isn't in portage. If you want to create" ewarn "a ebuild, python-gpod is available here: http://www.gtkpod.org" fi if ! built_with_use sys-apps/dbus python ; then echo eerror "In order to install Listen, you need to have sys-apps/d$ eerror "with 'python' in your USE flags. Please add that flag, $ eerror "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" }