[gauche] New port

This commit is contained in:
Dennis Luxen 2026-09-01 21:01:12 +02:00
parent 30ef65cad9
commit a397b384eb
5 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# The library exports no symbols explicitly, so a shared build would produce an
# import library with nothing in it on Windows.
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Project-OSRM/gauche-rs
REF "v${VERSION}"
SHA512 eefae5bed6bfab30af646f182eaebafbf9120e4cd4ad0bb9b50c36bbcb5760c2378d28f468494e7acbc89a304edb64e39af96c3de7239d3a3f810411443cbce3
HEAD_REF main
)
# The CMake project lives in cpp/ but compiles the transpiled C sources from the
# sibling c/ directory, so the whole repository has to be extracted.
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/cpp"
OPTIONS
-DGAUCHE_BUILD_EXAMPLES=OFF
-DGAUCHE_ENABLE_LTO=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gauche)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# The library embeds w2c2's header-only runtime, which is separately licensed.
vcpkg_install_copyright(FILE_LIST
"${SOURCE_PATH}/LICENSE"
"${SOURCE_PATH}/c/w2c2/LICENSE"
)
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

4
ports/gauche/usage Normal file
View File

@ -0,0 +1,4 @@
gauche provides CMake targets:
find_package(gauche CONFIG REQUIRED)
target_link_libraries(main PRIVATE gauche::gauche_cpp)

18
ports/gauche/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "gauche",
"version": "0.1.0",
"description": "Left-hand traffic area classifier for point, line, and bbox queries over OSM driving-side data",
"homepage": "https://github.com/Project-OSRM/gauche-rs",
"license": "BSD-2-Clause AND MIT",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -3348,6 +3348,10 @@
"baseline": "2018-01-04",
"port-version": 4
},
"gauche": {
"baseline": "0.1.0",
"port-version": 0
},
"gaussianlib": {
"baseline": "2024-11-03",
"port-version": 0

9
versions/g-/gauche.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f0a562df5a14132b336fe2ddca648c6b84d842d6",
"version": "0.1.0",
"port-version": 0
}
]
}