From 5ab7bcd9d97d32961908cce908d09035a623f424 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 24 Nov 2016 09:57:29 +0000 Subject: [PATCH] juju@2.0 2.0.1 (new formula) --- Aliases/juju | 1 + Formula/juju@2.0.rb | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 120000 Aliases/juju create mode 100644 Formula/juju@2.0.rb diff --git a/Aliases/juju b/Aliases/juju new file mode 120000 index 00000000000..1f94dce90f0 --- /dev/null +++ b/Aliases/juju @@ -0,0 +1 @@ +../Formula/juju@2.0.rb \ No newline at end of file diff --git a/Formula/juju@2.0.rb b/Formula/juju@2.0.rb new file mode 100644 index 00000000000..7dfd40af1ea --- /dev/null +++ b/Formula/juju@2.0.rb @@ -0,0 +1,21 @@ +class JujuAT20 < Formula + desc "DevOps management tool" + homepage "https://jujucharms.com/" + url "https://launchpad.net/juju/2.0/2.0.1/+download/juju-core_2.0.1.tar.gz" + sha256 "af5d59f4b4508c3f81b15fe052fe377876f5de845885d6d41d054f4ac605b9e9" + + depends_on "go" => :build + conflicts_with "juju@1.25", :because => "juju 1 and 2 cannot be installed simultaneously." + + def install + ENV["GOPATH"] = buildpath + system "go", "build", "github.com/juju/juju/cmd/juju" + system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata" + bin.install "juju", "juju-metadata" + bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-2.0" + end + + test do + system "#{bin}/juju", "version" + end +end