95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
32 lines
962 B
Ruby
32 lines
962 B
Ruby
class Uru < Formula
|
|
desc "Use multiple rubies on multiple platforms"
|
|
homepage "https://bitbucket.org/jonforums/uru"
|
|
url "https://bitbucket.org/jonforums/uru/get/v0.7.6.tar.gz"
|
|
sha256 "b6243315801ce28ec7f7c12c02de558188752b14dba9da0813da83ccafdb91cd"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "9476d70ca74e2074129067a8b820065ec7e7a86b" => :yosemite
|
|
sha1 "61e905c6a60df009190c87afb830536e53419cdd" => :mavericks
|
|
sha1 "6353400d611ed746f6f232a86c8ba8a18e89a06a" => :mountain_lion
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
(buildpath/"src/bitbucket.org/jonforums/uru").install Dir["*"]
|
|
system "go", "build", "-ldflags", "-s", "bitbucket.org/jonforums/uru"
|
|
bin.install "uru" => "uru_rt"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Append to ~/.profile on Ubuntu, or to ~/.zshrc on Zsh
|
|
$ echo 'eval "$(uru_rt admin install)"' >> ~/.bash_profile
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/uru_rt"
|
|
end
|
|
end
|