2013-08-01 17:50:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Juju < Formula
|
|
|
|
homepage 'https://juju.ubuntu.com'
|
2014-05-09 21:42:36 +00:00
|
|
|
url 'https://launchpad.net/juju-core/1.18/1.18.3/+download/juju-core_1.18.3.tar.gz'
|
|
|
|
sha1 '9290acb390d7bcefd56212de1a8a36c008f5db89'
|
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-09 22:04:13 +00:00
|
|
|
sha1 "08b825b39bf16375b17cd4b4d73a95093936d41c" => :mavericks
|
|
|
|
sha1 "1f5775826a2414f9741b90ce2c27a1c4e3a1cfe1" => :mountain_lion
|
|
|
|
sha1 "fd95734a178d909409670ca74cb29d06e384f3db" => :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
|