diff options
| author | Dzmitry Plashchynski | 2015-02-22 00:10:28 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-22 15:42:37 +0000 |
| commit | 01438160be9113fb77db1ad0e550984fc8574682 (patch) | |
| tree | f1ae2a6a15b90e69f7191c11c7b886d9791cb862 /Library/Formula/rust.rb | |
| parent | ccc1ba3b355c0239a4e707b45d316a84cfa5b7e8 (diff) | |
| download | homebrew-01438160be9113fb77db1ad0e550984fc8574682.tar.bz2 | |
rust 1.0.0-alpha.2
Closes #37012.
Closes #37038.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/rust.rb')
| -rw-r--r-- | Library/Formula/rust.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Library/Formula/rust.rb b/Library/Formula/rust.rb index 49d1219fd..4f11af913 100644 --- a/Library/Formula/rust.rb +++ b/Library/Formula/rust.rb @@ -2,9 +2,9 @@ require 'formula' class Rust < Formula homepage 'http://www.rust-lang.org/' - url 'https://static.rust-lang.org/dist/rustc-1.0.0-alpha-src.tar.gz' - version "1.0.0-alpha" - sha256 '3a2285726e839fc57ad49ed8907a50bab2d29d8f898e2d5a02f620a0477fc25c' + url 'https://static.rust-lang.org/dist/rustc-1.0.0-alpha.2-src.tar.gz' + version "1.0.0-alpha.2" + sha256 'a931b945e98f409df68fdff23e98b688024461c28901106896e73708381956c8' head 'https://github.com/rust-lang/rust.git' @@ -24,7 +24,13 @@ class Rust < Formula end test do - system "#{bin}/rustc" system "#{bin}/rustdoc", "-h" + (testpath/"hello.rs").write <<-EOS.undent + fn main() { + println!("Hello World!"); + } + EOS + system "#{bin}/rustc", "hello.rs" + assert_equal "Hello World!\n", `./hello` end end |
