From b164fbd9d126cb171d8bc1b0124e691e39930541 Mon Sep 17 00:00:00 2001 From: myd7349 Date: Mon, 11 Nov 2024 16:13:17 +0800 Subject: [PATCH] [delaunator-cpp] Add new port (#41886) --- ports/delaunator-cpp/portfile.cmake | 16 ++++++++++++++++ ports/delaunator-cpp/vcpkg.json | 7 +++++++ versions/baseline.json | 4 ++++ versions/d-/delaunator-cpp.json | 9 +++++++++ 4 files changed, 36 insertions(+) create mode 100644 ports/delaunator-cpp/portfile.cmake create mode 100644 ports/delaunator-cpp/vcpkg.json create mode 100644 versions/d-/delaunator-cpp.json diff --git a/ports/delaunator-cpp/portfile.cmake b/ports/delaunator-cpp/portfile.cmake new file mode 100644 index 0000000000..257502a766 --- /dev/null +++ b/ports/delaunator-cpp/portfile.cmake @@ -0,0 +1,16 @@ +# header-only library +set(VCPKG_BUILD_TYPE release) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO abellgithub/delaunator-cpp + REF "v${VERSION}" + SHA512 14831b2b86e4a53b7da702d551d93ce555c639721bd5d84733c0bf994e71885d0af5963b8033e278dafa73f59996da4eee03fcd19e78206f0dbcf66077875d8b + HEAD_REF master +) + +file(COPY "${SOURCE_PATH}/include/delaunator-header-only.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include") +file(COPY "${SOURCE_PATH}/include/delaunator.cpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include") +file(COPY "${SOURCE_PATH}/include/delaunator.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/delaunator-cpp/vcpkg.json b/ports/delaunator-cpp/vcpkg.json new file mode 100644 index 0000000000..0933e50f5e --- /dev/null +++ b/ports/delaunator-cpp/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "delaunator-cpp", + "version": "1.0.0", + "description": "A really fast C++ library for Delaunay triangulation of 2D points", + "homepage": "https://github.com/abellgithub/delaunator-cpp", + "license": "MIT" +} diff --git a/versions/baseline.json b/versions/baseline.json index 5f66eaa85d..e9263ba849 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2268,6 +2268,10 @@ "baseline": "1.18", "port-version": 1 }, + "delaunator-cpp": { + "baseline": "1.0.0", + "port-version": 0 + }, "detours": { "baseline": "4.0.1", "port-version": 8 diff --git a/versions/d-/delaunator-cpp.json b/versions/d-/delaunator-cpp.json new file mode 100644 index 0000000000..5c89fdab3b --- /dev/null +++ b/versions/d-/delaunator-cpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "552dc211e01f1f3b890b08cbb802eb6aa167944a", + "version": "1.0.0", + "port-version": 0 + } + ] +}