class Landscaper < Formula desc "Manage the application landscape in a Kubernetes cluster" homepage "https://github.com/Eneco/landscaper" url "https://github.com/Eneco/landscaper.git", :tag => "v1.0.16", :revision => "6dc5d9e1c5b776ae149996cc8efd7e106a51cc70" head "https://github.com/Eneco/landscaper.git" bottle do cellar :any_skip_relocation sha256 "305292c99f152d24ccca43c5ca8150f0fc9acd31735f4463e324faa37f2c7258" => :high_sierra sha256 "b7896f24549f0fcbef55873942c6a3f54d4b42d8d377a55329c85572376d6bd1" => :sierra sha256 "c9f74d230ffc461cfb146fccab8028b4ad947bc60306c787840915c55d6d36ae" => :el_capitan end depends_on "dep" => :build depends_on "go" => :build depends_on "kubernetes-cli" depends_on "kubernetes-helm" def install ENV["GOPATH"] = buildpath ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}" ENV.prepend_create_path "PATH", buildpath/"bin" arch = MacOS.prefer_64_bit? ? "amd64" : "x86" ENV["TARGETS"] = "darwin/#{arch}" dir = buildpath/"src/github.com/eneco/landscaper" dir.install buildpath.children - [buildpath/".brew_home"] cd dir do system "make", "bootstrap" system "make", "build" bin.install "build/landscaper" prefix.install_metafiles end end test do assert_match "This is Landscaper v#{version}", pipe_output("#{bin}/landscaper apply 2>&1") end end