homebrew-core/Formula/juju.rb

34 lines
963 B
Ruby
Raw Normal View History

require 'formula'
class Juju < Formula
homepage 'https://juju.ubuntu.com'
url 'https://launchpad.net/juju-core/1.18/1.18.3/+download/juju-core_1.18.3.tar.gz'
sha1 '9290acb390d7bcefd56212de1a8a36c008f5db89'
devel do
url "https://launchpad.net/juju-core/trunk/1.19.1/+download/juju-core_1.19.1.tar.gz"
sha1 "0bf1f8fcf5788907b960c1581007f9fd45126d21"
end
bottle do
2014-05-09 22:04:13 +00:00
sha1 "08b825b39bf16375b17cd4b4d73a95093936d41c" => :mavericks
sha1 "1f5775826a2414f9741b90ce2c27a1c4e3a1cfe1" => :mountain_lion
sha1 "fd95734a178d909409670ca74cb29d06e384f3db" => :lion
end
depends_on 'go' => :build
def install
ENV['GOPATH'] = buildpath
args = %w(install launchpad.net/juju-core/cmd/juju)
args.insert(1, "-v") if ARGV.verbose?
system "go", *args
bin.install 'bin/juju'
2014-04-05 14:46:21 +00:00
bash_completion.install "src/launchpad.net/juju-core/etc/bash_completion.d/juju-core"
end
test do
system "#{bin}/juju", "version"
end
end