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-03 03:41:08 +00:00
|
|
|
url "https://launchpad.net/juju/2.1/2.1.1/+download/juju-core_2.1.1.tar.gz"
|
|
|
|
sha256 "3302c1915af4ab0ff4028b596d3db56329c7394a34ec688ace0203158ec51118"
|
2016-11-24 09:57:29 +00:00
|
|
|
|
2016-11-23 17:48:57 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-03-03 15:31:19 +00:00
|
|
|
sha256 "4e866ec2f07f27e5d825090845f526007756d554352f0da253fad52dca972594" => :sierra
|
|
|
|
sha256 "c662fb201b9e4318f057ddddb4ada7f71df44220ae85970d648e90803540980d" => :el_capitan
|
|
|
|
sha256 "dfd7c089605e51d00d75ac1993389bf96ae8e7c56671fe223288a0f0ef984e8d" => :yosemite
|
2016-11-23 17:48:57 +00:00
|
|
|
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
|