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 + } + ] +}