c-blosc 1.14.1 (new formula)
Closes #32841. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
decd3c39a6
commit
a310fcc10b
1 changed files with 25 additions and 0 deletions
25
Formula/c-blosc.rb
Normal file
25
Formula/c-blosc.rb
Normal 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
|
Loading…
Reference in a new issue