Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/grilo/
Date: Thu, 15 Apr 2021 23:06:47
Message-Id: 1618526705.9c4dbef855c8d81e248a84d47adbda2aae9b41ae.mattst88@gentoo
1 commit: 9c4dbef855c8d81e248a84d47adbda2aae9b41ae
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 15 01:22:07 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 15 22:45:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c4dbef8
7
8 media-libs/grilo: Version bump to 0.3.13
9
10 * Drop broken IUSE=network (bug #763330)
11
12 Closes: https://bugs.gentoo.org/763330
13 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
14
15 media-libs/grilo/Manifest | 1 +
16 media-libs/grilo/grilo-0.3.13.ebuild | 77 ++++++++++++++++++++++++++++++++++++
17 2 files changed, 78 insertions(+)
18
19 diff --git a/media-libs/grilo/Manifest b/media-libs/grilo/Manifest
20 index 2709ca57024..4162ef350a2 100644
21 --- a/media-libs/grilo/Manifest
22 +++ b/media-libs/grilo/Manifest
23 @@ -1 +1,2 @@
24 DIST grilo-0.3.12.tar.xz 234340 BLAKE2B dd9f2558dee73080d87a98209816ca79a13fee4934a9e456190616e11565095e3c08e64f3ccec30e3bb7a102a9e23c25ba32a95f963676516a354a785bd6bdd6 SHA512 c0badc4b3f96efa04e6f3b5f32b2322855d9a660f748ce68012d266a6f5936f850bd63e559c782ae02ee24ba282c3b3882c6b8fae99019b913d74ff927a31017
25 +DIST grilo-0.3.13.tar.xz 236420 BLAKE2B 8f891507edce92bccbc12aa9ecce78e8bd0804e548deec9a3651a656a27e9e87156e8cd7e1959a662c23e16fe958ff09f95755f825116f785784271883579dfc SHA512 b229b9b7524c1be63ed8891a9438844ebb87013074b394330f25316feb015040b304cd98bf3c89dc3248e6898c587a5e51666776a5b4ba5026a80ee8ad3e6d01
26
27 diff --git a/media-libs/grilo/grilo-0.3.13.ebuild b/media-libs/grilo/grilo-0.3.13.ebuild
28 new file mode 100644
29 index 00000000000..954cedfd893
30 --- /dev/null
31 +++ b/media-libs/grilo/grilo-0.3.13.ebuild
32 @@ -0,0 +1,77 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +VALA_USE_DEPEND="vapigen"
39 +
40 +inherit gnome.org meson python-any-r1 vala xdg
41 +
42 +DESCRIPTION="A framework for easy media discovery and browsing"
43 +HOMEPAGE="https://wiki.gnome.org/Projects/Grilo"
44 +
45 +LICENSE="LGPL-2.1+"
46 +SLOT="0.3/0" # subslot is libgrilo-0.3 soname suffix
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
48 +
49 +IUSE="gtk gtk-doc +introspection +playlist test vala"
50 +REQUIRED_USE="vala? ( introspection )"
51 +RESTRICT="!test? ( test )"
52 +
53 +# oauth could be optional if meson is patched - used for flickr oauth in grilo-test-ui tool
54 +RDEPEND="
55 + >=dev-libs/glib-2.58:2
56 + dev-libs/libxml2:2
57 + >=net-libs/libsoup-2.41.3:2.4[introspection?]
58 + playlist? ( >=dev-libs/totem-pl-parser-3.4.1 )
59 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
60 +
61 + gtk? (
62 + net-libs/liboauth
63 + >=x11-libs/gtk+-3.14:3
64 + )
65 +"
66 +DEPEND="${RDEPEND}"
67 +BDEPEND="
68 + dev-util/glib-utils
69 + >=sys-devel/gettext-0.19.8
70 + virtual/pkgconfig
71 + gtk-doc? (
72 + >=dev-util/gtk-doc-1.10
73 + app-text/docbook-xml-dtd:4.3
74 + )
75 + ${PYTHON_DEPS}
76 + test? ( sys-apps/dbus )
77 + vala? ( $(vala_depend) )
78 +"
79 +
80 +src_prepare() {
81 + sed -i -e "s:'GETTEXT_PACKAGE', meson.project_name():'GETTEXT_PACKAGE', 'grilo-${SLOT%/*}':" meson.build || die
82 + sed -i -e "s:meson.project_name():'grilo-${SLOT%/*}':" po/meson.build || die
83 + sed -i -e "s:'grilo':'grilo-${SLOT%/*}':" doc/grilo/meson.build || die
84 +
85 + # Drop explicit unversioned vapigen check
86 + sed -i -e "/find_program.*vapigen/d" meson.build || die
87 +
88 + # Don't build examples; they get embedded in gtk-doc, thus we don't install the sources with USE=examples either
89 + sed -i -e "/subdir('examples')/d" meson.build || die
90 +
91 + xdg_src_prepare
92 + use vala && vala_src_prepare
93 +}
94 +
95 +src_configure() {
96 + local emesonargs=(
97 + -Denable-grl-net=true # Fails to build
98 + $(meson_use playlist enable-grl-pls)
99 + $(meson_use gtk-doc enable-gtk-doc)
100 + $(meson_use introspection enable-introspection)
101 + $(meson_use gtk enable-test-ui)
102 + $(meson_use vala enable-vala)
103 + )
104 + meson_src_configure
105 +}
106 +
107 +src_test() {
108 + dbus-run-session meson test -C "${BUILD_DIR}" || die
109 +}