Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions ports/geo-utils/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should set VCPKG_BUILD_TYPE to release to avoid needing this part.

"${CURRENT_PACKAGES_DIR}/lib"
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quoth GPT 5.4:

License / Installed Content Findings

  • Finding: upstream attribution appears incomplete in the installed package metadata
    • Declared license: Apache-2.0
    • Observed installed content: packages\geo-utils_x64-windows\include\geo\detail\math.hpp, include\geo\latlng.hpp, include\geo\poly.hpp, include\geo\spherical.hpp
    • Evidence: those headers state Portions of this file are based on Google Maps Android Utils and name Copyright 2013 Google Inc.; upstream also ships a NOTICE file with that attribution:
      • buildtrees\geo-utils\src\v1.0.0-d48bd1e966.clean\include\geo\detail\math.hpp:1-12
      • buildtrees\geo-utils\src\v1.0.0-d48bd1e966.clean\NOTICE:1-5
    • Assessment: the SPDX license field Apache-2.0 still looks compatible, but the installed share\geo-utils\copyright contains only the Apache license text and does not carry the upstream NOTICE attribution. Since upstream includes a NOTICE file and the installed headers explicitly identify derived Google code, this should be preserved in the package copyright material.

17 changes: 17 additions & 0 deletions ports/geo-utils/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions versions/g-/geo-utils.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "41701e9e67f022c7009af3c07fcc8c9b32edf514",
"version": "1.0.0",
"port-version": 0
}
]
}