Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/grilo/
Date: Sat, 16 Feb 2019 16:00:02
Message-Id: 1550332659.93d53632cb573d9ecb07b13bb6f24a4b3ebd3f61.leio@gentoo
1 commit: 93d53632cb573d9ecb07b13bb6f24a4b3ebd3f61
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 16 12:18:20 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 15:57:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93d53632
7
8 media-libs/grilo: bump to 0.3.7
9
10 USE=examples is dropped, because the C files are shown as
11 examples in gtk-doc anyways with USE=gtk-doc.
12 liboauth is now properly a dep only for the gtk test-ui by
13 upstream, so we can follow.
14 Python tests aren't used for now, so tests don't need
15 introspection and specific python stuff anymore; however
16 meson build does not require python for some code generation.
17 The SLOTting is ported to meson as well.
18
19 Package-Manager: Portage-2.3.52, Repoman-2.3.12
20 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
21
22 media-libs/grilo/Manifest | 1 +
23 media-libs/grilo/grilo-0.3.7.ebuild | 68 +++++++++++++++++++++++++++++++++++++
24 media-libs/grilo/metadata.xml | 4 +++
25 3 files changed, 73 insertions(+)
26
27 diff --git a/media-libs/grilo/Manifest b/media-libs/grilo/Manifest
28 index 72c3a6a0463..dee8c8764b1 100644
29 --- a/media-libs/grilo/Manifest
30 +++ b/media-libs/grilo/Manifest
31 @@ -1 +1,2 @@
32 DIST grilo-0.3.6.tar.xz 653864 BLAKE2B 58570975b2c4623b2a43b441c60d88146080327a86018bfd1a37967d35b6389e5102915296ceba1a8ebf23d27a3e4f8d23eeb59555a6c5cd0ca596b5ab674878 SHA512 175cf61a43aea8456a41f4dce7694fac50e854cf6340ed0671f233e6188fa34347c1e7308aac99bc49d081c36747776b9a8c1c5cc7c0be00a1df2c9d015d8849
33 +DIST grilo-0.3.7.tar.xz 232544 BLAKE2B 2d1f7942b09808bb5e09040b4a633a6bd354220ba1369d31ff6160c12ab15c1e2642617ae7f35c8320d7a5842736d8714c6e7dc7f3cb0651d841b6513633f5c9 SHA512 82c41d63edc23c056e189a73b0de87db342bba575d42efeda78ed4bf78fb8994111a2e9457e6f2453045b9b7b2d171b9e89d71c3a107cfa06af24644d9cb71df
34
35 diff --git a/media-libs/grilo/grilo-0.3.7.ebuild b/media-libs/grilo/grilo-0.3.7.ebuild
36 new file mode 100644
37 index 00000000000..c1bd0204de9
38 --- /dev/null
39 +++ b/media-libs/grilo/grilo-0.3.7.ebuild
40 @@ -0,0 +1,68 @@
41 +# Copyright 1999-2019 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=6
45 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
46 +VALA_USE_DEPEND="vapigen"
47 +
48 +inherit gnome.org meson python-any-r1 vala xdg
49 +
50 +DESCRIPTION="A framework for easy media discovery and browsing"
51 +HOMEPAGE="https://wiki.gnome.org/Projects/Grilo"
52 +
53 +LICENSE="LGPL-2.1+"
54 +SLOT="0.3/0" # subslot is libgrilo-0.3 soname suffix
55 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
56 +
57 +IUSE="gtk gtk-doc +introspection +network +playlist vala"
58 +REQUIRED_USE="vala? ( introspection )"
59 +
60 +# oauth could be optional if meson is patched - used for flickr oauth in grilo-test-ui tool
61 +RDEPEND="
62 + >=dev-libs/glib-2.44:2
63 + dev-libs/libxml2:2
64 + network? ( >=net-libs/libsoup-2.41.3:2.4[introspection?] )
65 + playlist? ( >=dev-libs/totem-pl-parser-3.4.1 )
66 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
67 +
68 + gtk? (
69 + net-libs/liboauth
70 + >=x11-libs/gtk+-3.14:3 )
71 +"
72 +DEPEND="${RDEPEND}
73 + dev-util/glib-utils
74 + >=sys-devel/gettext-0.19.8
75 + virtual/pkgconfig
76 + gtk-doc? (
77 + >=dev-util/gtk-doc-1.10
78 + app-text/docbook-xml-dtd:4.3 )
79 + ${PYTHON_DEPS}
80 + vala? ( $(vala_depend) )
81 +"
82 +
83 +src_prepare() {
84 + sed -i -e "s:'GETTEXT_PACKAGE', meson.project_name():'GETTEXT_PACKAGE', 'grilo-${SLOT%/*}':" meson.build || die
85 + sed -i -e "s:meson.project_name():'grilo-${SLOT%/*}':" po/meson.build || die
86 + sed -i -e "s:'grilo':'grilo-${SLOT%/*}':" doc/grilo/meson.build || die
87 +
88 + # Drop explicit unversioned vapigen check
89 + sed -i -e "/vapigen.*=.*find_program/d" meson.build || die
90 +
91 + # Don't build examples; they get embedded in gtk-doc, thus we don't install the sources with USE=examples either
92 + sed -i -e "/subdir('examples')/d" meson.build || die
93 +
94 + xdg_src_prepare
95 + use vala && vala_src_prepare
96 +}
97 +
98 +src_configure() {
99 + local emesonargs=(
100 + $(meson_use network enable-grl-net)
101 + $(meson_use playlist enable-grl-pls)
102 + $(meson_use gtk-doc enable-gtk-doc)
103 + $(meson_use introspection enable-introspection)
104 + $(meson_use gtk enable-test-ui)
105 + $(meson_use vala enable-vala)
106 + )
107 + meson_src_configure
108 +}
109
110 diff --git a/media-libs/grilo/metadata.xml b/media-libs/grilo/metadata.xml
111 index 2a9c4eb55a9..bbc62e48bcf 100644
112 --- a/media-libs/grilo/metadata.xml
113 +++ b/media-libs/grilo/metadata.xml
114 @@ -11,4 +11,8 @@
115 <flag name="playlist">Enable support for playlists through
116 <pkg>dev-libs/totem-pl-parser</pkg></flag>
117 </use>
118 + <longdescription lang="en">Grilo is a framework that provides access to various sources of multimedia
119 +content, using a pluggable system. It is focused on making media discovery
120 +and browsing easy for application developers.
121 + </longdescription>
122 </pkgmetadata>