homebrew-core/Formula/kcat.rb

35 lines
1.3 KiB
Ruby

class Kcat < Formula
desc "Generic command-line non-JVM Apache Kafka producer and consumer"
homepage "https://github.com/edenhill/kcat"
url "https://github.com/edenhill/kcat.git",
tag: "1.7.0",
revision: "f2236ae5d985b9f31631b076df24ca6c33542e61"
license "BSD-2-Clause"
head "https://github.com/edenhill/kcat.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_big_sur: "f930080248bb0eff245599536bbc12465c6bf6e256acb283e6d2d5a5d047f11e"
sha256 cellar: :any, big_sur: "c6d947fa5cbdd948ab09082f1c961d21e5a6e565c36cb6ffffdc9712456cafad"
sha256 cellar: :any, catalina: "7125450d67cedf6116bc7e2afb22be2b860a715dc1de6663e4e75936d7eb466e"
sha256 cellar: :any, mojave: "f403c10fd0970ed617e43cbf6fa107cac70cba94633e04c47586a586505b7ec6"
sha256 cellar: :any_skip_relocation, x86_64_linux: "954186ec95e9963cafa13f2ec0ac95591adc1a6ab1b82df116468c973c1ba51f"
end
depends_on "avro-c"
depends_on "librdkafka"
depends_on "libserdes"
depends_on "yajl"
def install
system "./configure", "--prefix=#{prefix}",
"--enable-json",
"--enable-avro"
system "make"
system "make", "install"
end
test do
system bin/"kcat", "-X", "list"
end
end