summaryrefslogtreecommitdiff
blob: 56813eef2e0f50d60a3c88e7a66136041cabda92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-media/gnome-media-2.26.0-r1.ebuild,v 1.11 2010/07/20 02:18:06 jer Exp $

EAPI="2"

inherit autotools eutils gnome2

DESCRIPTION="Multimedia related programs for the GNOME desktop"
HOMEPAGE="http://ronald.bitfreak.net/gnome-media.php"

LICENSE="LGPL-2 GPL-2 FDL-1.1"
SLOT="2"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="+sound esd ipv6 pulseaudio"

RDEPEND=">=dev-libs/glib-2.18.2:2
	>=x11-libs/gtk+-2.15.1:2
	>=gnome-base/libglade-2
	>=gnome-base/gconf-2.6.1
	>=gnome-base/libgnomeui-2.13.2
	esd? ( >=media-sound/esound-0.2.23 )
	>=media-libs/gstreamer-0.10.3
	>=media-libs/gst-plugins-base-0.10.3
	>=media-libs/gst-plugins-good-0.10
	>=gnome-base/orbit-2
	>=dev-libs/libunique-1
	pulseaudio? ( >=media-sound/pulseaudio-0.9.15[glib] )
	sound? (
		>=media-libs/libcanberra-0.4[gtk]
		x11-themes/sound-theme-freedesktop )
	dev-libs/libxml2
	>=media-plugins/gst-plugins-meta-0.10-r2:0.10
	>=media-plugins/gst-plugins-gconf-0.10.1"
DEPEND="${RDEPEND}
	>=dev-util/pkgconfig-0.9
	>=app-text/scrollkeeper-0.3.11
	>=app-text/gnome-doc-utils-0.3.2
	>=dev-util/intltool-0.35.0"

DOCS="AUTHORS ChangeLog NEWS README"

pkg_setup() {
	G2CONF="${G2CONF}
		--enable-gstprops
		--disable-cddbslave
		--disable-gnomecd
		--disable-esdtest
		--disable-static
		--disable-scrollkeeper
		--disable-schemas-install
		$(use_enable esd esound)
		$(use_enable esd vumeter)
		$(use_enable ipv6)
		$(use_enable pulseaudio)
		$(use_enable !pulseaudio gstmix)
		$(use_enable sound canberra)"
}

src_prepare() {
	gnome2_src_prepare

	# Make it libtool-1 compatible, bug 269548
	rm -v m4/lt* m4/libtool.m4 || die "removing libtool macros failed"

	if use gnomecd; then
		epatch "${FILESDIR}/${P}-missing-cddbslave-cflags.patch"
	fi

	# Half-fix bug 274819 -- applet does not work when PA restarts (not needed with 2.28)
	epatch "${FILESDIR}/${P}-connection-failed-pulseaudio.patch"

	# Fix automagic canberra support
	epatch "${FILESDIR}/${P}-automagic-canberra.patch"
	eautoreconf
}

src_compile() {
	addpredict "$(unset HOME; echo ~)/.gconf"
	addpredict "$(unset HOME; echo ~)/.gconfd"
	gnome2_src_compile
}

pkg_postinst() {
	gnome2_pkg_postinst
	ewarn
	ewarn "If you cannot play some music format, please check your"
	ewarn "USE flags on media-plugins/gst-plugins-meta"
	ewarn
	if use pulseaudio; then
		ewarn "You have enabled pulseaudio support, gstmixer will not be built"
		ewarn "If you do not use pulseaudio, you do not want this"
	fi
}