apache-arrow 0.4.1 (new formula)

Closes #14764.

Signed-off-by: JCount <JCount42@gmail.com>
This commit is contained in:
Hideo Hattori 2017-06-20 18:48:52 +09:00 committed by JCount
parent 4ce1e473ca
commit c59cf08156

38
Formula/apache-arrow.rb Normal file
View file

@ -0,0 +1,38 @@
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.4.1/apache-arrow-0.4.1.tar.gz"
sha256 "499401661f9c768ba7e8a27f02a2079efc207628d7fd856cf03aa301f5dc9986"
head "https://github.com/apache/arrow.git"
# NOTE: remove ccache with Apache Arrow 0.5 and higher version
depends_on "cmake" => :build
depends_on "boost"
depends_on "ccache" => :recommended
needs :cxx11
def install
ENV.cxx11
cd "cpp" do
system "cmake", ".", *std_cmake_args
system "make", "unittest"
system "make", "install"
end
end
test do
(testpath/"test.cpp").write <<-EOS.undent
#include "arrow/api.h"
int main(void)
{
arrow::Int64Builder builder(arrow::default_memory_pool(), arrow::int64());
return 0;
}
EOS
system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}", "-larrow", "-o", "test"
system "./test"
end
end