summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2010-11-13 21:21:13 +0000
committerFabian Groffen <grobian@gentoo.org>2010-11-13 21:21:13 +0000
commit074fd161d924d110a50f31b7de7e6d9902d0beb3 (patch)
treecbcdca9f1ee01d23af247bb93c4019dc655e79c2 /net-libs
parentRestricting tests until someone makes them work (bug 329069) (diff)
downloadgentoo-2-074fd161d924d110a50f31b7de7e6d9902d0beb3.tar.gz
gentoo-2-074fd161d924d110a50f31b7de7e6d9902d0beb3.tar.bz2
gentoo-2-074fd161d924d110a50f31b7de7e6d9902d0beb3.zip
Fixed for and marked ~ppc-macos and ~x86-macos, bug #343611
(Portage version: 2.2.01.17168-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libnice/ChangeLog6
-rw-r--r--net-libs/libnice/files/libnice-0.0.13-darwin.patch17
-rw-r--r--net-libs/libnice/libnice-0.0.13.ebuild11
3 files changed, 31 insertions, 3 deletions
diff --git a/net-libs/libnice/ChangeLog b/net-libs/libnice/ChangeLog
index 54e91617d032..71842940f24f 100644
--- a/net-libs/libnice/ChangeLog
+++ b/net-libs/libnice/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-libs/libnice
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libnice/ChangeLog,v 1.16 2010/09/29 11:48:35 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnice/ChangeLog,v 1.17 2010/11/13 21:21:13 grobian Exp $
+
+ 13 Nov 2010; Fabian Groffen <grobian@gentoo.org> libnice-0.0.13.ebuild,
+ +files/libnice-0.0.13-darwin.patch:
+ Fixed for and marked ~ppc-macos and ~x86-macos, bug #343611
*libnice-0.0.13 (29 Sep 2010)
diff --git a/net-libs/libnice/files/libnice-0.0.13-darwin.patch b/net-libs/libnice/files/libnice-0.0.13-darwin.patch
new file mode 100644
index 000000000000..901a6c047b22
--- /dev/null
+++ b/net-libs/libnice/files/libnice-0.0.13-darwin.patch
@@ -0,0 +1,17 @@
+http://trac.macports.org/browser/trunk/dports/net/libnice/files/patch-agent-interfaces.c.diff
+
+http://bugs.gentoo.org/show_bug.cgi?id=343611
+
+fix compilation error due to anonymous struct
+
+--- agent/interfaces.c
++++ agent/interfaces.c
+@@ -198,7 +198,7 @@
+ struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)ifa->ifa_addr;
+
+ /* Skip link-local addresses, they require a scope */
+- if (IN6_IS_ADDR_LINKLOCAL (sa6->sin6_addr.s6_addr))
++ if (IN6_IS_ADDR_LINKLOCAL ((struct in6_addr *)sa6->sin6_addr.s6_addr))
+ continue;
+
+ if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string,
diff --git a/net-libs/libnice/libnice-0.0.13.ebuild b/net-libs/libnice/libnice-0.0.13.ebuild
index 2ba1b825b44c..45ae886b06a7 100644
--- a/net-libs/libnice/libnice-0.0.13.ebuild
+++ b/net-libs/libnice/libnice-0.0.13.ebuild
@@ -1,16 +1,18 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libnice/libnice-0.0.13.ebuild,v 1.1 2010/09/29 11:48:35 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnice/libnice-0.0.13.ebuild,v 1.2 2010/11/13 21:21:13 grobian Exp $
EAPI="2"
+inherit eutils libtool
+
DESCRIPTION="An implementation of the Interactice Connectivity Establishment standard (ICE)"
HOMEPAGE="http://nice.freedesktop.org/wiki/"
SRC_URI="http://nice.freedesktop.org/releases/${P}.tar.gz"
LICENSE="LGPL-2.1 MPL-1.1"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="+gstreamer upnp"
RDEPEND=">=dev-libs/glib-2.10
@@ -21,6 +23,11 @@ RDEPEND=">=dev-libs/glib-2.10
DEPEND="${RDEPEND}
dev-util/pkgconfig"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-darwin.patch
+ elibtoolize # for .bundle on Darwin
+}
+
src_configure() {
econf $(use_with gstreamer) $(use_enable upnp gupnp)
}