net-misc/gupnp-tools: add upstream commit as a patch.
authorChristophe Lermytte <gentoo@lermytte.be>
Wed, 16 Nov 2016 17:01:00 +0000 (18:01 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 22 Nov 2016 17:20:26 +0000 (18:20 +0100)
Gentoo-Bug: https://bugs.gentoo.org/598284

Closes: https://github.com/gentoo/gentoo/pull/2847

net-misc/gupnp-tools/files/gupnp-tools-fix-compiling-when-using-recent-gupnp-av.patch [new file with mode: 0644]
net-misc/gupnp-tools/gupnp-tools-0.8.11.ebuild
net-misc/gupnp-tools/gupnp-tools-0.8.12.ebuild

diff --git a/net-misc/gupnp-tools/files/gupnp-tools-fix-compiling-when-using-recent-gupnp-av.patch b/net-misc/gupnp-tools/files/gupnp-tools-fix-compiling-when-using-recent-gupnp-av.patch
new file mode 100644 (file)
index 0000000..0d95958
--- /dev/null
@@ -0,0 +1,11 @@
+diff --git a/src/av-cp/playlist-treeview.h b/src/av-cp/playlist-treeview.h
+index 8637ae8..16b131e 100644
+--- a/src/av-cp/playlist-treeview.h
++++ b/src/av-cp/playlist-treeview.h
+@@ -23,6 +23,8 @@
+ #include <config.h>
+ #include <gtk/gtk.h>
++
++#include <libgupnp/gupnp.h>
+ #include <libgupnp-av/gupnp-av.h>
index 47ada59264e63736a0fada85c1ae1ed51bc0da63..ad806d818a24e86362069b5643e16032f653a3f4 100644 (file)
@@ -5,7 +5,7 @@
 EAPI="5"
 GCONF_DEBUG="no"
 
-inherit gnome2
+inherit gnome2 eutils
 
 DESCRIPTION="Free replacements of Intel UPnP tools that use GUPnP"
 HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP"
@@ -30,3 +30,11 @@ DEPEND="${RDEPEND}
        sys-devel/gettext
        virtual/pkgconfig
 "
+
+src_prepare() {
+       # Fixes 598284 with upstream patch
+       # https://git.gnome.org/browse/gupnp-tools/commit/?id=e9ec9634207e4c2eea6d268ee29b57e687c1f178
+       epatch "${FILESDIR}"/${PN}-fix-compiling-when-using-recent-gupnp-av.patch
+       gnome2_src_prepare
+}
+
index 6752b6fb0f15def660192115171840bdef9c8dbe..a078a07c69827d46c896421c49407eb4d4ae6394 100644 (file)
@@ -27,3 +27,7 @@ DEPEND="${RDEPEND}
        >=sys-devel/gettext-0.19.7
        virtual/pkgconfig
 "
+
+# Fixes 598284 with upstream patch
+# https://git.gnome.org/browse/gupnp-tools/commit/?id=e9ec9634207e4c2eea6d268ee29b57e687c1f178
+PATCHES=( "${FILESDIR}/${PN}-fix-compiling-when-using-recent-gupnp-av.patch" )