From ac277c60736d35fcddf67ef0acc479cf66091b80 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Sun, 23 Apr 2023 08:40:36 +0200 Subject: dev-libs/apache-arrow: add brotli, compute, ssl support Signed-off-by: Alfredo Tupone --- .../apache-arrow/apache-arrow-11.0.0-r1.ebuild | 107 +++++++++++++++++++++ dev-libs/apache-arrow/apache-arrow-11.0.0.ebuild | 98 ------------------- dev-libs/apache-arrow/metadata.xml | 11 ++- 3 files changed, 116 insertions(+), 100 deletions(-) create mode 100644 dev-libs/apache-arrow/apache-arrow-11.0.0-r1.ebuild delete mode 100644 dev-libs/apache-arrow/apache-arrow-11.0.0.ebuild (limited to 'dev-libs/apache-arrow') diff --git a/dev-libs/apache-arrow/apache-arrow-11.0.0-r1.ebuild b/dev-libs/apache-arrow/apache-arrow-11.0.0-r1.ebuild new file mode 100644 index 000000000000..12dd7ecedf80 --- /dev/null +++ b/dev-libs/apache-arrow/apache-arrow-11.0.0-r1.ebuild @@ -0,0 +1,107 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +ARROW_DATA_GIT_HASH=d2c73bf78246331d8e58b6f11aa8aa199cbb5929 +PARQUET_DATA_GIT_HASH=b2e7cc755159196e3a068c8594f7acbaecfdaaac + +DESCRIPTION="A cross-language development platform for in-memory data." +HOMEPAGE="https://arrow.apache.org/" +SRC_URI=" + mirror://apache/arrow/arrow-${PV}/${P}.tar.gz + test? ( + https://github.com/apache/parquet-testing/archive/${PARQUET_DATA_GIT_HASH}.tar.gz + -> ${PN}-parquet-data-${PV}.tar.gz + https://github.com/apache/arrow-testing/archive/${ARROW_DATA_GIT_HASH}.tar.gz + -> ${PN}-arrow-data-${PV}.tar.gz + ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="brotli bzip2 compute dataset json lz4 parquet re2 snappy ssl test zlib zstd" +RESTRICT="!test? ( test )" + +RDEPEND=" + brotli? ( app-arch/brotli ) + bzip2? ( app-arch/bzip2 ) + compute? ( dev-libs/libutf8proc ) + dataset? ( + dev-libs/libutf8proc + re2? ( dev-libs/re2 ) + ) + lz4? ( app-arch/lz4 ) + parquet? ( + dev-libs/libutf8proc + dev-libs/thrift + ssl? ( dev-libs/openssl ) + ) + snappy? ( app-arch/snappy ) + zlib? ( sys-libs/zlib ) + zstd? ( app-arch/zstd ) +" +DEPEND="${RDEPEND} + dev-cpp/xsimd + json? ( dev-libs/rapidjson ) + test? ( + dev-cpp/gflags + dev-cpp/gtest + ) +" + +REQUIRED_USE="test? ( + json + parquet? ( zstd ) + )" + +S="${WORKDIR}/${P}/cpp" + +PATCHES=( "${FILESDIR}/${P}-shared-lz4.patch" ) + +src_prepare() { + # use Gentoo CXXFLAGS, specify docdir at src_configure. + sed -i \ + -e '/SetupCxxFlags/d' \ + -e '/set(ARROW_DOC_DIR.*)/d' \ + CMakeLists.txt \ + || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DARROW_BUILD_STATIC=OFF + -DARROW_BUILD_TESTS=$(usex test) + -DARROW_COMPUTE=$(usex compute) + -DARROW_CSV=ON + -DARROW_DATASET=$(usex dataset) + -DARROW_DEPENDENCY_SOURCE=SYSTEM + -DARROW_DOC_DIR=share/doc/${PF} + -DARROW_FILESYSTEM=ON + -DARROW_HDFS=ON + -DARROW_JEMALLOC=OFF + -DARROW_JSON=$(usex json) + -DARROW_PARQUET=$(usex parquet) + -DPARQUET_REQUIRE_ENCRYPTION=$(usex ssl) + -DARROW_USE_CCACHE=OFF + -DARROW_USE_SCCACHE=OFF + -DARROW_WITH_BROTLI=$(usex brotli) + -DARROW_WITH_BZ2=$(usex bzip2) + -DARROW_WITH_LZ4=$(usex lz4) + -DARROW_WITH_RE2=$(usex re2) + -DARROW_WITH_SNAPPY=$(usex snappy) + -DARROW_WITH_ZLIB=$(usex zlib) + -DARROW_WITH_ZSTD=$(usex zstd) + ) + cmake_src_configure +} + +src_test() { + export PARQUET_TEST_DATA="${WORKDIR}/parquet-testing-${PARQUET_DATA_GIT_HASH}/data" + export ARROW_TEST_DATA="${WORKDIR}/arrow-testing-${ARROW_DATA_GIT_HASH}/data" + cmake_src_test +} diff --git a/dev-libs/apache-arrow/apache-arrow-11.0.0.ebuild b/dev-libs/apache-arrow/apache-arrow-11.0.0.ebuild deleted file mode 100644 index 6d70b765d4d9..000000000000 --- a/dev-libs/apache-arrow/apache-arrow-11.0.0.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake - -ARROW_DATA_GIT_HASH=d2c73bf78246331d8e58b6f11aa8aa199cbb5929 -PARQUET_DATA_GIT_HASH=b2e7cc755159196e3a068c8594f7acbaecfdaaac - -DESCRIPTION="A cross-language development platform for in-memory data." -HOMEPAGE="https://arrow.apache.org/" -SRC_URI=" - mirror://apache/arrow/arrow-${PV}/${P}.tar.gz - test? ( - https://github.com/apache/parquet-testing/archive/${PARQUET_DATA_GIT_HASH}.tar.gz - -> ${PN}-parquet-data-${PV}.tar.gz - https://github.com/apache/arrow-testing/archive/${ARROW_DATA_GIT_HASH}.tar.gz - -> ${PN}-arrow-data-${PV}.tar.gz - ) -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="bzip2 dataset json lz4 parquet re2 snappy test zlib zstd" -RESTRICT="!test? ( test )" - -RDEPEND=" - bzip2? ( app-arch/bzip2 ) - dataset? ( - dev-libs/libutf8proc - re2? ( dev-libs/re2 ) - ) - lz4? ( app-arch/lz4 ) - parquet? ( - dev-libs/libutf8proc - dev-libs/thrift - ) - snappy? ( app-arch/snappy ) - zlib? ( sys-libs/zlib ) - zstd? ( app-arch/zstd ) -" -DEPEND="${RDEPEND} - dev-cpp/xsimd - json? ( dev-libs/rapidjson ) - test? ( - dev-cpp/gtest - ) -" - -REQUIRED_USE="test? ( - json - parquet? ( zstd ) - )" - -S="${WORKDIR}/${P}/cpp" - -PATCHES=( "${FILESDIR}/${P}-shared-lz4.patch" ) - -src_prepare() { - # use Gentoo CXXFLAGS, specify docdir at src_configure. - sed -i \ - -e '/SetupCxxFlags/d' \ - -e '/set(ARROW_DOC_DIR.*)/d' \ - CMakeLists.txt \ - || die - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DARROW_BUILD_STATIC=OFF - -DARROW_BUILD_TESTS=$(usex test) - -DARROW_CSV=ON - -DARROW_DATASET=$(usex dataset) - -DARROW_DEPENDENCY_SOURCE=SYSTEM - -DARROW_DOC_DIR=share/doc/${PF} - -DARROW_JEMALLOC=OFF - -DARROW_JSON=$(usex json) - -DARROW_PARQUET=$(usex parquet) - -DARROW_USE_CCACHE=OFF - -DARROW_USE_SCCACHE=OFF - -DARROW_WITH_BZ2=$(usex bzip2) - -DARROW_WITH_LZ4=$(usex lz4) - -DARROW_WITH_RE2=$(usex re2) - -DARROW_WITH_SNAPPY=$(usex snappy) - -DARROW_WITH_ZLIB=$(usex zlib) - -DARROW_WITH_ZSTD=$(usex zstd) - ) - cmake_src_configure -} - -src_test() { - export PARQUET_TEST_DATA="${WORKDIR}/parquet-testing-${PARQUET_DATA_GIT_HASH}/data" - export ARROW_TEST_DATA="${WORKDIR}/arrow-testing-${ARROW_DATA_GIT_HASH}/data" - cmake_src_test -} diff --git a/dev-libs/apache-arrow/metadata.xml b/dev-libs/apache-arrow/metadata.xml index 78102c94fc52..67bc36926748 100644 --- a/dev-libs/apache-arrow/metadata.xml +++ b/dev-libs/apache-arrow/metadata.xml @@ -6,9 +6,16 @@ Tupone Alfredo + Enable brotli compression suppor + Build the Arrow Compute Modules Build the Arrow Dataset Modules - Enables read/write json format - Enables read/write parquet data format + Enables read/write json format + Enables read/write parquet data format Build with support for regular expressions using the re2 library + + apache/arrow + apache/parquet-testing + apache/arrow-testing + -- cgit v1.2.3-65-gdbad