homebrew-core/Formula/juju.rb

28 lines
960 B
Ruby
Raw Normal View History

class Juju < Formula
2016-11-24 09:57:29 +00:00
desc "DevOps management tool"
homepage "https://jujucharms.com/"
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"
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