summaryrefslogtreecommitdiff
blob: 0c2141771f1cc1717088a56e5461d2b37389dbbe (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mate-extra/mate-media/mate-media-1.6.1.ebuild,v 1.3 2014/05/04 14:54:47 ago Exp $

EAPI="5"

GCONF_DEBUG="yes"

inherit gnome2 versionator

MATE_BRANCH="$(get_version_component_range 1-2)"

SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz"
DESCRIPTION="Multimedia related programs for the MATE desktop"
HOMEPAGE="http://mate-desktop.org"

LICENSE="LGPL-2 GPL-2 FDL-1.1"
SLOT="0"
KEYWORDS="amd64"

IUSE="aac flac mp3 pulseaudio speex twolame vorbis"

# FIXME: automagic dev-util/glade:3 support
COMMON_DEPEND="app-text/rarian:0
	dev-libs/libxml2:2
	>=dev-libs/glib-2.18.2:2
	>=x11-libs/gtk+-2.18:2
	>=mate-base/mate-panel-1.6:0
	>=mate-base/mate-desktop-1.6:0
	>=media-libs/gstreamer-0.10.23:0.10
	>=media-libs/gst-plugins-base-0.10.23:0.10
	>=media-libs/gst-plugins-good-0.10:0.10
	>=media-libs/libcanberra-0.13:0[gtk]
	>=media-plugins/gst-plugins-meta-0.10-r2:0.10
	>=media-plugins/gst-plugins-gconf-0.10.1:0.10
	>=dev-libs/libunique-1:1
	x11-libs/cairo:0
	x11-libs/pango:0
	virtual/libintl:0
	pulseaudio? ( >=media-sound/pulseaudio-0.9.16:0[glib] )"

# Specific gst plugins are used by the default audio encoding profiles
RDEPEND="${COMMON_DEPEND}
	>=media-plugins/gst-plugins-meta-0.10:0.10[flac?,vorbis?]
	aac? (
		>=media-plugins/gst-plugins-faac-0.10.23:0.10
		>=media-plugins/gst-plugins-ffmpeg-0.10:0.10
	)
	mp3? (
		>=media-libs/gst-plugins-ugly-0.10:0.10
		>=media-plugins/gst-plugins-taglib-0.10.23:0.10
		>=media-plugins/gst-plugins-lame-0.10:0.10
	)
	speex? (
		>=media-plugins/gst-plugins-ogg-0.10.23:0.10
		>=media-plugins/gst-plugins-speex-0.10.23:0.10
	)
	twolame? (
		>=media-plugins/gst-plugins-taglib-0.10.23:0.10
		>=media-plugins/gst-plugins-twolame-0.10:0.10
	)"

DEPEND="${COMMON_DEPEND}
	app-text/docbook-xml-dtd:4.1.2
	>=app-text/mate-doc-utils-1.6:0
	>=app-text/scrollkeeper-dtd-1:1.0
	>=dev-util/intltool-0.35.0:*
	sys-devel/gettext:*
	virtual/pkgconfig:*
	!!<mate-base/mate-applets-1.6:*"

src_configure() {
	gnome2_src_configure \
		$(use_enable pulseaudio) \
		$(use_enable !pulseaudio gstmix) \
		$(use_enable !pulseaudio gst-mixer-applet)
}

DOCS="AUTHORS ChangeLog* NEWS README"

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
}