summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-05-03 18:50:48 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-05-03 18:50:48 +0000
commit4783b8b3ea407fc76e5d0821047df0bbb078329f (patch)
tree0b1b624727468eced1046faa62b16b3405d0572c /net-libs/libproxy
parentamd64/x86 stable, bug #268317 (diff)
downloadgentoo-2-4783b8b3ea407fc76e5d0821047df0bbb078329f.tar.gz
gentoo-2-4783b8b3ea407fc76e5d0821047df0bbb078329f.tar.bz2
gentoo-2-4783b8b3ea407fc76e5d0821047df0bbb078329f.zip
liproxy is a library for automatic proxy configuration management, initial ebuild by nirbheek, closes bug #244028.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/libproxy')
-rw-r--r--net-libs/libproxy/ChangeLog15
-rw-r--r--net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch12
-rw-r--r--net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch31
-rw-r--r--net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch26
-rw-r--r--net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch22
-rw-r--r--net-libs/libproxy/libproxy-0.2.3.ebuild76
-rw-r--r--net-libs/libproxy/metadata.xml9
7 files changed, 191 insertions, 0 deletions
diff --git a/net-libs/libproxy/ChangeLog b/net-libs/libproxy/ChangeLog
new file mode 100644
index 000000000000..027d7a591e6d
--- /dev/null
+++ b/net-libs/libproxy/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for net-libs/libproxy
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/ChangeLog,v 1.1 2009/05/03 18:50:48 eva Exp $
+
+*libproxy-0.2.3 (03 May 2009)
+
+ 03 May 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +files/libproxy-0.2.3-fix-as-needed-problem.patch,
+ +files/libproxy-0.2.3-fix-dbus-includes.patch,
+ +files/libproxy-0.2.3-fix-libxul-cflags.patch,
+ +files/libproxy-0.2.3-fix-python-automagic.patch, +metadata.xml,
+ +libproxy-0.2.3.ebuild:
+ libproxy is a library for automatic proxy configuration management, initial
+ ebuild by nirbheek, closes bug #244028.
+
diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch
new file mode 100644
index 000000000000..9dca639de6c8
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch
@@ -0,0 +1,12 @@
+diff -Naur libproxy-0.2.3.orig/src/lib/Makefile.am libproxy-0.2.3/src/lib/Makefile.am
+--- libproxy-0.2.3.orig/src/lib/Makefile.am 2008-06-06 02:26:15.000000000 +0530
++++ libproxy-0.2.3/src/lib/Makefile.am 2009-01-30 13:47:53.365859960 +0530
+@@ -2,7 +2,7 @@
+ libproxy_la_SOURCES = misc.c url.c pac.c dhcp.c dns.c slp.c wpad.c proxy_factory.c config_file.c \
+ misc.h url.h pac.h dhcp.h dns.h slp.h wpad.h proxy_factory.h proxy.h config_file.h
+ libproxy_la_CFLAGS = -Wall
+-libproxy_la_LDFLAGS = -lm
++libproxy_la_LDFLAGS = -lm -ldl
+
+ include_HEADERS = proxy.h
+
diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch
new file mode 100644
index 000000000000..e1148d341681
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch
@@ -0,0 +1,31 @@
+--- libproxy-0.2.3.orig/configure.ac 2008-06-06 02:26:16.000000000 +0530
++++ libproxy-0.2.3/configure.ac 2009-01-25 15:12:45.720319398 +0530
+@@ -21,6 +22,7 @@
+ [PKG_CHECK_MODULES(mozjs, mozilla-js, have_mozjs=yes, have_mozjs=no)])])
+ PKG_CHECK_MODULES(NetworkManager, NetworkManager,
+ have_networkmanager=yes, have_networkmanager=no)
++PKG_CHECK_MODULES(dbus, dbus-1, have_dbus=yes, have_dbus=no)
+
+ # Environmental Variable
+ AC_ARG_WITH([envvar],
+@@ -133,15 +135,15 @@
+ [AS_HELP_STRING([--with-networkmanager],
+ [build NetworkManager plugin @<:@automatic@:>@])],
+ [],
+- [test x$have_networkmanager == xyes && with_networkmanager=yes])
++ [test x$have_networkmanager == xyes -a x$have_dbus == xyes && with_networkmanager=yes])
+ if test x$with_networkmanager = xyes; then
+- if test x$have_networkmanager == xyes; then
+- NETWORKMANAGER_CFLAGS="$NetworkManager_CFLAGS"
+- NETWORKMANAGER_LIBS="$NetworkManager_LIBS"
++ if test x$have_networkmanager == xyes -a x$have_dbus == xyes; then
++ NETWORKMANAGER_CFLAGS="$NetworkManager_CFLAGS $dbus_CFLAGS"
++ NETWORKMANAGER_LIBS="$NetworkManager_LIBS $dbus_LIBS"
+ AC_SUBST(NETWORKMANAGER_CFLAGS)
+ AC_SUBST(NETWORKMANAGER_LIBS)
+ else
+- echo "NetworkManager plugin requires: NetworkManager!"
++ echo "NetworkManager plugin requires: NetworkManager and dbus!"
+ exit 1
+ fi
+ else
diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch
new file mode 100644
index 000000000000..0ee34f0408a9
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch
@@ -0,0 +1,26 @@
+ configure.ac | 5 +++--
+ 1 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index bfea453..844896b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -23,6 +23,7 @@ PKG_CHECK_MODULES(mozjs, xulrunner-js, have_mozjs=yes,
+ PKG_CHECK_MODULES(NetworkManager, NetworkManager,
+ have_networkmanager=yes, have_networkmanager=no)
+ PKG_CHECK_MODULES(dbus, dbus-1, have_dbus=yes, have_dbus=no)
++PKG_CHECK_MODULES(libxul_unstable, libxul-unstable, have_mozjs=yes, have_mozjs=no)
+
+ # Environmental Variable
+ AC_ARG_WITH([envvar],
+@@ -117,8 +118,8 @@ AC_ARG_WITH([mozjs],
+ [test x$have_mozjs == xyes && with_mozjs=yes])
+ if test x$with_mozjs = xyes; then
+ if test x$have_mozjs == xyes; then
+- MOZJS_CFLAGS="$mozjs_CFLAGS"
+- MOZJS_LIBS="$mozjs_LIBS"
++ MOZJS_CFLAGS="$mozjs_CFLAGS $libxul_unstable_CFLAGS"
++ MOZJS_LIBS="$mozjs_LIBS $libxul_unstable_LIBS"
+ AC_SUBST(MOZJS_CFLAGS)
+ AC_SUBST(MOZJS_LIBS)
+ else
diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch
new file mode 100644
index 000000000000..f33f73b41052
--- /dev/null
+++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch
@@ -0,0 +1,22 @@
+diff -Naur libproxy-0.2.3.orig/configure.ac libproxy-0.2.3/configure.ac
+--- libproxy-0.2.3.orig/configure.ac 2008-06-06 02:26:16.000000000 +0530
++++ libproxy-0.2.3/configure.ac 2009-01-25 13:56:15.335319374 +0530
+@@ -10,6 +10,7 @@
+ AC_PROG_LIBTOOL
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
++AM_PROG_CC_C_O
+
+ ### Checks for libraries for plugins.
+ PKG_CHECK_MODULES(x11, x11, have_x11=yes, have_x11=no)
+@@ -154,8 +155,8 @@
+ AC_ARG_WITH([python],
+ [AS_HELP_STRING([--with-python],
+ [build Python bindings @<:@automatic@:>@])],
+- [AM_PATH_PYTHON([2.5], with_python=yes)],
+- [AM_PATH_PYTHON([2.5], with_python=yes, with_python=no)])
++ [AM_PATH_PYTHON([2.5], have_python=yes, have_python=no)],
++ [have_python=yes && with_python=yes])
+ AM_CONDITIONAL([WITH_PYTHON], [test x$with_python = xyes])
+
+ # Java
diff --git a/net-libs/libproxy/libproxy-0.2.3.ebuild b/net-libs/libproxy/libproxy-0.2.3.ebuild
new file mode 100644
index 000000000000..b44a007f7bf2
--- /dev/null
+++ b/net-libs/libproxy/libproxy-0.2.3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.2.3.ebuild,v 1.1 2009/05/03 18:50:48 eva Exp $
+
+EAPI="2"
+
+inherit autotools eutils python
+
+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="~amd64 ~x86"
+IUSE="gnome kde networkmanager python webkit xulrunner"
+
+RDEPEND="
+ gnome? (
+ x11-libs/libX11
+ x11-libs/libXmu
+ gnome-base/gconf )
+ kde? (
+ x11-libs/libX11
+ x11-libs/libXmu )
+ networkmanager? ( net-misc/networkmanager )
+ python? ( >=dev-lang/python-2.5 )
+ webkit? ( net-libs/webkit-gtk )
+ xulrunner? ( net-libs/xulrunner )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.19"
+
+src_prepare() {
+ # http://code.google.com/p/libproxy/issues/detail?id=23
+ epatch "${FILESDIR}/${P}-fix-dbus-includes.patch"
+
+ # http://code.google.com/p/libproxy/issues/detail?id=24
+ epatch "${FILESDIR}/${P}-fix-python-automagic.patch"
+
+ # http://code.google.com/p/libproxy/issues/detail?id=25
+ epatch "${FILESDIR}/${P}-fix-as-needed-problem.patch"
+
+ # http://bugs.gentoo.org/show_bug.cgi?id=259178
+ epatch "${FILESDIR}/${P}-fix-libxul-cflags.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-envvar \
+ --with-file \
+ --disable-static \
+ $(use_with gnome) \
+ $(use_with kde) \
+ $(use_with webkit) \
+ $(use_with xulrunner mozjs) \
+ $(use_with networkmanager) \
+ $(use_with python)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed!"
+ dodoc AUTHORS NEWS README ChangeLog || die "dodoc failed"
+}
+
+pkg_postinst() {
+ if use python; then
+ python_need_rebuild
+ python_mod_optimize "$(python_get_sitedir)/${PN}.py"
+ fi
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}.py
+}
diff --git a/net-libs/libproxy/metadata.xml b/net-libs/libproxy/metadata.xml
new file mode 100644
index 000000000000..b541ec81c030
--- /dev/null
+++ b/net-libs/libproxy/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnome</herd>
+<use>
+ <flag name='webkit'>Enable support for <pkg>net-libs/webkit-gtk</pkg>.</flag>
+</use>
+</pkgmetadata>
+