2013-08-01 17:50:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Juju < Formula
|
|
|
|
homepage 'https://juju.ubuntu.com'
|
2014-08-29 18:03:38 +00:00
|
|
|
url 'https://launchpad.net/juju-core/1.20/1.20.6/+download/juju-core_1.20.6.tar.gz'
|
|
|
|
sha1 '52473e72c0eb920812df587f3a3a6d3eaeb3a8a9'
|
2014-04-25 20:57:42 +00:00
|
|
|
|
2014-03-29 14:23:20 +00:00
|
|
|
bottle do
|
2014-08-29 18:36:11 +00:00
|
|
|
sha1 "d48276fb64739cae5a3b26b0f326d884764691e6" => :mavericks
|
|
|
|
sha1 "a0617bbaade7d5ac23296af78d16deba67630d93" => :mountain_lion
|
|
|
|
sha1 "5afd07d2ed2269077f88ca032d03ba760b55bbd1" => :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
|
2014-07-05 15:08:51 +00:00
|
|
|
args = %w(install github.com/juju/juju/cmd/juju)
|
2013-08-01 17:50:08 +00:00
|
|
|
args.insert(1, "-v") if ARGV.verbose?
|
|
|
|
system "go", *args
|
|
|
|
bin.install 'bin/juju'
|
2014-07-05 15:08:51 +00:00
|
|
|
bash_completion.install "src/github.com/juju/juju/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
|