rust 0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
57ff25cf45
commit
ce55ce769d
1 changed files with 19 additions and 0 deletions
19
Formula/rust.rb
Normal file
19
Formula/rust.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
require 'formula'
|
||||
|
||||
class Rust < Formula
|
||||
url 'http://dl.rust-lang.org/dist/rust-0.1.tar.gz'
|
||||
homepage 'http://www.rust-lang.org/'
|
||||
md5 '80b655bcceaf2192c502a692c8c1eb20'
|
||||
|
||||
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
|
Loading…
Reference in a new issue