[136835] trunk/dports/lang/rust/Portfile
g5pw at macports.org
g5pw at macports.org
Thu May 28 01:25:03 PDT 2015
Revision: 136835
https://trac.macports.org/changeset/136835
Author: g5pw at macports.org
Date: 2015-05-28 01:25:03 -0700 (Thu, 28 May 2015)
Log Message:
-----------
devel/rust:
update to 1.0.0 (fixes #47854)
Modified Paths:
--------------
trunk/dports/lang/rust/Portfile
Modified: trunk/dports/lang/rust/Portfile
===================================================================
--- trunk/dports/lang/rust/Portfile 2015-05-28 08:17:25 UTC (rev 136834)
+++ trunk/dports/lang/rust/Portfile 2015-05-28 08:25:03 UTC (rev 136835)
@@ -4,10 +4,9 @@
PortSystem 1.0
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
-PortGroup github 1.0
-github.setup rust-lang rust 8a8986776d16c16ef4685aa38c3f6a2c0efa7884
-version 0.12.0-pre-20140903-8a89867
+name rust
+version 1.0.0
categories lang devel
platforms darwin
supported_archs i386 x86_64
@@ -34,55 +33,44 @@
}
}
-worksrcdir ${github.project}
-
# To take advantage of distfile mirroring and checksumming for the
# snapshot compiler, we let base treat it as the distfile and deal with
# the actual Rust source "manually".
-depends_fetch-append bin:git:git
-pre-fetch {
- # Clone repository.
- set opts "--quiet --no-checkout --single-branch"
- set cmdstring "${git.cmd} clone ${opts} ${git.url} \"${worksrcpath}\" 2>&1"
- ui_debug "Executing ${cmdstring}"
- if {[catch {system ${cmdstring}} -]} {
- return -code error [msgcat::mc "Git clone failed"]
- }
- # Check out branch.
- set cmdstring "${git.cmd} checkout --quiet ${git.branch} 2>&1"
- ui_debug "Executing $cmdstring"
- if {[catch {system -W ${worksrcpath} ${cmdstring}} -]} {
- return -code error [msgcat::mc "Git checkout failed"]
- }
- # Update submodules.
- set cmdstring "${git.cmd} submodule update --init 2>&1"
- ui_debug "Executing $cmdstring"
- if {[catch {system -W ${worksrcpath} ${cmdstring}} -]} {
- return -code error [msgcat::mc "Git submodule update failed"]
- }
-}
-
# Download the snapshot compiler; see src/snapshots.txt in the Rust
# distribution.
-master_sites http://static.rust-lang.org/stage0-snapshots
+master_sites https://static.rust-lang.org/dist/:main \
+ https://static.rust-lang.org/stage0-snapshots/:snap
+
+distfiles ${name}c-${version}-src${extract.suffix}:main
+worksrcdir ${name}c-${version}
+
+checksums ${name}c-${version}-src${extract.suffix} \
+ rmd160 b1127e616619fcd981e33896d4f00c4bf548ce6b \
+ sha256 c304cbd4f7b25d116b73c249f66bdb5c9da8645855ce195a41bda5077b995eba
+
set stage0(distdir) rust-stage0
-set stage0(date) 2014-08-29
-set stage0(rev) 6025926
+set stage0(date) 2015-03-27
+set stage0(rev) 5520801
set stage0(platform) macos-${configure.build_arch}
set stage0(hash) [expr {${configure.build_arch} eq "i386" ?
- "deffce32408b023bcda84f6ce338ca3de02f406b" :
- "8ef7351e34fc1583570d752d223ddc6eb68ef27b"}]
-use_bzip2 yes
-distname [join "rust stage0 ${stage0(date)}
+ "0310b1a970f2da7e61770fd14dbbbdca3b518234" :
+ "5f35d9c920b8083a7420ef8cf5b00d5ef3085dfa"}]
+
+set stage0_name [join "rust stage0 ${stage0(date)}
${stage0(rev)}
${stage0(platform)}
- ${stage0(hash)}" -]
+ ${stage0(hash)}" -].tar.bz2
+
+distfiles-append ${stage0_name}:snap
+
switch ${configure.build_arch} {
- i386 {checksums rmd160 efb8b199ba0e2732845b7d6d3b7d723daec6a9b7 \
- sha256 078cdbd30ef041854b78bf4b8a2ce92b69cd3facd500c74dff3dd120f5f0052f}
- default {checksums rmd160 90e38262abd50ad4ba1bd168869b70d26b90deba \
- sha256 3997d9a947bb58c7463e44c810a71075db5f12a75cb4c29605e8813c85377c65}
+ i386 {checksums-append ${stage0_name} \
+ rmd160 15a0ffbcee0def1a056d69aa851edf2b8ca490b6 \
+ sha256 0cc20c5f3c808d6332bcc192b60d6a1e9ee313d481030d8d07ff42a831492ba2}
+ default {checksums-append ${stage0_name} \
+ rmd160 a5ef6ad68e6e49b40d045e45227ad858b0935988 \
+ sha256 38076751be5a52a61285cced36879832a7a106d7ce0bfd2b2080c3cfc42de1ce}
}
# Only use compilers supported by upstream
@@ -92,11 +80,6 @@
gcc-3.3 {*gcc-4.[0-6]} \
macports-clang-2.9
-post-patch {
- # Stop build from treating compiler warnings as errors.
- reinplace {s/ -Werror//g} mk/platform.mk
-}
-
# Building the bundled LLVM requires Python 2.4-2.7. All supported
# OS X releases have 2.6. (Using MacPorts' LLVM ports fails either
# during build or during testing.)
@@ -150,12 +133,6 @@
destroot.args VERBOSE=1
post-destroot {
- # Install vim files
- foreach dir {after/syntax ftdetect indent syntax} {
- xinstall -d ${destroot}${prefix}/share/vim/vimfiles/${dir}
- 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}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150528/c466d1c6/attachment.html>
More information about the macports-changes
mailing list