aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Correia <marco.v.correia@gmail.com>2021-09-24 01:43:43 +0100
committerGitHub <noreply@github.com>2021-09-23 17:43:43 -0700
commitc00ce5ca23660d96fd860c6f58516c1cacc5b98c (patch)
treeab07f50c191b712c88d16a70dfecd7e1155adf15
parent5b61ee0226922713d77313b5ee5d9467c25da3bd (diff)
downloadvcpkg-c00ce5ca23660d96fd860c6f58516c1cacc5b98c.tar.gz
vcpkg-c00ce5ca23660d96fd860c6f58516c1cacc5b98c.zip
[argparse] Bumps argparse to version v2.2. (#20261)
* Bumps argparse to version v2.2. * Adds version. * Replaced deprecated functions. * Update ports/argparse/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Update ports/argparse/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Updates version. * Updates version. * Update ports/argparse/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update ports/argparse/vcpkg.json Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Updates version. Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
-rw-r--r--ports/argparse/portfile.cmake15
-rw-r--r--ports/argparse/vcpkg.json14
-rw-r--r--versions/a-/argparse.json5
-rw-r--r--versions/baseline.json2
4 files changed, 25 insertions, 11 deletions
diff --git a/ports/argparse/portfile.cmake b/ports/argparse/portfile.cmake
index a313a920e..82142c63e 100644
--- a/ports/argparse/portfile.cmake
+++ b/ports/argparse/portfile.cmake
@@ -3,23 +3,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO p-ranav/argparse
- REF 9903a22904fed8176c4a1f69c4b691304b23c78e #2021-03-04
- SHA512 da50761471341d558ed0c336bf78f80a704ec25c15ace23fb3a92d81ddbf2e4c2fd4f6c4226f088382f41418d58d5ef9b57cdd6e9689be5d83dba6adb2ac0aba
+ REF b0cb28ab177cdbd19d439c02cdc217bdfc508ba9 # v2.2
+ SHA512 247f27aa45994ee4629b947e3fe1b1df8fae4e773992c740a7c3d544e45ce83a68ecdcfdedf38c461ccb81cf93d88dfee21dc4f7d027677a3c7d930170446971
HEAD_REF master
)
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DARGPARSE_BUILD_TESTS=OFF
)
-vcpkg_install_cmake()
+vcpkg_cmake_install()
-vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
diff --git a/ports/argparse/vcpkg.json b/ports/argparse/vcpkg.json
index 7e6be41e7..ca94bbc8b 100644
--- a/ports/argparse/vcpkg.json
+++ b/ports/argparse/vcpkg.json
@@ -1,7 +1,17 @@
{
"name": "argparse",
- "version-date": "2021-03-04",
+ "version": "2.2",
"description": "Argument parser for modern C++",
"homepage": "https://github.com/p-ranav/argparse",
- "license": "MIT"
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
}
diff --git a/versions/a-/argparse.json b/versions/a-/argparse.json
index 1ecb76e58..accdedbe5 100644
--- a/versions/a-/argparse.json
+++ b/versions/a-/argparse.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "928e03159c73294a2e6623d330ea1567190d753f",
+ "version": "2.2",
+ "port-version": 0
+ },
+ {
"git-tree": "b16b0a340e04d56e4a736b57eafa5fc352abfc58",
"version-date": "2021-03-04",
"port-version": 0
diff --git a/versions/baseline.json b/versions/baseline.json
index ca2756718..37cb6d6ff 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -133,7 +133,7 @@
"port-version": 3
},
"argparse": {
- "baseline": "2021-03-04",
+ "baseline": "2.2",
"port-version": 0
},
"args": {