ports/137367: net/libproxy: add menu option to configure dependence on Python
Carlos A. M. dos Santos
unixmania at gmail.com
Sun Aug 2 21:50:01 UTC 2009
>Number: 137367
>Category: ports
>Synopsis: net/libproxy: add menu option to configure dependence on Python
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 02 21:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Carlos A. M. dos Santos
>Release: 8.0-BETA2
>Organization:
N.A.
>Environment:
FreeBSD avatar 8.0-BETA2 FreeBSD 8.0-BETA2 #2: Tue Jul 28 23:21:41 BRT 2009 root at avatar:/usr/obj/usr/src/sys/Compaq_nx6320 amd64
>Description:
The use of Python is optional in libproxy. Let's add a cofiguration menu, allowing the user to choose it interactively. Keep the option on by default, for compatibility with previous versions.
>How-To-Repeat:
Build and install the net/libproxy package.
>Fix:
Apply the attached patch.
Patch attached with submission follows:
diff -dur ports/net/libproxy/Makefile ports-local/net/libproxy/Makefile
--- ports.orig/net/libproxy/Makefile 2009-02-27 02:26:27.000000000 -0300
+++ ports/net/libproxy/Makefile 2009-08-02 18:37:32.000000000 -0300
@@ -7,28 +7,38 @@
PORTNAME= libproxy
PORTVERSION= 0.2.3
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES?= net devel
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= gnome at FreeBSD.org
COMMENT?= Library that provides automatic proxy configuration management
+OPTIONS= PYTHON "Use Python" on
+
USE_GMAKE= yes
USE_GNOME+= gnomehack
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS?=--without-gnome --without-kde --without-webkit \
- --without-mozjs --without-networkmanager --with-python \
+ --without-mozjs --without-networkmanager \
--with-envvar --with-file
+.include <bsd.port.pre.mk>
+
PLIST_SUB+= VERSION=${PORTVERSION}
.if !defined(LIBPROXY_SLAVE)
USE_LDCONFIG= yes
-USE_PYTHON= yes
-CONFLICTS= libmonetra-[0-9]*
+.if !defined(WITHOUT_PYTHON)
+USE_PYTHON= yes
+CONFIGURE_ARGS+= --with-python
+.else
+PLIST_SUB+= PYTHON="@comment "
+.endif
+USE_PYTHON= yes
+CONFLICTS= libmonetra-[0-9]*
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -dur ports/net/libproxy/pkg-plist ports-local/net/libproxy/pkg-plist
--- ports/net/libproxy/pkg-plist 2009-02-27 02:26:27.000000000 -0300
+++ ports-local/net/libproxy/pkg-plist 2009-06-23 23:45:48.000000000 -0300
@@ -7,7 +7,7 @@
lib/libproxy/%%VERSION%%/plugins/envvar.so
lib/libproxy/%%VERSION%%/plugins/file.so
libdata/pkgconfig/libproxy-1.0.pc
-%%PYTHON_SITELIBDIR%%/libproxy.py
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/libproxy.py
@dirrmtry lib/libproxy/%%VERSION%%/plugins
@dirrmtry lib/libproxy/%%VERSION%%
@dirrmtry lib/libproxy
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list