aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/apache-datasketches
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/apache-datasketches
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/apache-datasketches')
-rw-r--r--vcpkg/ports/apache-datasketches/portfile.cmake23
-rw-r--r--vcpkg/ports/apache-datasketches/usage4
-rw-r--r--vcpkg/ports/apache-datasketches/vcpkg.json17
3 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/apache-datasketches/portfile.cmake b/vcpkg/ports/apache-datasketches/portfile.cmake
new file mode 100644
index 0000000..09a77a5
--- /dev/null
+++ b/vcpkg/ports/apache-datasketches/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO apache/datasketches-cpp
+ REF "${VERSION}"
+ SHA512 3be2480390bff9ec62d92885174dc5cb7e86c9e5f8215ee57e77626151002d614d41254d532e53c7e1d509b420ee0024edfcea6043caa1b9863d100f492096cd
+ HEAD_REF master
+)
+
+set(VCPKG_BUILD_TYPE release) # header-only port
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME DataSketches CONFIG_PATH lib/DataSketches/cmake)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/apache-datasketches/usage b/vcpkg/ports/apache-datasketches/usage
new file mode 100644
index 0000000..3897b28
--- /dev/null
+++ b/vcpkg/ports/apache-datasketches/usage
@@ -0,0 +1,4 @@
+apache-datasketches provides CMake targets:
+
+ find_package(DataSketches CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE datasketches)
diff --git a/vcpkg/ports/apache-datasketches/vcpkg.json b/vcpkg/ports/apache-datasketches/vcpkg.json
new file mode 100644
index 0000000..ba5fd8c
--- /dev/null
+++ b/vcpkg/ports/apache-datasketches/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "apache-datasketches",
+ "version": "5.1.0",
+ "description": "Apache DataSketches Core C++ Library Component.",
+ "homepage": "https://datasketches.apache.org/",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}