[104285] trunk/dports/lang/rust/Portfile

larryv at macports.org larryv at macports.org
Sat Mar 23 02:19:24 PDT 2013


Revision: 104285
          https://trac.macports.org/changeset/104285
Author:   larryv at macports.org
Date:     2013-03-23 02:19:24 -0700 (Sat, 23 Mar 2013)
Log Message:
-----------
rust: Use "darwin i386" platform blocks consistently; streamline target-specification code.

Modified Paths:
--------------
    trunk/dports/lang/rust/Portfile

Modified: trunk/dports/lang/rust/Portfile
===================================================================
--- trunk/dports/lang/rust/Portfile	2013-03-23 09:05:36 UTC (rev 104284)
+++ trunk/dports/lang/rust/Portfile	2013-03-23 09:19:24 UTC (rev 104285)
@@ -124,11 +124,8 @@
     }
 }
 
-platform darwin {
-    set cpu ${configure.build_arch}
-    if {${cpu} eq "i386"} {
-        set cpu i686
-    }
+platform darwin i386 {
+    set cpu [string map {i386 i686} ${configure.build_arch}]
     configure.pre_args-append --host-triple=${cpu}-apple-darwin${os.major}
 }
 configure.args      --disable-docs \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130323/14f52361/attachment.html>


More information about the macports-changes mailing list