2013-08-01 17:50:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Juju < Formula
|
|
|
|
homepage 'https://juju.ubuntu.com'
|
2014-05-01 00:35:35 +00:00
|
|
|
url 'https://launchpad.net/juju-core/1.18/1.18.2/+download/juju-core_1.18.2.tar.gz'
|
|
|
|
sha1 '80b3be18dc45f76ac3c5270dfb9e1da1f8e2071b'
|
2013-08-15 04:30:32 +00:00
|
|
|
|
2014-04-25 20:57:42 +00:00
|
|
|
devel do
|
|
|
|
url "https://launchpad.net/juju-core/trunk/1.19.1/+download/juju-core_1.19.1.tar.gz"
|
|
|
|
sha1 "0bf1f8fcf5788907b960c1581007f9fd45126d21"
|
|
|
|
end
|
|
|
|
|
2014-03-29 14:23:20 +00:00
|
|
|
bottle do
|
2014-05-01 03:41:43 +00:00
|
|
|
sha1 "4a61fabc0412aa5df2f7398ff3128f410321f8a4" => :mavericks
|
|
|
|
sha1 "59fb2af4289dbd34b04c8ef4e135ba862803025a" => :mountain_lion
|
|
|
|
sha1 "0033afd48c60c044e74e9ed4a19063d08975d7a8" => :lion
|
2014-03-29 14:23:20 +00:00
|
|
|
end
|
|
|
|
|
2013-08-01 17:50:08 +00:00
|
|
|
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"
|
2013-08-01 17:50:08 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-08-01 17:50:08 +00:00
|
|
|
system "#{bin}/juju", "version"
|
|
|
|
end
|
|
|
|
end
|