apache-arrow 0.4.1 (new formula)
Closes #14764. Signed-off-by: JCount <JCount42@gmail.com>
This commit is contained in:
parent
4ce1e473ca
commit
c59cf08156
1 changed files with 38 additions and 0 deletions
38
Formula/apache-arrow.rb
Normal file
38
Formula/apache-arrow.rb
Normal 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
|
Loading…
Reference in a new issue