diff --git a/ports/arg-router/portfile.cmake b/ports/arg-router/portfile.cmake new file mode 100644 index 0000000000..cca95378b9 --- /dev/null +++ b/ports/arg-router/portfile.cmake @@ -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" +) diff --git a/ports/arg-router/usage b/ports/arg-router/usage new file mode 100644 index 0000000000..55cafe670b --- /dev/null +++ b/ports/arg-router/usage @@ -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 diff --git a/ports/arg-router/vcpkg.json b/ports/arg-router/vcpkg.json new file mode 100644 index 0000000000..d9936962b8 --- /dev/null +++ b/ports/arg-router/vcpkg.json @@ -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" + ] +} diff --git a/versions/a-/arg-router.json b/versions/a-/arg-router.json new file mode 100644 index 0000000000..d075585993 --- /dev/null +++ b/versions/a-/arg-router.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "d6f21738ed53af9693376f8e659485875117f8f5", + "version": "1.1.0", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 49031709fd..0b52064a6b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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