diff --git a/ports/argh/portfile.cmake b/ports/argh/portfile.cmake index 1765677670..25df241ce7 100644 --- a/ports/argh/portfile.cmake +++ b/ports/argh/portfile.cmake @@ -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") diff --git a/ports/argh/vcpkg.json b/ports/argh/vcpkg.json index 2329517f07..5dea74d068 100644 --- a/ports/argh/vcpkg.json +++ b/ports/argh/vcpkg.json @@ -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", diff --git a/versions/a-/argh.json b/versions/a-/argh.json index 0eea925595..19aeadceef 100644 --- a/versions/a-/argh.json +++ b/versions/a-/argh.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "b78bb1481da9a23d979d9d5a6f1652f3097a53da", + "version": "1.3.2", + "port-version": 1 + }, { "git-tree": "2ee3072431f9d1aa18b5810e61398b9373fdc0d7", "version": "1.3.2", diff --git a/versions/baseline.json b/versions/baseline.json index 5b12e4ca42..c254b66b2e 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -198,7 +198,7 @@ }, "argh": { "baseline": "1.3.2", - "port-version": 0 + "port-version": 1 }, "argon2": { "baseline": "20190702",