Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2024 01:05:36 GMT
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b11148dbd16c - main - devel/apache-orc: New port
Message-ID:  <202412170105.4BH15aX4014544@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b11148dbd16ca03bd5404146ec50673d389e7422

commit b11148dbd16ca03bd5404146ec50673d389e7422
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2024-12-17 01:03:29 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2024-12-17 01:05:14 +0000

    devel/apache-orc: New port
    
    Apache ORC is a self-describing type-aware columnar file format designed for
    Hadoop workloads. It is optimized for large streaming reads, but with integrated
    support for finding required rows quickly.
---
 devel/Makefile                                     |  1 +
 devel/apache-orc/Makefile                          | 40 ++++++++++++++++++++++
 devel/apache-orc/distinfo                          |  5 +++
 .../patch-cmake__modules_ThirdpartyToolchain.cmake | 11 ++++++
 .../apache-orc/files/patch-tools_test_ToolTest.cc  | 10 ++++++
 devel/apache-orc/pkg-descr                         |  3 ++
 devel/apache-orc/pkg-plist                         | 24 +++++++++++++
 7 files changed, 94 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 6e4d9e317300..4f3a1c12c838 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -189,6 +189,7 @@
     SUBDIR += apache-commons-io
     SUBDIR += apache-commons-jxpath
     SUBDIR += apache-log4j2
+    SUBDIR += apache-orc
     SUBDIR += apache-rat
     SUBDIR += aphpbreakdown
     SUBDIR += aphpunit
diff --git a/devel/apache-orc/Makefile b/devel/apache-orc/Makefile
new file mode 100644
index 000000000000..377cb88afd14
--- /dev/null
+++ b/devel/apache-orc/Makefile
@@ -0,0 +1,40 @@
+PORTNAME=	orc
+DISTVERSION=	2.0.3
+CATEGORIES=	devel
+MASTER_SITES=	https://dlcdn.apache.org/orc/orc-2.0.3/:orc \
+		https://archive.apache.org/dist/orc/orc-format-1.0.0/:orc_format
+PKGNAMEPREFIX=	apache-
+DISTFILES=	${PORTNAME}-${DISTVERSION}.tar.gz:orc \
+		orc-format-1.0.0.tar.gz:orc_format
+
+MAINTAINER=	wen@FreeBSD.org
+COMMENT=	Smallest, fastest columnar storage for Hadoop workloads
+WWW=		https://orc.apache.org/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/lib/libgtest.so:devel/googletest \
+		${LOCALBASE}/lib/libzstd.so:archivers/zstd
+LIB_DEPENDS=	libsnappy.so:archivers/snappy \
+		liblz4.so:archivers/liblz4 \
+		libprotobuf.so:devel/protobuf \
+		libabsl_demangle_internal.so:devel/abseil
+
+USES=		cmake
+
+CMAKE_ARGS+=	-DBUILD_JAVA=OFF \
+		-DZLIB_HOME="/usr" \
+		-DSNAPPY_HOME=${LOCALBASE} \
+		-DLZ4_HOME=${LOCALBASE} \
+		-DGTEST_HOME=${LOCALBASE} \
+		-DPROTOBUF_HOME=${LOCALBASE} \
+		-DZSTD_HOME=${LOCALBASE}
+CFLAGS+=	-fPIC
+CPPFLAGS+=	-fPIC
+
+post-patch:
+		@${REINPLACE_CMD} "s#%%MYSITE%%#${DISTDIR}#g" \
+			${WRKSRC}/cmake_modules/ThirdpartyToolchain.cmake
+
+.include <bsd.port.mk>
diff --git a/devel/apache-orc/distinfo b/devel/apache-orc/distinfo
new file mode 100644
index 000000000000..c6c765130990
--- /dev/null
+++ b/devel/apache-orc/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1734337150
+SHA256 (orc-2.0.3.tar.gz) = 082cba862b5a8a0d14c225404d0b51cd8d1b64ca81b8f1e500322ce8922cb86d
+SIZE (orc-2.0.3.tar.gz) = 13353259
+SHA256 (orc-format-1.0.0.tar.gz) = 739fae5ff94b1f812b413077280361045bf92e510ef04b34a610e23a945d8cd5
+SIZE (orc-format-1.0.0.tar.gz) = 52569
diff --git a/devel/apache-orc/files/patch-cmake__modules_ThirdpartyToolchain.cmake b/devel/apache-orc/files/patch-cmake__modules_ThirdpartyToolchain.cmake
new file mode 100644
index 000000000000..124de3806523
--- /dev/null
+++ b/devel/apache-orc/files/patch-cmake__modules_ThirdpartyToolchain.cmake
@@ -0,0 +1,11 @@
+--- cmake_modules/ThirdpartyToolchain.cmake.orig	2024-12-16 03:22:53 UTC
++++ cmake_modules/ThirdpartyToolchain.cmake
+@@ -72,7 +72,7 @@ ExternalProject_Add (orc-format_ep
+ # ----------------------------------------------------------------------
+ # ORC Format
+ ExternalProject_Add (orc-format_ep
+-  URL "https://archive.apache.org/dist/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz"
++  URL "%%MYSITE%%/orc-format-${ORC_FORMAT_VERSION}.tar.gz"
+   URL_HASH SHA256=739fae5ff94b1f812b413077280361045bf92e510ef04b34a610e23a945d8cd5
+   CONFIGURE_COMMAND ""
+   BUILD_COMMAND     ""
diff --git a/devel/apache-orc/files/patch-tools_test_ToolTest.cc b/devel/apache-orc/files/patch-tools_test_ToolTest.cc
new file mode 100644
index 000000000000..666daf03e86b
--- /dev/null
+++ b/devel/apache-orc/files/patch-tools_test_ToolTest.cc
@@ -0,0 +1,10 @@
+--- tools/test/ToolTest.cc.orig	2024-12-16 03:01:39 UTC
++++ tools/test/ToolTest.cc
+@@ -28,6 +28,7 @@
+ #include <sstream>
+ #include <string>
+ #include <vector>
++#include <sys/wait.h>
+ 
+ namespace {
+   const char* exampleDirectory = 0;
diff --git a/devel/apache-orc/pkg-descr b/devel/apache-orc/pkg-descr
new file mode 100644
index 000000000000..43a9d442f4ea
--- /dev/null
+++ b/devel/apache-orc/pkg-descr
@@ -0,0 +1,3 @@
+Apache ORC is a self-describing type-aware columnar file format designed for
+Hadoop workloads. It is optimized for large streaming reads, but with integrated
+support for finding required rows quickly.
diff --git a/devel/apache-orc/pkg-plist b/devel/apache-orc/pkg-plist
new file mode 100644
index 000000000000..54fa03c2e868
--- /dev/null
+++ b/devel/apache-orc/pkg-plist
@@ -0,0 +1,24 @@
+bin/csv-import
+bin/orc-contents
+bin/orc-memory
+bin/orc-metadata
+bin/orc-scan
+bin/orc-statistics
+bin/timezone-dump
+include/orc/BloomFilter.hh
+include/orc/ColumnPrinter.hh
+include/orc/Common.hh
+include/orc/Exceptions.hh
+include/orc/Int128.hh
+include/orc/MemoryPool.hh
+include/orc/OrcFile.hh
+include/orc/Reader.hh
+include/orc/Statistics.hh
+include/orc/Type.hh
+include/orc/Vector.hh
+include/orc/Writer.hh
+include/orc/orc-config.hh
+include/orc/sargs/Literal.hh
+include/orc/sargs/SearchArgument.hh
+include/orc/sargs/TruthValue.hh
+lib/liborc.a



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412170105.4BH15aX4014544>