homebrew-core/Formula/rust.rb
Didip Kerabat c85c0705a5 Rust 0.3
Closes Homebrew/homebrew#13389.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-13 14:07:32 -05:00

24 lines
570 B
Ruby

require 'formula'
class Rust < Formula
homepage 'http://www.rust-lang.org/'
url 'http://dl.rust-lang.org/dist/rust-0.3.tar.gz'
sha256 'b34c895b9596abb6942d1688e6a5189b08b92e2507234779779c1af91e9ae84e'
fails_with :clang do
build 318
cause "cannot initialize a parameter of type 'volatile long long *' with an rvalue of type 'int *'"
end
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
def test
system "#{bin}/rustc"
system "#{bin}/rustdoc"
system "#{bin}/cargo"
end
end