From 84ea2c100d2b6b94f8944f42e90fc8d66e3c5975 Mon Sep 17 00:00:00 2001 From: Pascal Bertrand Date: Mon, 23 Jan 2012 20:34:07 +0100 Subject: rust 0.1 Signed-off-by: Adam Vandenberg --- Library/Formula/rust.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Library/Formula/rust.rb (limited to 'Library') 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 -- cgit v1.2.3