media-libs/grilo: Support totem-pl-parser-3.26.4
authorPacho Ramos <pacho@gentoo.org>
Mon, 16 Dec 2019 22:59:13 +0000 (23:59 +0100)
committerPacho Ramos <pacho@gentoo.org>
Mon, 16 Dec 2019 22:59:13 +0000 (23:59 +0100)
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
media-libs/grilo/files/grilo-0.3.9-totem-pl-parser.patch [new file with mode: 0644]
media-libs/grilo/grilo-0.3.9.ebuild

diff --git a/media-libs/grilo/files/grilo-0.3.9-totem-pl-parser.patch b/media-libs/grilo/files/grilo-0.3.9-totem-pl-parser.patch
new file mode 100644 (file)
index 0000000..66d844f
--- /dev/null
@@ -0,0 +1,36 @@
+From 60d135ef64f16671bb0ab4079ecbc59bdc32cbc7 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess@hadess.net>
+Date: Tue, 12 Nov 2019 19:44:04 +0100
+Subject: [PATCH] pls: Support totem-pl-parser 3.26.4
+
+---
+ libs/pls/grl-pls.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/libs/pls/grl-pls.c b/libs/pls/grl-pls.c
+index 62c578b..f6121cc 100644
+--- a/libs/pls/grl-pls.c
++++ b/libs/pls/grl-pls.c
+@@ -47,6 +47,10 @@
+ #include <totem-pl-parser.h>
+ #include <totem-pl-parser-mini.h>
++#ifndef TOTEM_PL_IS_PARSER(x)
++#define TOTEM_PL_IS_PARSER(x) TOTEM_IS_PL_PARSER(x)
++#endif /* TOTEM_PL_IS_PARSER */
++
+ /* --------- Constants -------- */
+ #define GRL_DATA_PRIV_PLS_IS_PLAYLIST   "priv:pls:is_playlist"
+@@ -465,7 +469,7 @@ grl_pls_playlist_entry_parsed_cb (TotemPlParser *parser,
+   GRL_DEBUG ("%s (parser=%p, uri=\"%s\", metadata=%p, user_data=%p)",
+       __FUNCTION__, parser, uri, metadata, user_data);
+-  g_return_if_fail (TOTEM_IS_PL_PARSER (parser));
++  g_return_if_fail (TOTEM_PL_IS_PARSER (parser));
+   g_return_if_fail (uri);
+   g_return_if_fail (metadata);
+   g_return_if_fail (user_data);
+-- 
+2.22.2
+
index 8cdfd059b1124b39204029f6ab8102485cea5aa5..654e35f9ba6a6d0d4f17ddb9b6e4ac9b5ff00ee5 100644 (file)
@@ -43,6 +43,12 @@ BDEPEND="
        vala? ( $(vala_depend) )
 "
 
+PATCHES=(
+       # Will be fixed in 0.3.11
+       # https://gitlab.gnome.org/GNOME/grilo/commit/60d135ef64f16671bb0ab4079ecbc59bdc32cbc7
+       "${FILESDIR}"/${PN}-0.3.9-totem-pl-parser.patch
+)
+
 src_prepare() {
        sed -i -e "s:'GETTEXT_PACKAGE', meson.project_name():'GETTEXT_PACKAGE', 'grilo-${SLOT%/*}':" meson.build || die
        sed -i -e "s:meson.project_name():'grilo-${SLOT%/*}':" po/meson.build || die