mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 06:08:59 +08:00
[geotrans] no absolute paths (#28177)
This commit is contained in:
parent
bbf89017a8
commit
3414a890d4
@ -8,30 +8,29 @@ vcpkg_download_distfile(ARCHIVE
|
||||
SHA512 359704ee9700762111006d126872feab9f644af0cebd433a657473347ea48f4eb172681f5f564fbca171bbf58fe0e8fb0829597403958770b7d22ad380afeac3
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
vcpkg_extract_source_archive(
|
||||
SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_LIST_DIR}/geotrans-config.in.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/${PORT}/geotrans-config.cmake
|
||||
"${CMAKE_CURRENT_LIST_DIR}/geotrans-config.in.cmake"
|
||||
"${CURRENT_PACKAGES_DIR}/share/${PORT}/geotrans-config.cmake"
|
||||
@ONLY
|
||||
)
|
||||
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT} @ONLY)
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}" @ONLY)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/GEOTRANS3/docs/MSP_Geotrans_Terms_Of_Use.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/GEOTRANS3/docs/MSP_Geotrans_Terms_Of_Use.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
# Install the geo model data
|
||||
file(COPY ${SOURCE_PATH}/data DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(COPY "${SOURCE_PATH}/data" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
@ -7,5 +7,5 @@ The package geotrans provides CMake targets:
|
||||
The geotrans library depends on being able to read it's model data so you'll need to
|
||||
set an environment variable to let geotrans know where the models are installed:
|
||||
|
||||
export MSPCCS_DATA=@CURRENT_INSTALLED_DIR@/share/@PORT@/data
|
||||
export MSPCCS_DATA=<path_to_vcpkg_installed>/share/@PORT@/data
|
||||
|
||||
|
@ -1,8 +1,15 @@
|
||||
{
|
||||
"name": "geotrans",
|
||||
"version": "3.8",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "GEOTRANS is an application that allows you to convert geographic coordinates among a wide variety of coordinate systems, map projections, grids, and datums. GEOTRANS runs in Microsoft Windows and LINUX environments.",
|
||||
"homepage": "https://earth-info.nga.mil/GandG/update/index.php?action=home",
|
||||
"supports": "!uwp"
|
||||
"license": null,
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -2582,7 +2582,7 @@
|
||||
},
|
||||
"geotrans": {
|
||||
"baseline": "3.8",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"getdns": {
|
||||
"baseline": "1.7.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ed816520f117cff22add4e76969c0769f9655d43",
|
||||
"version": "3.8",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "f9b1a18f0cadf69936ab62911f4d86fdb565c693",
|
||||
"version": "3.8",
|
||||
|
Loading…
Reference in New Issue
Block a user