65 lines
1.8 KiB
Ruby
65 lines
1.8 KiB
Ruby
class ApacheArrow < Formula
|
|
desc "Columnar in-memory analytics layer designed to accelerate big data"
|
|
homepage "https://arrow.apache.org/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=arrow/arrow-0.15.0/apache-arrow-0.15.0.tar.gz"
|
|
sha256 "d1072d8c4bf9166949f4b722a89350a88b7c8912f51642a5d52283448acdfd58"
|
|
head "https://github.com/apache/arrow.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "41ecef6405477dce426f217454ddf2bbf06d0fe53968051ec95e70b483bf3d60" => :catalina
|
|
sha256 "8aab42eba0d298f07b78dab997428e6b7385737e172ab612fda0df3cf41d8f95" => :mojave
|
|
sha256 "dc9624655dc1c2d92b489895013b27051fe2cfd92166e145a7832a1108870987" => :high_sierra
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "cmake" => :build
|
|
depends_on "boost"
|
|
depends_on "brotli"
|
|
depends_on "double-conversion"
|
|
depends_on "flatbuffers"
|
|
depends_on "glog"
|
|
depends_on "grpc"
|
|
depends_on "lz4"
|
|
depends_on "numpy"
|
|
depends_on "openssl@1.1"
|
|
depends_on "protobuf"
|
|
depends_on "python"
|
|
depends_on "rapidjson"
|
|
depends_on "snappy"
|
|
depends_on "thrift"
|
|
depends_on "zstd"
|
|
|
|
def install
|
|
ENV.cxx11
|
|
args = %W[
|
|
-DARROW_FLIGHT=ON
|
|
-DARROW_ORC=ON
|
|
-DARROW_PARQUET=ON
|
|
-DARROW_PLASMA=ON
|
|
-DARROW_PROTOBUF_USE_SHARED=ON
|
|
-DARROW_PYTHON=ON
|
|
-DARROW_INSTALL_NAME_RPATH=OFF
|
|
-DPYTHON_EXECUTABLE=#{Formula["python"].bin/"python3"}
|
|
]
|
|
|
|
mkdir "build"
|
|
cd "build" do
|
|
system "cmake", "../cpp", *std_cmake_args, *args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.cpp").write <<~EOS
|
|
#include "arrow/api.h"
|
|
int main(void) {
|
|
arrow::int64();
|
|
return 0;
|
|
}
|
|
EOS
|
|
system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}", "-larrow", "-o", "test"
|
|
system "./test"
|
|
end
|
|
end
|