homebrew-core/Formula/istioctl.rb

37 lines
1.1 KiB
Ruby
Raw Normal View History

class Istioctl < Formula
desc "Istio configuration command-line utility"
homepage "https://github.com/istio/istio"
url "https://github.com/istio/istio/archive/1.0.5.tar.gz"
sha256 "48418c5f27ef61403aea79ea57c502cec426117a5de4db713cd3691e2bf91204"
2018-12-20 13:36:35 +00:00
bottle do
cellar :any_skip_relocation
2019-01-03 09:14:37 +00:00
rebuild 1
sha256 "5ac5d268b626cfd6119a90876a150925d35b5aa0f70c3d6fb91034e23e747444" => :mojave
sha256 "08a48f07489f27df6de1df7f49bba30ae57a7be21c5eb3baee5b3ccdac8ad669" => :high_sierra
sha256 "97da2fa6441d6d6bc534962e095338ce0b7d76a4859af36c3979a46b5e80e8c7" => :sierra
2018-12-20 13:36:35 +00:00
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["TAG"] = version.to_s
ENV["ISTIO_VERSION"] = version.to_s
srcpath = buildpath/"src/istio.io/istio"
outpath = buildpath/"out/darwin_amd64/release"
srcpath.install buildpath.children
cd srcpath do
system "make", "istioctl"
prefix.install_metafiles
bin.install outpath/"istioctl"
end
end
test do
assert_match "Retrieve policies and rules", shell_output("#{bin}/istioctl get -h")
end
end