diff --git a/Formula/multirust.rb b/Formula/multirust.rb new file mode 100644 index 000000000000..128552b00cbb --- /dev/null +++ b/Formula/multirust.rb @@ -0,0 +1,20 @@ +class Multirust < Formula + homepage "https://github.com/brson/multirust" + desc "A tool for managing multiple Rust installations" + + # Use the tag instead of the tarball to get submodules + url "https://github.com/brson/multirust.git", + :tag => "0.0.6", + :revision => "6b18101d0b878669bdba94b9e37c31308dc12d34" + + depends_on :gpg => :recommended + + def install + system "./build.sh" + system "./install.sh", "--prefix=#{prefix}" + end + + test do + system "#{bin}/multirust", "show-default" + end +end