net-libs/gupnp-ui: Mend underlinking issue. Fixes bug 522490.
authorChristian Strahl <c.a.strahl@gmail.com>
Thu, 12 Nov 2015 14:49:40 +0000 (15:49 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 17 Nov 2015 10:43:45 +0000 (10:43 +0000)
net-libs/gupnp-ui/files/gupnp-ui-0.1.1-underlinking.patch [new file with mode: 0644]
net-libs/gupnp-ui/gupnp-ui-0.1.1.ebuild

diff --git a/net-libs/gupnp-ui/files/gupnp-ui-0.1.1-underlinking.patch b/net-libs/gupnp-ui/files/gupnp-ui-0.1.1-underlinking.patch
new file mode 100644 (file)
index 0000000..207eecc
--- /dev/null
@@ -0,0 +1,25 @@
+--- configure.ac
++++ configure.ac
+@@ -11,7 +11,7 @@
+ AC_PROG_LIBTOOL
+ 
+ PKG_CHECK_MODULES(LIBGUPNP_UI, gupnp-1.0 >= 0.3 gtk+-2.0)
+-
++PKG_CHECK_MODULES(GSSDP, gssdp-1.0)
+ PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
+ 
+ # Debugging
+--- tests/Makefile.am
++++ tests/Makefile.am
+@@ -1,9 +1,9 @@
+-AM_CFLAGS = $(LIBGUPNP_UI_CFLAGS) $(GTHREAD_CFLAGS) -I$(top_srcdir)
++AM_CFLAGS = $(LIBGUPNP_UI_CFLAGS) $(GTHREAD_CFLAGS) $(GSSDP_CFLAGS) -I$(top_srcdir)
+ 
+ noinst_PROGRAMS = test-view
+ 
+ test_view_SOURCES = test-view.c
+-test_view_LDADD   = $(top_builddir)/libgupnp-ui/libgupnp-ui-1.0.la $(GTHREAD_LIBS)
++test_view_LDADD   = $(top_builddir)/libgupnp-ui/libgupnp-ui-1.0.la $(GTHREAD_LIBS) $(GSSDP_LIBS)
+ 
+ CLEANFILES = $(BUILT_SOURCES)
+ DISTCLEANFILES = $(BUILT_SOURCES)
index 6ccd7ffb44cca9f727de3c35719c3ada646509a9..1d129c2e6dd16e22002c22ab72ca4f0003b23c4b 100644 (file)
@@ -2,7 +2,12 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=2
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils
 
 DESCRIPTION="Collection of simple GTK+ widgets on top of GUPnP"
 HOMEPAGE="http://gupnp.org"
@@ -19,6 +24,10 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
        sys-devel/gettext"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-underlinking.patch
+)
+
 src_configure() {
        econf \
                --disable-dependency-tracking \