homebrew-core/Formula/juju.rb

29 lines
798 B
Ruby
Raw Normal View History

require 'formula'
class Juju < Formula
homepage 'https://juju.ubuntu.com'
2014-07-10 17:01:50 +00:00
url 'https://launchpad.net/juju-core/1.20/1.20.1/+download/juju-core_1.20.1.tar.gz'
sha1 'bdf806e0b3390fdb1a2503a663aeaa8b58ead696'
bottle do
sha1 "8c0220660c2bafa5783eeffbbb7e6d2139e8dcb4" => :mavericks
sha1 "fc40f33c6ba96ab9a35259bae4bc6618f7792183" => :mountain_lion
sha1 "64445f9c4d3019d150065b66245426f87d48540c" => :lion
end
depends_on 'go' => :build
def install
ENV['GOPATH'] = buildpath
args = %w(install github.com/juju/juju/cmd/juju)
args.insert(1, "-v") if ARGV.verbose?
system "go", *args
bin.install 'bin/juju'
bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
end
test do
system "#{bin}/juju", "version"
end
end