1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/gnome-mplayer/gnome-mplayer-1.0.0.ebuild,v 1.7 2011/03/22 19:49:06 ssuominen Exp $
7 inherit eutils flag-o-matic gnome2
9 DESCRIPTION="A GTK+ interface to MPlayer"
10 HOMEPAGE="http://code.google.com/p/gnome-mplayer/"
11 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
15 KEYWORDS="alpha amd64 ppc ppc64 x86 ~x86-fbsd"
16 IUSE="alsa gnome ipod libnotify musicbrainz pulseaudio"
18 RDEPEND=">=dev-libs/glib-2.14:2
19 >=x11-libs/gtk+-2.18:2
20 >=dev-libs/dbus-glib-0.70
21 >=media-video/mplayer2-2.0[ass]
22 alsa? ( media-libs/alsa-lib )
23 gnome? ( gnome-base/gconf:2
26 ipod? ( >=media-libs/libgpod-0.7 )
27 libnotify? ( x11-libs/libnotify )
28 musicbrainz? ( net-misc/curl
29 >=media-libs/musicbrainz-3 )
30 pulseaudio? ( >=media-sound/pulseaudio-0.9.14 )"
36 has_version ">=x11-libs/libnotify-0.7" && append-cppflags -DNOTIFY0_7_ENABLED
38 G2CONF="--disable-dependency-tracking
39 $(use_enable gnome schemas-install)
40 $(use_enable gnome nautilus)
44 $(use_with gnome gconf)
47 $(use_with ipod libgpod)
48 $(use_with musicbrainz libmusicbrainz3)
49 $(use_with pulseaudio flat-volume)
50 --without-gpm-new-method
51 --without-gpm-old-method"
53 DOCS="ChangeLog README DOCS/keyboard_shortcuts.txt"
62 rm -rf "${D}"/usr/share/doc/${PN}
63 rmdir -p "${D}"/var/lib