homebrew-core/Formula/fluent-bit.rb

33 lines
1 KiB
Ruby
Raw Normal View History

class FluentBit < Formula
desc "Data Collector for IoT"
homepage "https://github.com/fluent/fluent-bit"
url "https://github.com/fluent/fluent-bit/archive/v0.5.1.tar.gz"
sha256 "779206f2f832987c3d3419e5a194f0b0288fe129ce2b2e264750e9618671f3ce"
head "https://github.com/fluent/fluent-bit.git"
2015-10-08 17:20:08 +00:00
bottle do
cellar :any
2015-12-28 01:43:59 +00:00
sha256 "41dab8f88e949c09facec8d48372e8769cfc93aa71eafa53d5c57ebf4703c4ad" => :el_capitan
sha256 "0bd6b89f0257a207148b52fc706ee911bcf3462df08e85d36298d3cfd5330977" => :yosemite
sha256 "e454dde4f57ca45c6a22e0458ecf456c8b83beca1a5090f5ef2326a8b2cce259" => :mavericks
2015-10-08 17:20:08 +00:00
end
depends_on "cmake" => :build
2015-10-12 02:36:18 +00:00
conflicts_with "mbedtls", :because => "fluent-bit includes mbedtls libraries."
def install
system "cmake", ".", "-DWITH_IN_MEM=OFF", *std_cmake_args
system "make", "install"
end
test do
io = IO.popen("#{bin}/fluent-bit --input stdin --output stdout")
sleep 1
Process.kill("SIGINT", io.pid)
Process.wait(io.pid)
assert_match(/Fluent-Bit v#{version}/, io.read)
end
end