[49158] trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

toby at macports.org toby at macports.org
Sat Apr 4 12:31:05 PDT 2009


Revision: 49158
          http://trac.macports.org/changeset/49158
Author:   toby at macports.org
Date:     2009-04-04 12:31:04 -0700 (Sat, 04 Apr 2009)
Log Message:
-----------
More fixes to handle recent base change.
Also, remove insanity from muniversal_get_arch_flag

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

Modified: trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2009-04-04 19:00:39 UTC (rev 49157)
+++ trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2009-04-04 19:31:04 UTC (rev 49158)
@@ -61,19 +61,7 @@
 }
 
 proc muniversal_get_arch_flag {arch} {
-    global os.arch
-    # Prefer -m to -arch
-    set archf "-arch ${arch}"
-    if { ${os.arch}=="i386" && ${arch}=="i386" } {
-        set archf -m32
-    } elseif { ${os.arch}=="i386" && ${arch}=="x86_64" } {
-        set archf -m64
-    } elseif { ${os.arch}=="powerpc" && ${arch}=="ppc" } {
-        set archf -m32
-    } elseif { ${os.arch}=="powerpc" && ${arch}=="ppc64" } {
-        set archf -m64
-    }
-    return ${archf}
+    return "-arch ${arch}"
 }
 
 if { ! [info exists merger_arch_flag ] } {
@@ -326,7 +314,11 @@
                     file mkdir ${build.dir}
                 }
             }
-            build_main
+            if {[llength [info commands "portbuild::*"]] > 0} {
+                portbuild::build_main
+            } else {
+                build_main
+            }
             eval build.dir  ${build_dir_save}
             if { [info exists merger_build_env(${arch})] } {
                 build.env-delete  $merger_build_env(${arch})
@@ -355,7 +347,11 @@
                     file mkdir ${destroot.dir}
                 }
             }
-            destroot_main
+            if {[llength [info commands "portdestroot::*"]] > 0} {
+                portdestroot::destroot_main
+            } else {
+                destroot_main
+            }
             destroot.dir  ${destroot_dir_save}
             if { [info exists merger_destroot_env(${arch})] } {
                 destroot.env-delete  $merger_destroot_env(${arch})
@@ -515,7 +511,11 @@
                         file mkdir ${test.dir}
                     }
                 }
-                test_main
+                if {[llength [info commands "porttest::*"]] > 0} {
+                    porttest::test_main
+                } else {
+                    test_main
+                }
                 test.dir ${test_dir_save}
             }
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090404/fb2190c0/attachment.html>


More information about the macports-changes mailing list