homebrew-core/Formula/multirust.rb

29 lines
855 B
Ruby
Raw Normal View History

class Multirust < Formula
homepage "https://github.com/brson/multirust"
desc "Manage 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"
head "https://github.com/brson/multirust.git"
2015-05-26 17:16:37 +00:00
bottle do
sha256 "a44637f895f33c6bc220ca9716055ebafadcef4d4d80e766e073d06a09ee008f" => :yosemite
sha256 "ace5fdd7fa1088ce685dd3d05fb3c765d1fef19af3ecdae4264f35d8bd440f42" => :mavericks
sha256 "fda4e8a56c51643e5b3edea4e714c311287e53038dfe7acf955776e6c881bf94" => :mountain_lion
end
depends_on :gpg => [:recommended, :run]
def install
system "./build.sh"
system "./install.sh", "--prefix=#{prefix}"
end
test do
system "#{bin}/multirust", "show-default"
end
end