[104027] users/larryv/dports/lang/rust/Portfile
larryv at macports.org
larryv at macports.org
Tue Mar 12 23:34:27 PDT 2013
Revision: 104027
https://trac.macports.org/changeset/104027
Author: larryv at macports.org
Date: 2013-03-12 23:34:27 -0700 (Tue, 12 Mar 2013)
Log Message:
-----------
[sandbox] rust: Go back to using the stage0 compiler that matches configure.build_arch, because the build process copies libs from stage0 to stage1.
Also copy over the ctags file.
Modified Paths:
--------------
users/larryv/dports/lang/rust/Portfile
Modified: users/larryv/dports/lang/rust/Portfile
===================================================================
--- users/larryv/dports/lang/rust/Portfile 2013-03-13 05:22:06 UTC (rev 104026)
+++ users/larryv/dports/lang/rust/Portfile 2013-03-13 06:34:27 UTC (rev 104027)
@@ -27,21 +27,21 @@
homepage http://www.rust-lang.org/
-# Select the snapshot compiler; see src/snapshots.txt in main
-# distribution. Use the 64-bit snapshot on x86_64, even if we're
-# ultimately targeting i386.
+# Select the snapshot compiler; see src/snapshots.txt in distribution.
set stage0(date) 2012-12-19
set stage0(rev) 8554d5e
-if {[sysctl hw.cpu64bit_capable]} {
- set stage0(platform) macos-x86_64
- set stage0(hash) e4564933f11b17f7dbd25b61032233693da21dc5
- set stage0(rmd160) 3d966bd2d17e3f2c74ed78f3674439c89d5a16ee
- set stage0(sha256) a2e287a683128e2e213e11c5b9f92e5e628eb63163591d61523549deb2e21f7d
-} else {
- set stage0(platform) macos-i386
- set stage0(hash) 151ff211c01f0b7a1895b93ff0bc021bf1472346
- set stage0(rmd160) 300b17458073a8704817821bd5406189a264f765
- set stage0(sha256) 5e598d4c45ee2dd8b7f2b69d92f60d16e57991e796d76ca255a612357a5e48e0
+set stage0(platform) macos-${configure.build_arch}
+switch ${configure.build_arch} {
+ x86_64 {
+ set stage0(hash) e4564933f11b17f7dbd25b61032233693da21dc5
+ set stage0(rmd160) 3d966bd2d17e3f2c74ed78f3674439c89d5a16ee
+ set stage0(sha256) a2e287a683128e2e213e11c5b9f92e5e628eb63163591d61523549deb2e21f7d
+ }
+ i386 {
+ set stage0(hash) 151ff211c01f0b7a1895b93ff0bc021bf1472346
+ set stage0(rmd160) 300b17458073a8704817821bd5406189a264f765
+ set stage0(sha256) 5e598d4c45ee2dd8b7f2b69d92f60d16e57991e796d76ca255a612357a5e48e0
+ }
}
set stage0(distfile) [join "rust stage0 ${stage0(date)} ${stage0(rev)}
${stage0(platform)} ${stage0(hash)}" -].tar.bz2
@@ -138,6 +138,9 @@
xinstall -m 644 ${worksrcpath}/src/etc/vim/${dir}/rust.vim \
${destroot}${prefix}/share/vim/vimfiles/${dir}
}
+ xinstall -d ${destroot}${prefix}/share/${name}
+ xinstall -m 644 ${worksrcpath}/src/etc/ctags.rust \
+ ${destroot}${prefix}/share/${name}
# Remove zero-byte libraries until
# https://github.com/mozilla/rust/issues/4468 is resolved.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130312/290d38f1/attachment.html>
More information about the macports-changes
mailing list