diff --git a/ports/geo-utils/portfile.cmake b/ports/geo-utils/portfile.cmake new file mode 100644 index 00000000000000..abafd3a2492343 --- /dev/null +++ b/ports/geo-utils/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO gistrec/geo-utils + REF "v${VERSION}" + SHA512 9955a991c52634ff9c98b69ed2e7b55eb15e8ece0eff059a0dd8173c3e4e2b51044ea637365722a532de62309aa68109abda1aa1018561d3596944b8cf760ede + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DGEO_UTILS_BUILD_TESTS=OFF + -DGEO_UTILS_BUILD_EXAMPLES=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/GeoUtils PACKAGE_NAME GeoUtils) + +# Header-only — no compiled artifacts to keep +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" + "${CURRENT_PACKAGES_DIR}/lib" +) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/geo-utils/vcpkg.json b/ports/geo-utils/vcpkg.json new file mode 100644 index 00000000000000..78a5572e91d5fc --- /dev/null +++ b/ports/geo-utils/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "geo-utils", + "version": "1.0.0", + "description": "Header-only C++17 library for spherical (lat/lng) geometry: distance, bearing, area, point-in-polygon", + "homepage": "https://github.com/gistrec/geo-utils", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 8392a75967e3e0..36624f112d31c3 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3320,6 +3320,10 @@ "baseline": "2019-07-10", "port-version": 3 }, + "geo-utils": { + "baseline": "1.0.0", + "port-version": 0 + }, "geogram": { "baseline": "1.9.3", "port-version": 0 diff --git a/versions/g-/geo-utils.json b/versions/g-/geo-utils.json new file mode 100644 index 00000000000000..e5db15b0bdeeb3 --- /dev/null +++ b/versions/g-/geo-utils.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "41701e9e67f022c7009af3c07fcc8c9b32edf514", + "version": "1.0.0", + "port-version": 0 + } + ] +}