[libmodman] no absolute paths (#22357)

This commit is contained in:
autoantwort 2022-01-06 05:21:40 +01:00 committed by GitHub
parent e15bfe6867
commit 17c788531c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 14 deletions

View File

@ -1,5 +1,3 @@
vcpkg_fail_port_install(ON_TARGET "UWP")
# Enable static build in UNIX # Enable static build in UNIX
if (VCPKG_TARGET_IS_WINDOWS) if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
@ -25,19 +23,20 @@ vcpkg_extract_source_archive_ex(
fix-undefined-typeid.patch fix-undefined-typeid.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS} OPTIONS ${FEATURE_OPTIONS}
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/libmodman) vcpkg_cmake_config_fixup(CONFIG_PATH share/libmodman)
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
${CMAKE_CURRENT_LIST_DIR}/usage "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,9 +1,20 @@
{ {
"name": "libmodman", "name": "libmodman",
"version-string": "2.0.1", "version-string": "2.0.1",
"port-version": 3, "port-version": 4,
"description": "a simple library for managing modules", "description": "a simple library for managing modules",
"homepage": "https://code.google.com/p/libmodman", "homepage": "https://code.google.com/p/libmodman",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": { "features": {
"tests": { "tests": {
"description": "Build libmodman tests", "description": "Build libmodman tests",

View File

@ -3678,7 +3678,7 @@
}, },
"libmodman": { "libmodman": {
"baseline": "2.0.1", "baseline": "2.0.1",
"port-version": 3 "port-version": 4
}, },
"libmodplug": { "libmodplug": {
"baseline": "0.8.9.0", "baseline": "0.8.9.0",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "64d71ad6052dd0027325c7e9390ad4264dbef108",
"version-string": "2.0.1",
"port-version": 4
},
{ {
"git-tree": "202e2ccfbf309183f222f9c849f92452bd8f3b48", "git-tree": "202e2ccfbf309183f222f9c849f92452bd8f3b48",
"version-string": "2.0.1", "version-string": "2.0.1",