diff --git a/ports/sparrow-ipc/portfile.cmake b/ports/sparrow-ipc/portfile.cmake new file mode 100644 index 0000000000..03929063a7 --- /dev/null +++ b/ports/sparrow-ipc/portfile.cmake @@ -0,0 +1,28 @@ +if(VCPKG_TARGET_IS_LINUX) + message("Warning: `sparrow-ipc` requires Clang18+ or GCC 11.2+ on Linux") +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO sparrow-org/sparrow-ipc + REF "${VERSION}" + SHA512 1a96f489ef923748c27413e07590805782f2cd46c9a625638aed601ad35c96acece058e3849a2a727ccbec294dc388dad4c8e27e54a750ab8df69c08802a1882 + HEAD_REF main +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SPARROW_IPC_BUILD_SHARED) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DSPARROW_IPC_BUILD_SHARED=${SPARROW_BUILD_SHARED} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/sparrow-ipc) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/sparrow-ipc/vcpkg.json b/ports/sparrow-ipc/vcpkg.json new file mode 100644 index 0000000000..294c0150f0 --- /dev/null +++ b/ports/sparrow-ipc/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "sparrow-ipc", + "version": "1.0.2", + "description": "C++20 idiomatic APIs for the Apache Arrow Serialization and Interprocess Communication (IPC)", + "homepage": "https://github.com/sparrow-org/sparrow-ipc", + "license": "BSD-3-Clause", + "supports": "!uwp", + "dependencies": [ + "arcticdb-sparrow", + "flatbuffers", + "lz4", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zstd" + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index cda0320610..92086d08c1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -9464,6 +9464,10 @@ "baseline": "0.11.0", "port-version": 0 }, + "sparrow-ipc": { + "baseline": "1.0.2", + "port-version": 0 + }, "sparsehash": { "baseline": "2.0.4", "port-version": 2 diff --git a/versions/s-/sparrow-ipc.json b/versions/s-/sparrow-ipc.json new file mode 100644 index 0000000000..2c857fef01 --- /dev/null +++ b/versions/s-/sparrow-ipc.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f94fc17df579a67ebb78d0a6ef18ad6a12985cf2", + "version": "1.0.2", + "port-version": 0 + } + ] +}