[67164] trunk/dports/lang/go-devel/Portfile

singingwolfboy at macports.org singingwolfboy at macports.org
Fri Apr 30 06:55:03 PDT 2010


Revision: 67164
          http://trac.macports.org/changeset/67164
Author:   singingwolfboy at macports.org
Date:     2010-04-30 06:55:00 -0700 (Fri, 30 Apr 2010)
Log Message:
-----------
reverted GOARCH code to ryandesign's edits

Modified Paths:
--------------
    trunk/dports/lang/go-devel/Portfile

Modified: trunk/dports/lang/go-devel/Portfile
===================================================================
--- trunk/dports/lang/go-devel/Portfile	2010-04-30 13:47:52 UTC (rev 67163)
+++ trunk/dports/lang/go-devel/Portfile	2010-04-30 13:55:00 UTC (rev 67164)
@@ -33,27 +33,19 @@
 set GOROOT          ${worksrcpath}
 set GOBIN           ${workpath}/bin
 
-# based on minivmac port
-# converts normal arch names into Go arch names
-proc my_arch_to_target {arch} {
-    switch ${arch} {
-        i386 {
-            return 386
-        }
-        x86_64 {
-            return amd64
-        }
-        arm {
-            return arm
-        }
-        default {
-            return -code error "unsupported architecture ${arch}"
-        }
+switch ${build_arch} {
+    i386 {
+        set GOARCH 386
     }
+    x86_64 {
+        set GOARCH amd64
+    }
+    default {
+        # unsupported arch, but GOARCH needs to be set to something to prevent errors
+        set GOARCH x
+    }
 }
-set GOARCH          [my_arch_to_target ${build_arch}]
 
-# based on wine port
 pre-fetch {
     if {"big" == ${os.endian}} {
         ui_error "${name} can only be used on an Intel Mac or other computer with a little-endian processor."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100430/e40f400e/attachment.html>


More information about the macports-changes mailing list