[cargs] Add new port (#23564)

* add port cargs v1.0.2

* added version information

* updated version to v1.0.3

* update version

* fixed package version number

* fixed SHA for version 1.0.3

Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
likle 2022-03-17 01:53:04 +01:00 committed by GitHub
parent 909334f5a3
commit 71d274d7ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO likle/cargs
REF v1.0.3
SHA512 4f82f6857af6ae7bd1263f4c812a770fa3c3f94c84d5a0ba6256289a3d3084cd35b3aca6769241451d2acd57577ccc6638327b5bb70328800e9c3c4f5054f7de
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DENABLE_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cargs)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

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

@ -0,0 +1,16 @@
{
"name": "cargs",
"version": "1.0.3",
"description": "A lightweight cross-platform getopt alternative that works on Linux, Windows and macOS. Command line argument parser library for C/C++. Can be used to parse argv and argc parameters.",
"homepage": "https://likle.github.io/cargs/",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1240,6 +1240,10 @@
"baseline": "4.0.2",
"port-version": 3
},
"cargs": {
"baseline": "1.0.3",
"port-version": 0
},
"cartographer": {
"baseline": "1.0.0",
"port-version": 5

9
versions/c-/cargs.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "afa520193b882259b02bd2f8646982d340374d2d",
"version": "1.0.3",
"port-version": 0
}
]
}