summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-06-08 07:46:55 +0000
committerMichał Górny <mgorny@gentoo.org>2014-06-08 07:46:55 +0000
commitbf34395c18cdcb4ebe314f79afeb62bc4532bccb (patch)
tree771102021ca32723c56c5e6ad7fc322d337158dc /net-libs/libproxy
parentsys-kernel/aufs-sources: Bump to latest linux and genpatches release; drop old (diff)
downloadgentoo-2-bf34395c18cdcb4ebe314f79afeb62bc4532bccb.tar.gz
gentoo-2-bf34395c18cdcb4ebe314f79afeb62bc4532bccb.tar.bz2
gentoo-2-bf34395c18cdcb4ebe314f79afeb62bc4532bccb.zip
Enable multilib support, as dependency of net-libs/glib-networking.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'net-libs/libproxy')
-rw-r--r--net-libs/libproxy/ChangeLog7
-rw-r--r--net-libs/libproxy/libproxy-0.4.11-r2.ebuild94
2 files changed, 100 insertions, 1 deletions
diff --git a/net-libs/libproxy/ChangeLog b/net-libs/libproxy/ChangeLog
index d184b929b650..e12b09970de2 100644
--- a/net-libs/libproxy/ChangeLog
+++ b/net-libs/libproxy/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-libs/libproxy
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/ChangeLog,v 1.109 2014/02/22 22:57:54 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/ChangeLog,v 1.110 2014/06/08 07:46:55 mgorny Exp $
+
+*libproxy-0.4.11-r2 (08 Jun 2014)
+
+ 08 Jun 2014; Michał Górny <mgorny@gentoo.org> +libproxy-0.4.11-r2.ebuild:
+ Enable multilib support, as dependency of net-libs/glib-networking.
22 Feb 2014; Pacho Ramos <pacho@gentoo.org> libproxy-0.4.11-r1.ebuild:
Fix wrong commit, bug 502160
diff --git a/net-libs/libproxy/libproxy-0.4.11-r2.ebuild b/net-libs/libproxy/libproxy-0.4.11-r2.ebuild
new file mode 100644
index 000000000000..9a12eddfc6d0
--- /dev/null
+++ b/net-libs/libproxy/libproxy-0.4.11-r2.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.4.11-r2.ebuild,v 1.1 2014/06/08 07:46:55 mgorny Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit cmake-multilib eutils flag-o-matic mono python-r1
+
+DESCRIPTION="Library for automatic proxy configuration management"
+HOMEPAGE="http://code.google.com/p/libproxy/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="gnome kde mono networkmanager perl python spidermonkey test webkit"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# NOTE: mozjs/spidermonkey might still cause problems like #373397 ?
+# NOTE: webkit-gtk:3, not :2, needed for libjavascriptcoregtk support
+RDEPEND="gnome? ( >=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}] )
+ kde? ( >=kde-base/kdelibs-4.4.5 )
+ mono? ( dev-lang/mono )
+ networkmanager? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ spidermonkey? ( >=dev-lang/spidermonkey-1.8.5:0= )
+ webkit? ( >=net-libs/webkit-gtk-1.6:3= )"
+DEPEND="${RDEPEND}
+ kde? ( dev-util/automoc )
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+# avoid dependency loop, bug #467696
+PDEPEND="networkmanager? ( net-misc/networkmanager )"
+
+src_prepare() {
+ # Gentoo's spidermonkey doesn't set Version: in mozjs18[57].pc
+ epatch "${FILESDIR}/${P}-mozjs.pc.patch"
+
+ # get-pac-test freezes when run by the ebuild, succeeds when building
+ # manually; virtualx.eclass doesn't help :(
+ epatch "${FILESDIR}/${PN}-0.4.10-disable-pac-test.patch"
+
+ epatch "${FILESDIR}"/${P}-macosx.patch
+
+ # prevent dependency loop with networkmanager, libsoup, glib-networking; bug #467696
+ epatch "${FILESDIR}/${PN}-0.4.11-avoid-nm-build-dep.patch"
+}
+
+src_configure() {
+ [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
+
+ use python && python_setup
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ # WITH_VALA just copies the .vapi file over and needs no deps,
+ # hence always enable it unconditionally
+ local mycmakeargs=(
+ -DPERL_VENDORINSTALL=ON
+ -DCMAKE_C_FLAGS="${CFLAGS}"
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
+ $(cmake-utils_use_with gnome GNOME3)
+ $(multilib_is_native_abi && cmake-utils_use_with kde KDE4 \
+ || echo -DWITH_KDE4=OFF)
+ $(multilib_is_native_abi && cmake-utils_use_with mono DOTNET \
+ || echo -DWITH_DOTNET=OFF)
+ $(cmake-utils_use_with networkmanager NM)
+ $(multilib_is_native_abi && cmake-utils_use_with perl PERL \
+ || echo -DWITH_PERL=OFF)
+ $(multilib_is_native_abi && cmake-utils_use_with python PYTHON \
+ || echo -DWITH_PYTHON=OFF)
+ $(multilib_is_native_abi && cmake-utils_use_with spidermonkey MOZJS \
+ || echo -DWITH_MOZJS=OFF)
+ $(multilib_is_native_abi && cmake-utils_use_with webkit WEBKIT \
+ || echo -DWITH_WEBKIT=OFF)
+ $(multilib_is_native_abi && cmake-utils_use_with webkit WEBKIT3 \
+ || echo -DWITH_WEBKIT3=OFF)
+ -DWITH_VALA=ON
+ $(cmake-utils_use test BUILD_TESTING)
+ )
+ cmake-utils_src_configure
+}
+
+multilib_src_install_all() {
+ DOCS="AUTHORS ChangeLog NEWS README"
+ einstalldocs
+
+ if use python; then
+ python_foreach_impl python_domodule bindings/python/libproxy.py || die
+ fi
+}