homebrew-core/Formula/juju.rb
2018-11-16 00:56:47 +08:00

27 lines
959 B
Ruby

class Juju < Formula
desc "DevOps management tool"
homepage "https://jujucharms.com/"
url "https://launchpad.net/juju/2.4/2.4.6/+download/juju-core_2.4.6.tar.gz"
sha256 "6021324c819354533160d0030f1d2e932ff8fc367c7773e514cde9ecdb9b4711"
bottle do
cellar :any_skip_relocation
sha256 "a68549e727a17b3b0e2e4338399ea4028a9efca9372bad5f7bfc08a5d11b44e7" => :mojave
sha256 "6533234945cf9e90cbf4cde8a86b33c6572275914fe27a79861be6b2481f276d" => :high_sierra
sha256 "d04082268db7df0af5622599e0cb71030f4e2e9059a241b8f0230bd066febc15" => :sierra
end
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"
end
test do
system "#{bin}/juju", "version"
end
end