[140807] trunk/dports/lang

ciserlohn at macports.org ciserlohn at macports.org
Sat Oct 3 09:54:24 PDT 2015


Revision: 140807
          https://trac.macports.org/changeset/140807
Author:   ciserlohn at macports.org
Date:     2015-10-03 09:54:24 -0700 (Sat, 03 Oct 2015)
Log Message:
-----------
go, go-1.4: prevent parsing failures on unsupported archs (closes #49075); remove unused code; use supported_archs instead of pre-fetch block

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

Modified: trunk/dports/lang/go/Portfile
===================================================================
--- trunk/dports/lang/go/Portfile	2015-10-03 16:06:47 UTC (rev 140806)
+++ trunk/dports/lang/go/Portfile	2015-10-03 16:54:24 UTC (rev 140807)
@@ -36,6 +36,8 @@
 set GOROOT          ${worksrcpath}
 set GOROOT_FINAL    ${prefix}/lib/${name}
 
+supported_archs     i386 x86_64
+
 switch ${build_arch} {
     i386 {
         set GOARCH 386
@@ -43,12 +45,8 @@
     x86_64 {
         set GOARCH amd64
     }
-}
-
-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."
-        return -code error "incompatible processor"
+    default {
+        set GOARCH {}
     }
 }
 
@@ -84,7 +82,6 @@
 
     foreach f {go gofmt} {
         system -W ${destroot}${prefix}/bin/ "ln -s ../lib/${name}/bin/$f ./$f"
-#        ln -s ${grfdir}/bin/${f} ${destroot}${prefix}/bin/${f}
     }
 
     xinstall -m 644 -W ${worksrcpath} \

Modified: trunk/dports/lang/go-1.4/Portfile
===================================================================
--- trunk/dports/lang/go-1.4/Portfile	2015-10-03 16:06:47 UTC (rev 140806)
+++ trunk/dports/lang/go-1.4/Portfile	2015-10-03 16:54:24 UTC (rev 140807)
@@ -34,6 +34,8 @@
 set GOROOT          ${worksrcpath}
 set GOROOT_FINAL    ${prefix}/lib/${name}
 
+supported_archs     i386 x86_64
+
 switch ${build_arch} {
     i386 {
         set GOARCH 386
@@ -41,12 +43,8 @@
     x86_64 {
         set GOARCH amd64
     }
-}
-
-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."
-        return -code error "incompatible processor"
+    default {
+        set GOARCH {}
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151003/f0a0f9ef/attachment.html>


More information about the macports-changes mailing list