2013-08-01 17:50:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Juju < Formula
|
|
|
|
homepage 'https://juju.ubuntu.com'
|
2014-04-11 23:27:37 +00:00
|
|
|
url 'https://launchpad.net/juju-core/1.18/1.18.1/+download/juju-core_1.18.1.tar.gz'
|
|
|
|
sha1 '9109ad3fde28cca4e8056b5c3ebb0ef0a26b7275'
|
2013-08-15 04:30:32 +00:00
|
|
|
|
2014-03-29 14:23:20 +00:00
|
|
|
bottle do
|
2014-04-11 23:54:54 +00:00
|
|
|
sha1 "5e2c7004214bd1bb09f356f4bc18c86dd729cdee" => :mavericks
|
|
|
|
sha1 "4725f55dd9345ece43202538c56d7afcd29f3a3e" => :mountain_lion
|
|
|
|
sha1 "62f01417603e907838d423d39bb8fc01ed5b564b" => :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
|