From 58613d018f126ccaa9dac9a02b11142cb0f4f4ea Mon Sep 17 00:00:00 2001 From: parkertomatoes <6298931+parkertomatoes@users.noreply.github.com> Date: Mon, 15 Jun 2026 22:12:51 -0400 Subject: [PATCH] [lttb] add port (#52377) Co-authored-by: Billy Robert O'Neal III --- ports/lttb/portfile.cmake | 23 +++++++++++++++++++++++ ports/lttb/vcpkg.json | 17 +++++++++++++++++ versions/baseline.json | 4 ++++ versions/l-/lttb.json | 9 +++++++++ 4 files changed, 53 insertions(+) create mode 100644 ports/lttb/portfile.cmake create mode 100644 ports/lttb/vcpkg.json create mode 100644 versions/l-/lttb.json diff --git a/ports/lttb/portfile.cmake b/ports/lttb/portfile.cmake new file mode 100644 index 0000000000..338d5f39d0 --- /dev/null +++ b/ports/lttb/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO parkertomatoes/lttb-cpp + REF "${VERSION}" + SHA512 af958e704ee1559d3a3913dde2a483b321d61d25b47a57b481463bc87544841a5af22524715e2c3479e35d6d202a96fcb670686aea846d216a0af7e4cd91fe15 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup( + CONFIG_PATH share/lttb/cmake +) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" +) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/lttb/vcpkg.json b/ports/lttb/vcpkg.json new file mode 100644 index 0000000000..492d5b4037 --- /dev/null +++ b/ports/lttb/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "lttb", + "version": "1.0.1", + "description": "C++ implementation of the Largest Triangle Three Buckets downsampling algorithm.", + "homepage": "https://github.com/parkertomatoes/lttb-cpp", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 072477bee5..dcca9a0c12 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6232,6 +6232,10 @@ "baseline": "0.5.0", "port-version": 1 }, + "lttb": { + "baseline": "1.0.1", + "port-version": 0 + }, "lua": { "baseline": "5.5.0", "port-version": 1 diff --git a/versions/l-/lttb.json b/versions/l-/lttb.json new file mode 100644 index 0000000000..7c82115a7d --- /dev/null +++ b/versions/l-/lttb.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "c7edceba8be22d9cd4c5701ef008b228ba668a16", + "version": "1.0.1", + "port-version": 0 + } + ] +}