2017-01-17 10:53:14 +00:00
|
|
|
class Juju < Formula
|
2016-11-24 09:57:29 +00:00
|
|
|
desc "DevOps management tool"
|
|
|
|
homepage "https://jujucharms.com/"
|
2017-03-16 03:04:48 +00:00
|
|
|
url "https://launchpad.net/juju/2.1/2.1.2/+download/juju-core_2.1.2.tar.gz"
|
|
|
|
sha256 "fba57c0913f77b89f0dc2c73a7c70ebac5263dfb3a014c4f40551beae0a6fd21"
|
2016-11-24 09:57:29 +00:00
|
|
|
|
2016-11-23 17:48:57 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-03-16 03:26:31 +00:00
|
|
|
sha256 "9ba8b7123b658212722ec7eeeaadb4991be7d8b63462b157882b332f0172593c" => :sierra
|
|
|
|
sha256 "aea9aa0eac9717f736d572e8e04a9033ec42f6fa35b6250463620351ee087bc5" => :el_capitan
|
|
|
|
sha256 "1743192126888e868dd613919897a8d8d559e024a0cfaa45c0d4ff7b3af66b60" => :yosemite
|
2016-11-23 17:48:57 +00:00
|
|
|
end
|
|
|
|
|
2017-03-24 23:30:20 +00:00
|
|
|
devel do
|
|
|
|
url "https://launchpad.net/juju/2.2/2.2-beta1/+download/juju-core_2.2-beta1.tar.gz"
|
|
|
|
sha256 "1f0a27c13c19521f938f703c6f797a682d33f88f1c58c7826040388c192d43a8"
|
|
|
|
version "2.2-beta1"
|
|
|
|
end
|
|
|
|
|
2016-11-24 09:57:29 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
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"
|
2017-02-22 22:34:57 +00:00
|
|
|
bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju"
|
2016-11-24 09:57:29 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/juju", "version"
|
|
|
|
end
|
|
|
|
end
|