[104280] trunk/dports/lang/rust/Portfile
larryv at macports.org
larryv at macports.org
Fri Mar 22 21:09:40 PDT 2013
Revision: 104280
https://trac.macports.org/changeset/104280
Author: larryv at macports.org
Date: 2013-03-22 21:09:40 -0700 (Fri, 22 Mar 2013)
Log Message:
-----------
rust: (Hopefully) fix to parse on PowerPC machines.
Modified Paths:
--------------
trunk/dports/lang/rust/Portfile
Modified: trunk/dports/lang/rust/Portfile
===================================================================
--- trunk/dports/lang/rust/Portfile 2013-03-23 03:59:32 UTC (rev 104279)
+++ trunk/dports/lang/rust/Portfile 2013-03-23 04:09:40 UTC (rev 104280)
@@ -26,11 +26,25 @@
integrity, availability and concurrency.
homepage http://www.rust-lang.org/
+pre-fetch {
+ if {${os.platform} == "darwin" && ${os.major} < 10} {
+ ui_error "${name} is only supported on OS X 10.6 Snow Leopard or later."
+ return -code error "unsupported platform version"
+ }
+}
+master_sites http://dl.rust-lang.org/dist:dist
+distfiles ${distname}${extract.suffix}:dist
+checksums ${distname}${extract.suffix} \
+ rmd160 b4988da7be984aa1337f4076e96e6d0c72e3170d \
+ sha256 d326d22707f0562d669c11efbc33ae812ddbf76ab78f07087fc5beb095a8928a
+
+
# Select the snapshot compiler; see src/snapshots.txt in distribution.
+set stage0(distdir) rust-stage0
set stage0(date) 2012-12-19
set stage0(rev) 8554d5e
-platform darwin {
+platform darwin i386 {
set stage0(platform) macos-${configure.build_arch}
switch ${configure.build_arch} {
x86_64 {
@@ -44,38 +58,27 @@
set stage0(sha256) 5e598d4c45ee2dd8b7f2b69d92f60d16e57991e796d76ca255a612357a5e48e0
}
}
-}
-set stage0(distfile) [join "rust stage0 ${stage0(date)} ${stage0(rev)}
- ${stage0(platform)} ${stage0(hash)}" -].tar.bz2
-set stage0(distdir) rust-stage0
+ set stage0(distfile) [join "rust stage0 ${stage0(date)}
+ ${stage0(rev)}
+ ${stage0(platform)}
+ ${stage0(hash)}" -].tar.bz2
+ master_sites-append http://static.rust-lang.org/stage0-snapshots:stage0
+ distfiles-append ${stage0(distfile)}:stage0
+ checksums-append ${stage0(distfile)} \
+ rmd160 ${stage0(rmd160)} \
+ sha256 ${stage0(sha256)}
-pre-fetch {
- if {${os.platform} == "darwin" && ${os.major} < 10} {
- ui_error "${name} is only supported on OS X 10.6 Snow Leopard or later."
- return -code error "unsupported platform version"
+ depends_extract bin:bzip2:bzip2
+ extract.only-delete ${stage0(distfile)}
+ post-extract {
+ set expand "bzip2 -dc ${distpath}/${stage0(distfile)}"
+ set untar "${portutil::autoconf::tar_command} -xf -"
+ system -W ${workpath} "${expand} | ${untar}"
}
}
-master_sites http://dl.rust-lang.org/dist:dist \
- http://static.rust-lang.org/stage0-snapshots:stage0
-distfiles ${distname}${extract.suffix}:dist \
- ${stage0(distfile)}:stage0
-checksums ${distname}${extract.suffix} \
- rmd160 b4988da7be984aa1337f4076e96e6d0c72e3170d \
- sha256 d326d22707f0562d669c11efbc33ae812ddbf76ab78f07087fc5beb095a8928a \
- ${stage0(distfile)} \
- rmd160 ${stage0(rmd160)} \
- sha256 ${stage0(sha256)}
-depends_extract bin:bzip2:bzip2
-extract.only-delete ${stage0(distfile)}
-post-extract {
- set expand "bzip2 -dc ${distpath}/${stage0(distfile)}"
- set untar "${portutil::autoconf::tar_command} -xf -"
- system -W ${workpath} "${expand} | ${untar}"
-}
-
# Upstream only supports gcc 4.4 and newer and clang based on LLVM
# 3.0svn and newer. The clang restriction could probably be tighter;
# clang-77 is Apple Clang 1.7 (LLVM 2.9svn) from Xcode 3.2.6.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130322/ecf979ab/attachment.html>
More information about the macports-changes
mailing list