| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/gmtk/gmtk-1.0.6.ebuild,v 1.4 2012/06/08 11:32:01 phajdan.jr Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
DESCRIPTION="GTK+ widget and function libraries for gnome-mplayer" |
| 8 |
HOMEPAGE="http://code.google.com/p/gmtk/" |
| 9 |
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" |
| 10 |
|
| 11 |
LICENSE="GPL-2" |
| 12 |
SLOT="0" |
| 13 |
KEYWORDS="~alpha amd64 ~ppc ~ppc64 x86" |
| 14 |
IUSE="alsa +dconf pulseaudio" |
| 15 |
|
| 16 |
COMMON_DEPEND=">=dev-libs/glib-2.26 |
| 17 |
x11-libs/gtk+:3 |
| 18 |
x11-libs/libX11 |
| 19 |
alsa? ( media-libs/alsa-lib ) |
| 20 |
pulseaudio? ( media-sound/pulseaudio )" |
| 21 |
RDEPEND="${COMMON_DEPEND} |
| 22 |
dconf? ( gnome-base/dconf )" |
| 23 |
DEPEND="${COMMON_DEPEND} |
| 24 |
dev-util/intltool |
| 25 |
virtual/pkgconfig |
| 26 |
sys-devel/gettext" |
| 27 |
|
| 28 |
DOCS=( ChangeLog ) |
| 29 |
|
| 30 |
src_configure() { |
| 31 |
econf \ |
| 32 |
--disable-static \ |
| 33 |
--enable-gtk3 \ |
| 34 |
$(use_enable dconf gsettings) \ |
| 35 |
--disable-gconf \ |
| 36 |
$(use_enable !dconf keystore) \ |
| 37 |
--with-gio \ |
| 38 |
$(use_with alsa) \ |
| 39 |
$(use_with pulseaudio) |
| 40 |
} |
| 41 |
|
| 42 |
src_install() { |
| 43 |
default |
| 44 |
|
| 45 |
rm -rf \ |
| 46 |
"${ED}"usr/share/doc/${PN} \ |
| 47 |
"${ED}"usr/lib*/*.la |
| 48 |
} |