2013-08-01 17:50:08 +00:00
|
|
|
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'
|
2014-04-25 20:57:42 +00:00
|
|
|
|
2014-03-29 14:23:20 +00:00
|
|
|
bottle do
|
2014-07-10 17:19:28 +00:00
|
|
|
sha1 "8c0220660c2bafa5783eeffbbb7e6d2139e8dcb4" => :mavericks
|
|
|
|
sha1 "fc40f33c6ba96ab9a35259bae4bc6618f7792183" => :mountain_lion
|
|
|
|
sha1 "64445f9c4d3019d150065b66245426f87d48540c" => :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
|