Skip to content

Commit 5e61fbe

Browse files
Alex-PLACETtogeCheney-W
authored
[arcticdb-sparrow] Add new port (#44236)
Co-authored-by: toge <[email protected]> Co-authored-by: Cheney Wang <[email protected]>
1 parent 16f700e commit 5e61fbe

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

ports/arcticdb-sparrow/portfile.cmake

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
if(VCPKG_TARGET_IS_LINUX)
2+
message("Warning: `sparrow` requires Clang18+ or GCC 12+ on Linux")
3+
endif()
4+
5+
vcpkg_from_github(
6+
OUT_SOURCE_PATH SOURCE_PATH
7+
REPO man-group/sparrow
8+
REF "${VERSION}"
9+
SHA512 1e80792625589c72a8e83cabc603f0f4e08ce72c6ba9044e2191f197e7740ac40f7b714c5fe543a00417689e48c681d5ea4f81b87baf54695f3725acf1d3a0e3
10+
HEAD_REF main
11+
)
12+
13+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
14+
set(SPARROW_BUILD_SHARED ON)
15+
else()
16+
set(SPARROW_BUILD_SHARED OFF)
17+
endif()
18+
19+
vcpkg_cmake_configure(
20+
SOURCE_PATH "${SOURCE_PATH}"
21+
OPTIONS
22+
${FEATURE_OPTIONS}
23+
-DSPARROW_BUILD_SHARED=${SPARROW_BUILD_SHARED}
24+
-DBUILD_TESTS=OFF
25+
-DBUILD_EXAMPLES=OFF
26+
)
27+
28+
vcpkg_cmake_install()
29+
vcpkg_cmake_config_fixup(PACKAGE_NAME sparrow CONFIG_PATH share/cmake/sparrow)
30+
31+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
32+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
33+
34+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

ports/arcticdb-sparrow/vcpkg.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "arcticdb-sparrow",
3+
"version": "0.5.0",
4+
"description": "C++20 idiomatic APIs for the Apache Arrow Columnar Format",
5+
"homepage": "https://github.com/man-group/sparrow",
6+
"license": "Apache-2.0",
7+
"supports": "!uwp",
8+
"dependencies": [
9+
"date",
10+
{
11+
"name": "vcpkg-cmake",
12+
"host": true
13+
},
14+
{
15+
"name": "vcpkg-cmake-config",
16+
"host": true
17+
}
18+
]
19+
}

scripts/ci.baseline.txt

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ apr:arm64-android=fail
5151
apr:x64-android=fail
5252
apsi:arm-neon-android=fail
5353
apsi:x64-android=fail
54+
# arcticdb-sparrow requires gcc13 and clang17 or later. linux-x64 always fails because it uses gcc11.
55+
arcticdb-sparrow:x64-linux=fail
5456
# Broken with CUDA 12; needs update to 3.8.3 and https://github.com/arrayfire/arrayfire/issues/3349 fixed
5557
arrayfire:x64-linux=fail
5658
avro-c:arm-neon-android=fail

versions/a-/arcticdb-sparrow.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "56a860246cba2159516ff5ad32f32f27cbbee598",
5+
"version": "0.5.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

versions/baseline.json

+4
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@
192192
"baseline": "2.21.1",
193193
"port-version": 2
194194
},
195+
"arcticdb-sparrow": {
196+
"baseline": "0.5.0",
197+
"port-version": 0
198+
},
195199
"arcus": {
196200
"baseline": "4.10.0",
197201
"port-version": 4

0 commit comments

Comments
 (0)