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

View File

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

View File

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

View File

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