summaryrefslogtreecommitdiff
blob: 82e0d0b4b4a6648fde412dce9bcf07412f69c0d4 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/grilo-plugins/grilo-plugins-0.1.16.ebuild,v 1.1 2011/08/14 10:52:41 nirbheek Exp $

EAPI="4"
GNOME2_LA_PUNT="yes"

inherit autotools eutils gnome2

DESCRIPTION="A framework for easy media discovery and browsing"
HOMEPAGE="https://live.gnome.org/Grilo"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+youtube +vimeo upnp"

RDEPEND="
	>=dev-libs/glib-2.26:2
	=media-libs/grilo-${PV}[network]

	dev-libs/gmime:2.4
	dev-libs/libxml2:2
	dev-db/sqlite:3

	youtube? ( >=dev-libs/libgdata-0.4.0
		>=media-libs/quvi-0.2.15 )
	upnp? ( >=net-libs/gupnp-0.13
		>=net-libs/gupnp-av-0.5 )
	vimeo? ( net-libs/libsoup:2.4
		dev-libs/libgcrypt )"
DEPEND="${RDEPEND}
	>=dev-util/pkgconfig-0.9"

# `make check` doesn't do anything, and ${S}/test/test fails without all plugins
RESTRICT="test"

pkg_setup() {
	DOCS="AUTHORS NEWS README"
	# --enable-debug only changes CFLAGS, useless for us
	G2CONF="${G2CONF}
		--disable-maintainer-mode
		--disable-static
		--disable-debug
		--disable-uninstalled"

	# Plugins
	# TODO: Enable tracker support
	G2CONF="${G2CONF}
		--enable-filesystem
		--enable-jamendo
		--enable-lastfm-albumart
		--enable-flickr
		--enable-podcasts
		--enable-bookmarks
		--disable-shoutcast
		--enable-apple-trailers
		--enable-metadata-store
		--enable-gravatar
		--disable-tracker
		--enable-localmetadata
		$(use_enable upnp)
		$(use_enable youtube)
		$(use_enable vimeo)"
}

src_prepare() {
	# important patches from upstream git master
	epatch "${FILESDIR}/${P}-youtube-c90.patch"
	epatch "${FILESDIR}/${P}-youtube-variable-shadowing.patch"
	epatch "${FILESDIR}/${P}-youtube-missing-case.patch"
	epatch "${FILESDIR}/${P}-youtube-libgdata-0.9.patch"
	epatch "${FILESDIR}/${P}-local-metadata-leak.patch"

	sed -i -e 's/^\(SUBDIRS .*\)test/\1/g' Makefile.*

	eautoreconf

	gnome2_src_prepare
}