diff --git a/ports/argus/portfile.cmake b/ports/argus/portfile.cmake new file mode 100644 index 0000000000..e105ac4d49 --- /dev/null +++ b/ports/argus/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH + REPO lucocozz/Argus + REF "v${VERSION}" + SHA512 8464448d0aa664c8bf9f6992ee31db6827fd7b94c376446f4abe4ba8ff05ed85e86efc40fc9e9cbfb469a8fec5efaf2f8cb20cd28402a2091a614b157a63cf0b + HEAD_REF main +) + +set(OPTIONS "") +if(NOT "regex" IN_LIST FEATURES) + list(APPEND OPTIONS -Dregex=false) +endif() +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${OPTIONS} + -Dbenchmarks=false + -Dexamples=false + -Dtests=false +) + +vcpkg_install_meson() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/argus/vcpkg.json b/ports/argus/vcpkg.json new file mode 100644 index 0000000000..e651a9a772 --- /dev/null +++ b/ports/argus/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "argus", + "version": "0.1.0", + "description": "Argus is a cross-platform modern feature-rich command-line argument parser for C", + "homepage": "https://github.com/lucocozz/argus", + "license": "MIT", + "supports": "!(windows & static) & !(windows & x86)", + "dependencies": [ + { + "name": "vcpkg-tool-meson", + "host": true + } + ], + "features": { + "regex": { + "description": "Enable regex validation support using PCRE2", + "dependencies": [ + "pcre2" + ] + } + } +} diff --git a/versions/a-/argus.json b/versions/a-/argus.json new file mode 100644 index 0000000000..c106aaca54 --- /dev/null +++ b/versions/a-/argus.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "abb6b37bc3ad957fae11e7dabb205928dcf14f2f", + "version": "0.1.0", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index c74bd426dc..1cee880ba1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -240,6 +240,10 @@ "baseline": "0.3.2", "port-version": 0 }, + "argus": { + "baseline": "0.1.0", + "port-version": 0 + }, "aricpp": { "baseline": "1.2.1", "port-version": 0