homebrew-core/Formula/juju@1.25.rb
2017-01-31 11:28:44 +00:00

30 lines
1,022 B
Ruby

class JujuAT125 < Formula
desc "DevOps management tool"
homepage "https://jujucharms.com/"
url "https://launchpad.net/juju-core/1.25/1.25.8/+download/juju-core_1.25.8.tar.gz"
sha256 "7866cf4195d7fe87463bc7501cece12b4d0c3d08b8983f66cecf54f6f8b28267"
revision 1
bottle do
cellar :any_skip_relocation
sha256 "a0ad71fc333f02bbcda831576e73571885947e5289206d748353f474172c7bfe" => :sierra
sha256 "cf2011da3e6f7fbbb73627b6f8737bfaf333af26131bb25f29c85f7419ec687f" => :el_capitan
sha256 "71e3b915b5452125889e03be19dd6fad09cb244cc30c235f1d36841ea984788a" => :yosemite
end
depends_on "go" => :build
keg_only :versioned_formula
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-core"
end
test do
system "#{bin}/juju", "version"
end
end