diff options
| author | Pascal Bertrand | 2012-01-23 20:34:07 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-01-25 17:39:13 -0800 |
| commit | 84ea2c100d2b6b94f8944f42e90fc8d66e3c5975 (patch) | |
| tree | 6fdedb75781447e1bb774df4cee4ea0de44dfc0e /Library | |
| parent | 4bad8f8f989c0c2273fea63fa822de2e82506d22 (diff) | |
| download | homebrew-84ea2c100d2b6b94f8944f42e90fc8d66e3c5975.tar.bz2 | |
rust 0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rust.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/rust.rb b/Library/Formula/rust.rb new file mode 100644 index 000000000..f63a5377a --- /dev/null +++ b/Library/Formula/rust.rb @@ -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 |
