[77081] trunk/dports/net/libproxy/Portfile

rmstonecipher at macports.org rmstonecipher at macports.org
Sat Mar 19 13:23:48 PDT 2011


Revision: 77081
          http://trac.macports.org/changeset/77081
Author:   rmstonecipher at macports.org
Date:     2011-03-19 13:23:46 -0700 (Sat, 19 Mar 2011)
Log Message:
-----------
net/libproxy update to use python27 by default, provide variant for python26 (ref #28159)

Modified Paths:
--------------
    trunk/dports/net/libproxy/Portfile

Modified: trunk/dports/net/libproxy/Portfile
===================================================================
--- trunk/dports/net/libproxy/Portfile	2011-03-19 18:02:55 UTC (rev 77080)
+++ trunk/dports/net/libproxy/Portfile	2011-03-19 20:23:46 UTC (rev 77081)
@@ -7,6 +7,7 @@
 
 name                libproxy
 version             0.4.6
+revision            1
 epoch               1
 categories          net
 maintainers         devans openmaintainer
@@ -31,12 +32,31 @@
                     port:pkgconfig
 
 depends_lib         port:gconf \
-                    port:python26 \
                     port:perl5
 
-set python_prefix   ${frameworks_dir}/Python.framework/Versions/2.6
-configure.python    ${prefix}/bin/python2.6
+# default to python27 bindings
+if {![variant_isset python27] && ![variant_isset python26]} {
+    default_variants +python27
+}
 
+variant python27 conflicts python26 \
+description {Build Bindings for Python 2.7} {
+    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
+    depends_lib-append port:python27
+    configure.python ${prefix}/bin/python2.7
+    configure.args-append \
+                    -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.7/site-packages
+}
+
+variant python26 conflicts python27 \
+description {Build Bindings for Python 2.6} {
+    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
+    depends_lib-append port:python26
+    configure.python ${prefix}/bin/python2.6
+    configure.args-append \
+                    -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.6/site-packages
+}
+
 #
 # webkit and mozjs pacrunners disabled by default due to the
 # following issues
@@ -57,8 +77,7 @@
                     -DWITH_NM=NO \
                     -DWITH_VALA=NO \
                     -DWITH_PERL=YES \
-                    -DWITH_PYTHON=YES \
-                    -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.6/site-packages
+                    -DWITH_PYTHON=YES
 
 variant no_gnome description {Disable GNOME plugin} {
         configure.args-delete -DWITH_GNOME=YES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110319/a2183562/attachment.html>


More information about the macports-changes mailing list