aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rust.rb
diff options
context:
space:
mode:
authorJake Kaufman2012-12-25 14:09:13 -0600
committerAdam Vandenberg2013-01-05 13:14:20 -0800
commite19eda5564d66f1d82d105d18f4eb956fd70cbe1 (patch)
tree949b0ac1f44d479757b08ce334ec0eee88266f85 /Library/Formula/rust.rb
parent415d5ccbac503ba344d1b130b0fcf4bb92212409 (diff)
downloadhomebrew-e19eda5564d66f1d82d105d18f4eb956fd70cbe1.tar.bz2
Rust 0.5
Also carry patch to fix showstopper repl bug Closes #16744. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/rust.rb')
-rw-r--r--Library/Formula/rust.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/rust.rb b/Library/Formula/rust.rb
index fea8d8066..b1a3c1a1a 100644
--- a/Library/Formula/rust.rb
+++ b/Library/Formula/rust.rb
@@ -2,14 +2,20 @@ require 'formula'
class Rust < Formula
homepage 'http://www.rust-lang.org/'
- url 'http://dl.rust-lang.org/dist/rust-0.4.tar.gz'
- sha256 '150685f07e4d605cadf9fba25b05e9cc1b009364dd744131cf4230d64981d093'
+ url 'http://dl.rust-lang.org/dist/rust-0.5.tar.gz'
+ sha256 'd326d22707f0562d669c11efbc33ae812ddbf76ab78f07087fc5beb095a8928a'
fails_with :clang do
build 318
cause "cannot initialize a parameter of type 'volatile long long *' with an rvalue of type 'int *'"
end
+ # Fix repl showstopper bug; can be removed for 0.6.
+ def patches
+ [ "https://github.com/gifnksm/rust/commit/9bf87bbf66227c132283ae59720f919601de9a56.patch",
+ "https://github.com/gifnksm/rust/commit/3ee1d3ebb81de199fc630a86933ac18c0a869482.patch" ]
+ end
+
def install
args = ["--prefix=#{prefix}"]
args << "--enable-clang" if ENV.compiler == :clang