homebrew-core/Formula/uru.rb

33 lines
888 B
Ruby
Raw Normal View History

require "formula"
class Uru < Formula
homepage "https://bitbucket.org/jonforums/uru"
url "https://bitbucket.org/jonforums/uru/get/v0.7.6.tar.gz"
sha1 "c1618f861c94318004cdede66946f31436b410e7"
2014-11-26 18:06:24 +00:00
bottle do
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