[arg-router] Add new port (#29219)

* [arg-router] Add new port

https://github.com/cmannett85/arg_router

* [arg-router] Use VERSION CMake var

* [arg_router] Do not copy README and LICENSE to share dir

* Add quotes.

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Cam Mannett 2023-02-03 22:47:16 +00:00 committed by GitHub
parent 74b1c16630
commit a67ba7075c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,31 @@
set(ARCHIVE_NAME "arg_router-${VERSION}.zip")
vcpkg_download_distfile(
ARCHIVE
URLS "https://github.com/cmannett85/arg_router/releases/download/v${VERSION}/${ARCHIVE_NAME}"
FILENAME "${ARCHIVE_NAME}"
SHA512 9cb75dafbdcbc02c774d5dcf17af126b7b1fc032b10cc0a2b5075897fbb80cdb0b84b631d265295210c3a7bdae682065f417d8ca70937118de97f14ed46bd31b
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
)
file(
COPY "${SOURCE_PATH}/include/arg_router/arg_router-config.cmake"
"${SOURCE_PATH}/include/arg_router/arg_router-config-version.cmake"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/arg_router"
)
file(
COPY "${SOURCE_PATH}/include"
DESTINATION "${CURRENT_PACKAGES_DIR}"
)
file(
COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
)
vcpkg_install_copyright(
FILE_LIST "${SOURCE_PATH}/include/arg_router/LICENSE"
)

8
ports/arg-router/usage Normal file
View File

@ -0,0 +1,8 @@
The package arg-router is a header-only library and so is typically used like this:
find_package(arg_router REQUIRED)
include_directories(SYSTEM "${arg_router_INCLUDE_DIRS}")
For more information, see the docs here:
https://github.com/cmannett85/arg_router

View File

@ -0,0 +1,14 @@
{
"name": "arg-router",
"version": "1.1.0",
"description": "C++ command line argument parsing and routing.",
"homepage": "https://github.com/cmannett85/arg_router",
"documentation": "https://cmannett85.github.io/arg_router/",
"license": "BSL-1.0",
"dependencies": [
"boost-lexical-cast",
"boost-mp11",
"boost-preprocessor",
"span-lite"
]
}

View File

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

View File

@ -156,6 +156,10 @@
"baseline": "4.10.0",
"port-version": 2
},
"arg-router": {
"baseline": "1.1.0",
"port-version": 0
},
"argagg": {
"baseline": "0.4.6",
"port-version": 1