2015-05-07 19:36:58 +00:00
|
|
|
class Kafkacat < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Generic command-line non-JVM Apache Kafka producer and consumer"
|
2015-05-07 19:36:58 +00:00
|
|
|
homepage "https://github.com/edenhill/kafkacat"
|
2015-10-29 16:39:52 +00:00
|
|
|
url "https://github.com/edenhill/kafkacat/archive/1.2.0.tar.gz"
|
|
|
|
sha256 "43e5e3d6de7882324ca4afc3c1f6c49c8485d74b6e4eb4047ba5a6eba8c1cab9"
|
2015-05-07 19:36:58 +00:00
|
|
|
|
2015-05-08 08:42:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-10-29 18:12:20 +00:00
|
|
|
sha256 "6a5d1f3ab0c3619b53f88d435f05a2bc6e5ca05a612b3e12d13f85bba7d71517" => :el_capitan
|
|
|
|
sha256 "f9cdd267383c3ca532da813bdabd7bf3715e2e22bc078f949a8e12dd4f103f49" => :yosemite
|
|
|
|
sha256 "a66d6d312498e117d485d7eea58e412da287be1dc08a1be0cd621d6a77763c7f" => :mavericks
|
2015-05-08 08:42:03 +00:00
|
|
|
end
|
|
|
|
|
2016-01-26 00:12:02 +00:00
|
|
|
option "with-yajl", "Adds JSON support"
|
|
|
|
|
2015-05-07 19:36:58 +00:00
|
|
|
depends_on "librdkafka"
|
2016-01-26 00:12:02 +00:00
|
|
|
depends_on "yajl" => :optional
|
2015-05-07 19:36:58 +00:00
|
|
|
|
|
|
|
def install
|
2016-01-26 00:12:02 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--enable-json" if build.with?("yajl")
|
|
|
|
|
|
|
|
system "./configure", *args
|
2015-05-07 19:36:58 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"kafkacat", "-X", "list"
|
|
|
|
end
|
|
|
|
end
|