aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorPascal Bertrand2012-01-23 20:34:07 +0100
committerAdam Vandenberg2012-01-25 17:39:13 -0800
commit84ea2c100d2b6b94f8944f42e90fc8d66e3c5975 (patch)
tree6fdedb75781447e1bb774df4cee4ea0de44dfc0e /Library/Formula
parent4bad8f8f989c0c2273fea63fa822de2e82506d22 (diff)
downloadhomebrew-84ea2c100d2b6b94f8944f42e90fc8d66e3c5975.tar.bz2
rust 0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rust.rb19
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