c-blosc 1.14.1 (new formula)

Closes #32841.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Harald Fernengel 2018-10-09 10:42:37 +02:00 committed by FX Coudert
parent decd3c39a6
commit a310fcc10b

25
Formula/c-blosc.rb Normal file
View file

@ -0,0 +1,25 @@
class CBlosc < Formula
desc "Blocking, shuffling and loss-less compression library"
homepage "http://blosc.org/"
url "https://github.com/Blosc/c-blosc/archive/v1.14.4.tar.gz"
sha256 "42a85de871d142cdc89b607a90cceeb0eab60d995f6fae8d44aae397ab414002"
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
(testpath/"test.cpp").write <<~EOS
#include <blosc.h>
int main() {
blosc_init();
return 0;
}
EOS
system ENV.cc, "test.cpp", "-I#{include}", "-L#{lib}", "-lblosc", "-o", "test"
system "./test"
end
end