Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[arg-router] Bump to 1.1.1 #29604

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 28 additions & 22 deletions ports/arg-router/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
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_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cmannett85/arg_router
REF v${VERSION}
HEAD_REF main
SHA512 2951a54b4fb13abd10d4de3711d4d92f180e582c21e9a0d3599cb327e799727e826ea87aecd0fd7a6203585eac5a934afe25f98488ef6b36c12be97450ab8020
)

vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
set(VCPKG_BUILD_TYPE release) # header-only port
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DINSTALLATION_ONLY=ON
)

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"
vcpkg_cmake_install()
vcpkg_install_copyright(
FILE_LIST "${SOURCE_PATH}/LICENSE"
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
)
file(
COPY "${SOURCE_PATH}/include"
DESTINATION "${CURRENT_PACKAGES_DIR}"

file(COPY "${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config.cmake"
"${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config-version.cmake"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/arg_router"
)
file(
COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
vcpkg_cmake_config_fixup(
PACKAGE_NAME arg_router
)

vcpkg_install_copyright(
FILE_LIST "${SOURCE_PATH}/include/arg_router/LICENSE"
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config.cmake"
"${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config-version.cmake"
"${CURRENT_PACKAGES_DIR}/include/arg_router/LICENSE"
"${CURRENT_PACKAGES_DIR}/include/arg_router/README.md"
)

12 changes: 10 additions & 2 deletions ports/arg-router/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arg-router",
"version": "1.1.0",
"version": "1.1.1",
"description": "C++ command line argument parsing and routing.",
"homepage": "https://github.com/cmannett85/arg_router",
"documentation": "https://cmannett85.github.io/arg_router/",
Expand All @@ -9,6 +9,14 @@
"boost-lexical-cast",
"boost-mp11",
"boost-preprocessor",
"span-lite"
"span-lite",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
5 changes: 5 additions & 0 deletions versions/a-/arg-router.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3a12ba85bd70de2d9fdd55ecff2ee394d0ed1b79",
"version": "1.1.1",
"port-version": 0
},
{
"git-tree": "d6f21738ed53af9693376f8e659485875117f8f5",
"version": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"port-version": 2
},
"arg-router": {
"baseline": "1.1.0",
"baseline": "1.1.1",
"port-version": 0
},
"argagg": {
Expand Down