[args] update to latest version (#16703)

* [args] update to latest version

* update version files

* correct version field

* update version file
This commit is contained in:
Ryan 2021-03-22 15:35:03 -07:00 committed by GitHub
parent c72fa13af2
commit 40027831fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 13 deletions

View File

@ -1,4 +0,0 @@
Source: args
Version: 2020-09-14
Homepage: https://github.com/Taywee/args
Description: A simple header-only C++ argument parser library.

View File

@ -2,25 +2,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Taywee/args
REF 84c7f36ee123aaea0dd6653204435e473f1b088e # accessed on 2020-09-14
SHA512 c2a2f6571ec7f3cd64e9a1a0346af48c989663663d55a351bb51cd82583dcca3a6ed9f5b7a2686ef490b78efeb36b944dd9a76af0aad83b3dc64d3672c770efb
REF ae22269df734a2b0957a9ab4e37be41f61866dbe
SHA512 fe44bc6b7b81013ce649e3fa33c3d9503747a3c9044b70cf9eaf8ff780f2feabdabc261a33d29042daec19a598e3d60e318d3d415cbffb5fdcd2aabdd2ef39db
HEAD_REF master
)
vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DARGS_BUILD_UNITTESTS=OFF
-DARGS_BUILD_EXAMPLE=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
# Put the licence file where vcpkg expects it
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/args)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/args/LICENSE ${CURRENT_PACKAGES_DIR}/share/args/copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)

16
ports/args/vcpkg.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "args",
"version-date": "2021-03-14",
"description": "A simple header-only C++ argument parser library.",
"homepage": "https://github.com/Taywee/args",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0b99979813c133a681aedcf4753689f023fbb98b",
"version-date": "2021-03-14",
"port-version": 0
},
{
"git-tree": "df53fcfe0380622c0ae4b19c66b3d78eddb32644",
"version-string": "2020-09-14",

View File

@ -121,7 +121,7 @@
"port-version": 0
},
"args": {
"baseline": "2020-09-14",
"baseline": "2021-03-14",
"port-version": 0
},
"argtable2": {