homebrew-core/Formula/infrakit.rb

39 lines
1.5 KiB
Ruby

class Infrakit < Formula
desc "Toolkit for creating and managing declarative infrastructure"
homepage "https://github.com/docker-archive/deploykit"
url "https://github.com/docker-archive/deploykit.git",
tag: "v0.5",
revision: "3d2670e484176ce474d4b3d171994ceea7054c02"
license "Apache-2.0"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, big_sur: "1516a85df3aef1a35b656d241de9e7f7ec8d8e35d14fdd8c6df1d8966c9a4978"
sha256 cellar: :any_skip_relocation, catalina: "1ad3128e68d1c83ca103eb1469138f3a0d40722b1a9c300babcd50533ff9342a"
sha256 cellar: :any_skip_relocation, mojave: "a20e2268d7d92cb9fcdb136c0940a7bfa62faf6bdc33f79f89639bc08e7d7cb1"
sha256 cellar: :any_skip_relocation, high_sierra: "3d188727e1be0bdf150e152b0939560a209415fa9d3b5c2275eea163510d4994"
sha256 cellar: :any_skip_relocation, sierra: "8db80c4d2d7842486a4cedfa4952ed06e453f2e61f4e6818a08b17fa694d1a1c"
end
disable! date: "2022-07-31", because: :repo_archived
depends_on "go" => :build
depends_on "libvirt" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/docker/infrakit").install buildpath.children
cd "src/github.com/docker/infrakit" do
system "make", "cli"
bin.install "build/infrakit"
prefix.install_metafiles
end
end
test do
ENV["INFRAKIT_HOME"] = testpath
ENV["INFRAKIT_CLI_DIR"] = testpath
assert_match revision.to_s, shell_output("#{bin}/infrakit version")
end
end