[argh] Fix cmake config fixup (#37334)

This commit is contained in:
Thomas1664 2024-03-12 04:35:56 +01:00 committed by GitHub
parent dbb323c091
commit f521d755a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 10 deletions

View File

@ -3,11 +3,13 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO adishavit/argh
REF v1.3.2
REF "v${VERSION}"
SHA512 66073718ef1fc31fbd0feb9daf366a2e28c759de44fb1882dc46a6d10f7a44635ae1155882dff916f55c51fad88bedebdfe361418f7669fac241feead68f2b5b
HEAD_REF master
)
set(VCPKG_BUILD_TYPE release)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
@ -17,14 +19,12 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
if(EXISTS "${CURRENT_PACKAGES_DIR}/CMake")
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
set(CONFIG_PATH lib/cmake/argh)
if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
set(CONFIG_PATH cmake)
endif()
vcpkg_cmake_config_fixup(CONFIG_PATH "${CONFIG_PATH}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,6 +1,7 @@
{
"name": "argh",
"version": "1.3.2",
"port-version": 1,
"description": "Argh! A minimalist argument handler.",
"homepage": "https://github.com/adishavit/argh",
"license": "BSD-3-Clause",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b78bb1481da9a23d979d9d5a6f1652f3097a53da",
"version": "1.3.2",
"port-version": 1
},
{
"git-tree": "2ee3072431f9d1aa18b5810e61398b9373fdc0d7",
"version": "1.3.2",

View File

@ -198,7 +198,7 @@
},
"argh": {
"baseline": "1.3.2",
"port-version": 0
"port-version": 1
},
"argon2": {
"baseline": "20190702",