1 class ApacheArrow
< Formula
2 desc
"Columnar in-memory analytics layer designed to accelerate big data"
3 homepage
"https://arrow.apache.org/"
4 url
"https://www.apache.org/dyn/closer.lua?path=arrow/arrow-6.0.1/apache-arrow-6.0.1.tar.gz"
5 sha256
"9948ddb6d4798b51552d0dca3252dd6e3a7d0f9702714fc6f5a1b59397ce1d28"
7 head
"https://github.com/apache/arrow.git"
9 depends_on
"boost" => :build
10 depends_on
"cmake" => :build
11 depends_on
"llvm" => :build
17 depends_on
"openssl@1.1"
19 depends_on
"python@3.9"
20 depends_on
"rapidjson"
27 # link against system libc++ instead of llvm provided libc++
28 ENV.remove
"HOMEBREW_LIBRARY_PATHS", Formula
["llvm"].opt_lib
37 -DARROW_PROTOBUF_USE_SHARED
=ON
43 -DARROW_WITH_SNAPPY
=ON
44 -DARROW_WITH_BROTLI
=ON
45 -DARROW_INSTALL_NAME_RPATH
=OFF
46 -DPython3_EXECUTABLE
=#{Formula["python@3.9"].bin/"python3"}
48 # Re-enable -DARROW_S3=ON and add back aws-sdk-cpp to depends_on in ARROW-6437
52 system
"cmake", "../cpp", *std_cmake_args
, *args
54 system
"make", "install"
59 (testpath
/"test.cpp").write
<<~EOS
60 #include "arrow/api.h"
66 system
ENV.cxx
, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}", "-larrow", "-o", "test"