From f7323677444d6c8dacaf5f7e854e3756143256cd Mon Sep 17 00:00:00 2001 From: Daniele Pallastrelli <5451767+daniele77@users.noreply.github.com> Date: Mon, 30 Aug 2021 19:25:27 +0200 Subject: [PATCH] [cli] update to v.2.0.0 (#19744) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [cli] Update the version to 1.1.1 * [cli] Update the version to 1.2.1 * [cli] Update the version to 1.2.1: fix PR requests * [aricpp] create a new port (#17162) * [cli] run the command: ./vcpkg x-add-version --all * [aricpp] change request for #18048 * Update ports/aricpp/portfile.cmake * [aricpp] change request for #18048 * Update ports/aricpp/vcpkg.json * Update ports/aricpp/vcpkg.json * Update versions/a-/aricpp.json * Update versions/a-/aricpp.json * [aricpp] port-version -> 0 * [cli] v. 2.0 * [cli] Update ports/cli/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/cli/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * [cli] bump port version * Update versions/c-/cli.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Daniele Pallastrelli Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> --- ports/cli/CONTROL | 5 ----- ports/cli/portfile.cmake | 19 ++++++++++--------- ports/cli/vcpkg.json | 17 +++++++++++++++++ versions/baseline.json | 2 +- versions/c-/cli.json | 5 +++++ 5 files changed, 33 insertions(+), 15 deletions(-) delete mode 100644 ports/cli/CONTROL create mode 100644 ports/cli/vcpkg.json diff --git a/ports/cli/CONTROL b/ports/cli/CONTROL deleted file mode 100644 index 8cda2750e5957e..00000000000000 --- a/ports/cli/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: cli -Version: 1.2.1 -Homepage: https://github.com/daniele77/cli -Description: A library for interactive command line interfaces in modern C++ -Build-Depends: boost-asio diff --git a/ports/cli/portfile.cmake b/ports/cli/portfile.cmake index 134c718293bff1..e8e1ffc7a4baef 100644 --- a/ports/cli/portfile.cmake +++ b/ports/cli/portfile.cmake @@ -1,18 +1,19 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO daniele77/cli - REF v1.2.1 - SHA512 fc834608ac2ca6c3f330711c80897cc581eb1ed8da7a0d56a07efe6650d871f5317c777a6a029fdc0177684f08479bd129cc0ce748354bac3dbe6af79a390d14 + REF v2.0.0 + SHA512 8a3e42d02f8bf757628fb876ccfa376771bbe66e7820d7fd5b34119fca262129f5122e67d939e0898b5964a162a8fd4538d5e6ffa96c4935a8c3979e5d5dbd9d HEAD_REF master ) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" ) -vcpkg_install_cmake() -vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cli) +vcpkg_cmake_install() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) -file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cli) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/cli/vcpkg.json b/ports/cli/vcpkg.json new file mode 100644 index 00000000000000..dc433aa91304e1 --- /dev/null +++ b/ports/cli/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "cli", + "version-semver": "2.0.0", + "description": "A library for interactive command line interfaces in modern C++", + "homepage": "https://github.com/daniele77/cli", + "dependencies": [ + "boost-asio", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 04d9783146efff..c1e4352cef4b56 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1301,7 +1301,7 @@ "port-version": 0 }, "cli": { - "baseline": "1.2.1", + "baseline": "2.0.0", "port-version": 0 }, "cli11": { diff --git a/versions/c-/cli.json b/versions/c-/cli.json index a2a1d8e0f52c8e..fa9ecd85596108 100644 --- a/versions/c-/cli.json +++ b/versions/c-/cli.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "52c57cc23f038ec2f73805b37f42639541036956", + "version-semver": "2.0.0", + "port-version": 0 + }, { "git-tree": "ae335f0cbfecdfb4f7d5448bf3e1fec0ae9aecb9", "version-string": "1.2.1",