[89021] trunk/dports/_resources/port1.0/group/python-1.0.tcl

jmr at macports.org jmr at macports.org
Tue Jan 17 18:00:54 PST 2012


Revision: 89021
          http://trac.macports.org/changeset/89021
Author:   jmr at macports.org
Date:     2012-01-17 18:00:54 -0800 (Tue, 17 Jan 2012)
Log Message:
-----------
automatically set python.versions to python.default_version for apps

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/python-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/python-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python-1.0.tcl	2012-01-18 01:18:53 UTC (rev 89020)
+++ trunk/dports/_resources/port1.0/group/python-1.0.tcl	2012-01-18 02:00:54 UTC (rev 89021)
@@ -144,10 +144,9 @@
     if {$action != "set"} {
         return
     }
-    global name subport
+    global name subport python.default_version
     if {[string match py-* $name]} {
         if {$subport == $name || $subport == ""} {
-            global python.default_version
             if {${python.default_version} == "24"} {
                 replaced_by py24[string trimleft $name py]
             } else {
@@ -157,6 +156,7 @@
             depends_lib port:py${python.default_version}[string trimleft $name py]
         }
     } else {
+        python.versions ${python.default_version}
         depends_lib-append port:python[option python.default_version]
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120117/289c79f6/attachment.html>


More information about the macports-changes mailing list