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

jmr at macports.org jmr at macports.org
Tue Jan 17 22:24:07 PST 2012


Revision: 89024
          http://trac.macports.org/changeset/89024
Author:   jmr at macports.org
Date:     2012-01-17 22:24:05 -0800 (Tue, 17 Jan 2012)
Log Message:
-----------
make sure to only add pre-build and post-destroot code once

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 05:32:34 UTC (rev 89023)
+++ trunk/dports/_resources/port1.0/group/python-1.0.tcl	2012-01-18 06:24:05 UTC (rev 89024)
@@ -75,7 +75,7 @@
     if {$action != "set"} {
         return
     }
-    global name subport
+    global name subport python._addedcode
     if {[string match py-* $name]} {
         foreach v [option $option] {
             subport py${v}[string trimleft $name py] { depends_lib port:python${v} }
@@ -101,7 +101,7 @@
     } else {
         set addcode 1
     }
-    if {[info exists addcode]} {
+    if {[info exists addcode] && ![info exists python._addedcode]} {
         pre-build {
             if {${python.add_archflags}} {
                 if {[variant_exists universal] && [variant_isset universal]} {
@@ -136,6 +136,7 @@
                 }
             }
         }
+        set python._addedcode 1
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120117/e89da798/attachment.html>


More information about the macports-changes mailing list