blob: b1aa867de4f8699b88cd9add8887ae0f9bb4ece8 (
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUA_COMPAT=( lua5-3 )
inherit gnome.org lua-single meson xdg
DESCRIPTION="A collection of plugins for the Grilo framework"
HOMEPAGE="https://wiki.gnome.org/Projects/Grilo"
LICENSE="LGPL-2.1+"
SLOT="0.3"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="daap chromaprint flickr freebox gnome-online-accounts lua test thetvdb tracker upnp-av +youtube"
RESTRICT="!test? ( test )"
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
# GOA is only optionally used by flickr and lua-factory plugins (checked at v0.3.13)
# json-glib used by tmdb and lua; tmdb currently non-optional
# TODO: validate upnp-av dleyna deps
RDEPEND="
>=dev-libs/glib-2.44:2
>=media-libs/grilo-0.3.13:${SLOT}=[playlist]
freebox? ( net-dns/avahi[dbus] )
>=dev-libs/gom-0.4
chromaprint? (
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
media-plugins/gst-plugins-chromaprint:1.0
)
dev-libs/json-glib
daap? ( >=net-libs/libdmapsharing-2.9.12:3.0 )
media-libs/libmediaart:2.0
net-libs/libsoup:2.4
dev-libs/libxml2:2
flickr? (
net-libs/liboauth
gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.17.91:= )
)
dev-db/sqlite:3
>=dev-libs/totem-pl-parser-3.4.1
tracker? ( app-misc/tracker:3= )
upnp-av? (
net-libs/dleyna-connector-dbus
net-misc/dleyna-server
)
lua? (
${LUA_DEPS}
app-arch/libarchive
dev-libs/libxml2:2
gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.17.91:= )
)
thetvdb? ( app-arch/libarchive )
youtube? ( >=dev-libs/libgdata-0.9.1:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/docbook-xml-dtd:4.5
dev-util/itstool
>=sys-devel/gettext-0.19.8
upnp-av? ( >=dev-util/gdbus-codegen-2.44 )
virtual/pkgconfig
lua? ( dev-util/gperf )
"
PATCHES=(
"${FILESDIR}"/0.3.13-meson-goa.patch
"${FILESDIR}"/0.3.13-meson-tracker3-test.patch
)
pkg_setup() {
use lua && lua-single_pkg_setup
}
src_prepare() {
xdg_src_prepare
sed -i -e "s:'GETTEXT_PACKAGE', meson.project_name():'GETTEXT_PACKAGE', 'grilo-plugins-${SLOT%/*}':" meson.build || die
sed -i -e "s:meson.project_name():'grilo-plugins-${SLOT%/*}':" po/meson.build || die
sed -i -e "s:meson.project_name():'grilo-plugins-${SLOT%/*}':" help/meson.build || die
# libdmapsharing-4 is not packaged
sed -i -e "s:libdmapsharing4_dep.found():false:" meson.build || die
}
src_configure() {
local emesonargs=(
-Denable-bookmarks=yes
-Denable-chromaprint=$(usex chromaprint yes no)
-Denable-dleyna=$(usex upnp-av yes no)
-Denable-dmap=$(usex daap yes no)
-Denable-filesystem=yes
-Denable-flickr=$(usex flickr yes no)
-Denable-freebox=$(usex freebox yes no)
-Denable-gravatar=yes
-Denable-local-metadata=yes
-Denable-lua-factory=$(usex lua yes no)
-Denable-magnatune=yes
-Denable-metadata-store=yes
-Denable-opensubtitles=yes
-Denable-optical-media=yes
-Denable-podcasts=yes
-Denable-raitv=yes
-Denable-shoutcast=yes
-Denable-thetvdb=$(usex thetvdb yes no)
-Denable-tmdb=yes
-Denable-tracker=no
-Denable-tracker3=$(usex tracker yes no)
-Denable-youtube=$(usex youtube yes no)
$(meson_feature gnome-online-accounts goa)
-Dhelp=no
)
meson_src_configure
}
|