homebrew-core/Formula/uru.rb
Zac Stewart c4dff845e2 uru 0.7.4
Uru is a lightweight, multi-platform command line tool that helps you
use the multiple rubies (currently MRI, JRuby, and Rubinius) on your
32/64-bit Linux, OS X, or Windows systems.

Closes Homebrew/homebrew#28681.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-06 08:47:54 -07:00

26 lines
678 B
Ruby

require "formula"
class Uru < Formula
homepage "https://bitbucket.org/jonforums/uru"
url "https://bitbucket.org/jonforums/uru/get/v0.7.4.tar.gz"
sha1 "24b91db240e324d2738ad1f19079aed41b9cfdbf"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/bitbucket.org/jonforums/uru").install Dir[buildpath/"*"]
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