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.3.tar.gz"
sha256 "9fe68127597a394ac21f2f1b632d9737fbb7630d9c19fa46cf3f5c7a50a5a226"
head "https://github.com/fluent/fluent-bit.git"
2015-10-08 17:20:08 +00:00
bottle do
cellar :any
2015-10-21 08:20:20 +00:00
sha256 "1c4a0c46320033977a68d7a35aa550cafdced5b2b20f4294c3d8026a35505003" => :el_capitan
sha256 "e730625a8a3cc64bec046a082fd9472d5356f5ad0ba19f2f44ad0e19903384a8" => :yosemite
sha256 "92f46d5be09dc58107fb10f0c1b68a7b96607d6e93b3e4ea236085bed4e83643" => :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