You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
363 B
18 lines
363 B
10 years ago
|
require 'formula'
|
||
|
|
||
|
class RustNightly < Formula
|
||
|
homepage 'http://www.rust-lang.org/'
|
||
|
head 'http://static.rust-lang.org/dist/rust-nightly-x86_64-apple-darwin.tar.gz'
|
||
|
|
||
|
conflicts_with 'rust', :because => 'same'
|
||
|
|
||
|
def install
|
||
|
system "./install.sh", "--prefix=#{prefix}"
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
system "#{bin}/rustc"
|
||
|
system "#{bin}/rustdoc", "-h"
|
||
|
end
|
||
|
end
|