[arch-commits] Commit in rhythmbox/trunk (PKGBUILD rhythmbox-grilo-0.3.0.patch)

Jan de Groot jgc at archlinux.org
Tue Mar 22 20:49:30 UTC 2016


    Date: Tuesday, March 22, 2016 @ 21:49:29
  Author: jgc
Revision: 262428

upgpkg: rhythmbox 3.3-2

Added:
  rhythmbox/trunk/rhythmbox-grilo-0.3.0.patch
Modified:
  rhythmbox/trunk/PKGBUILD

-----------------------------+
 PKGBUILD                    |   12 +++--
 rhythmbox-grilo-0.3.0.patch |   98 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-22 20:37:21 UTC (rev 262427)
+++ PKGBUILD	2016-03-22 20:49:29 UTC (rev 262428)
@@ -4,13 +4,13 @@
 
 pkgname=rhythmbox
 pkgver=3.3
-pkgrel=1
+pkgrel=2
 pkgdesc="An iTunes-like music playback and management application"
 arch=(i686 x86_64)
 license=(GPL)
 url="http://www.rhythmbox.org"
 depends=(dconf desktop-file-utils gst-plugins-base gst-plugins-good libsoup json-glib libnotify libpeas media-player-info totem-plparser tdb webkitgtk3 python-gobject libgudev)
-makedepends=(itstool intltool brasero gobject-introspection vala grilo libdmapsharing lirc libgpod libmtp)
+makedepends=(itstool intltool brasero gobject-introspection vala grilo libdmapsharing lirc libgpod libmtp gtk-doc)
 optdepends=('gst-plugins-ugly: Extra media codecs'
             'gst-plugins-bad: Extra media codecs'
             'gst-libav: Extra media codecs'
@@ -24,15 +24,19 @@
             'python-mako: Context pane plugin')
 options=('!emptydirs')
 install=rhythmbox.install
-source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
-sha256sums=('5299ac4d3dbc4e281aa422e957b3a7741207512ae051fdfc8159e1322b486859')
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz
+        rhythmbox-grilo-0.3.0.patch)
+sha256sums=('5299ac4d3dbc4e281aa422e957b3a7741207512ae051fdfc8159e1322b486859'
+            'c84098f0706ad330204cc1c30b670c17b28cf3e501b987dd092a0df2bea27c40')
 
 prepare() {
   cd $pkgname-$pkgver
+  patch -Np1 -i ../rhythmbox-grilo-0.3.0.patch
 }
 
 build() {
   cd "$pkgname-$pkgver"
+  NOCONFIGURE=1 ./autogen.sh
   ./configure --prefix=/usr --sysconfdir=/etc \
       --libexecdir=/usr/lib/rhythmbox \
       --localstatedir=/var --disable-static \

Added: rhythmbox-grilo-0.3.0.patch
===================================================================
--- rhythmbox-grilo-0.3.0.patch	                        (rev 0)
+++ rhythmbox-grilo-0.3.0.patch	2016-03-22 20:49:29 UTC (rev 262428)
@@ -0,0 +1,98 @@
+From af7aab21f2ed0d837ddf583126f7dbfd88a69627 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Thu, 17 Dec 2015 13:42:12 +0100
+Subject: [PATCH] grilo: Port to 0.3.0
+
+https://bugzilla.gnome.org/show_bug.cgi?id=759589
+---
+ configure.ac                    |  4 ++--
+ plugins/grilo/rb-grilo-plugin.c |  2 +-
+ plugins/grilo/rb-grilo-source.c | 10 +++++-----
+ 3 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 4457182..1929905 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -54,7 +54,7 @@ LIBSOUP_REQS=2.34.0
+ GUDEV_REQS=143
+ LIBMTP_REQS=0.3.0
+ LIBPEAS_REQS=0.7.3
+-GRILO_REQS=0.2.0
++GRILO_REQS=0.3.0
+ LIBXML2_REQS=2.7.8
+ LIBSECRET_REQS=0.18
+ 
+@@ -714,7 +714,7 @@ AC_ARG_ENABLE(grilo,
+ 			     [Disable Grilo support]),,
+ 	      enable_grilo=auto)
+ if test "x$enable_grilo" != "xno"; then
+-	PKG_CHECK_MODULES(GRILO, grilo-0.2 >= $GRILO_REQS, have_grilo=yes, have_grilo=no)
++	PKG_CHECK_MODULES(GRILO, grilo-0.3 >= $GRILO_REQS, have_grilo=yes, have_grilo=no)
+ 	if test "x$have_grilo" = "xno" -a "x$enable_grilo" = "xyes"; then
+ 		AC_MSG_ERROR([Grilo support explicitly requested, but grilo couldn not be found])
+ 	fi
+diff --git a/plugins/grilo/rb-grilo-plugin.c b/plugins/grilo/rb-grilo-plugin.c
+index 2816be2..5c56b93 100644
+--- a/plugins/grilo/rb-grilo-plugin.c
++++ b/plugins/grilo/rb-grilo-plugin.c
+@@ -213,7 +213,7 @@ impl_activate (PeasActivatable *plugin)
+ 	pi->registry = grl_registry_get_default ();
+ 	g_signal_connect (pi->registry, "source-added", G_CALLBACK (grilo_source_added_cb), pi);
+ 	g_signal_connect (pi->registry, "source-removed", G_CALLBACK (grilo_source_removed_cb), pi);
+-	if (grl_registry_load_all_plugins (pi->registry, &error) == FALSE) {
++	if (grl_registry_load_all_plugins (pi->registry, TRUE, &error) == FALSE) {
+ 		g_warning ("Failed to load Grilo plugins: %s", error->message);
+ 		g_clear_error (&error);
+ 	}
+diff --git a/plugins/grilo/rb-grilo-source.c b/plugins/grilo/rb-grilo-source.c
+index 103e06b..22a9d11 100644
+--- a/plugins/grilo/rb-grilo-source.c
++++ b/plugins/grilo/rb-grilo-source.c
+@@ -524,7 +524,7 @@ make_operation_options (RBGriloSource *source, GrlSupportedOps op, int position)
+ 	grl_operation_options_set_count (options,
+ 					 CONTAINER_FETCH_SIZE);
+ 	grl_operation_options_set_type_filter (options, GRL_TYPE_FILTER_AUDIO);
+-	grl_operation_options_set_flags (options, GRL_RESOLVE_NORMAL);
++	grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_NORMAL);
+ 
+ 	return options;
+ }
+@@ -684,7 +684,7 @@ grilo_browse_cb (GrlSource *grilo_source, guint operation_id, GrlMedia *media, g
+ 		source->priv->browse_position++;
+ 	}
+ 
+-	if (media && GRL_IS_MEDIA_BOX (media)) {
++	if (media && grl_media_is_container (media)) {
+ 
+ 		GtkTreeIter new_row;
+ 		if (source->priv->browse_container == NULL) {
+@@ -724,7 +724,7 @@ grilo_browse_cb (GrlSource *grilo_source, guint operation_id, GrlMedia *media, g
+ 						   2, CONTAINER_MARKER,
+ 						   3, 0,
+ 						   -1);
+-	} else if (media && GRL_IS_MEDIA_AUDIO (media)) {
++	} else if (media && grl_media_is_audio (media)) {
+ 		source->priv->browse_got_media = TRUE;
+ 	}
+ 
+@@ -854,7 +854,7 @@ grilo_media_browse_cb (GrlSource *grilo_source, guint operation_id, GrlMedia *me
+ 		source->priv->media_browse_got_results = TRUE;
+ 		source->priv->media_browse_position++;
+ 
+-		if (GRL_IS_MEDIA_AUDIO (media)) {
++		if (grl_media_is_audio (media)) {
+ 			RhythmDBEntry *entry;
+ 			entry = create_entry_for_media (source->priv->db,
+ 							source->priv->entry_type,
+@@ -863,7 +863,7 @@ grilo_media_browse_cb (GrlSource *grilo_source, guint operation_id, GrlMedia *me
+ 			if (entry != NULL) {
+ 				rhythmdb_query_model_add_entry (source->priv->query_model, entry, -1);
+ 			}
+-		} else if (GRL_IS_MEDIA_BOX (media)) {
++		} else if (grl_media_is_container (media)) {
+ 			source->priv->media_browse_got_containers = TRUE;
+ 		}
+ 	}
+-- 
+2.5.0
\ No newline at end of file



More information about the arch-commits mailing list