aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rust.rb
blob: f63a5377a43ba1a6e4f3e27f4354e7d917cad0fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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