2012-01-23 19:34:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rust < Formula
|
2012-03-30 12:06:46 +00:00
|
|
|
url 'http://dl.rust-lang.org/dist/rust-0.2.tar.gz'
|
2012-01-23 19:34:07 +00:00
|
|
|
homepage 'http://www.rust-lang.org/'
|
2012-03-30 12:06:46 +00:00
|
|
|
md5 '47be90f952ec01c3088af58be78fd618'
|
2012-01-23 19:34:07 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
cause "cannot initialize a parameter of type 'volatile long long *' with an rvalue of type 'int *'"
|
|
|
|
end
|
|
|
|
|
2012-01-23 19:34:07 +00:00
|
|
|
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
|