2013-12-09 17:11:46 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Uru < Formula
|
|
|
|
homepage "https://bitbucket.org/jonforums/uru"
|
2014-11-26 17:57:21 +00:00
|
|
|
url "https://bitbucket.org/jonforums/uru/get/v0.7.6.tar.gz"
|
|
|
|
sha1 "c1618f861c94318004cdede66946f31436b410e7"
|
2013-12-09 17:11:46 +00:00
|
|
|
|
2014-11-26 18:06:24 +00:00
|
|
|
bottle do
|
2015-02-20 15:38:13 +00:00
|
|
|
cellar :any
|
2014-11-26 18:06:24 +00:00
|
|
|
sha1 "9476d70ca74e2074129067a8b820065ec7e7a86b" => :yosemite
|
|
|
|
sha1 "61e905c6a60df009190c87afb830536e53419cdd" => :mavericks
|
|
|
|
sha1 "6353400d611ed746f6f232a86c8ba8a18e89a06a" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-12-09 17:11:46 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2014-05-31 15:05:36 +00:00
|
|
|
(buildpath/"src/bitbucket.org/jonforums/uru").install Dir["*"]
|
2013-12-09 17:11:46 +00:00
|
|
|
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
|