diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/argus | |
Diffstat (limited to 'vcpkg/ports/argus')
| -rw-r--r-- | vcpkg/ports/argus/portfile.cmake | 26 | ||||
| -rw-r--r-- | vcpkg/ports/argus/vcpkg.json | 22 |
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/argus/portfile.cmake b/vcpkg/ports/argus/portfile.cmake new file mode 100644 index 0000000..d685e85 --- /dev/null +++ b/vcpkg/ports/argus/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH + REPO lucocozz/Argus + REF "v${VERSION}" + SHA512 36b68a3f45722bdf1aff91e20661032e01cc37d38760a44133a8302869bce2fed9aa3dcb98bb8db7a1e09d5df5cf63f444182265ced49a4cb781f8adff9cb3f5 + 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/vcpkg/ports/argus/vcpkg.json b/vcpkg/ports/argus/vcpkg.json new file mode 100644 index 0000000..08c8d3e --- /dev/null +++ b/vcpkg/ports/argus/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "argus", + "version": "0.2.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" + ] + } + } +} |