Skip to content

Commit 0aaea71

Browse files
lucocozztalregev
authored andcommitted
[argus] New port at version 0.1.0 (microsoft#46296)
1 parent fa4fdb4 commit 0aaea71

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

ports/argus/portfile.cmake

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
2+
REPO lucocozz/Argus
3+
REF "v${VERSION}"
4+
SHA512 8464448d0aa664c8bf9f6992ee31db6827fd7b94c376446f4abe4ba8ff05ed85e86efc40fc9e9cbfb469a8fec5efaf2f8cb20cd28402a2091a614b157a63cf0b
5+
HEAD_REF main
6+
)
7+
8+
set(OPTIONS "")
9+
if(NOT "regex" IN_LIST FEATURES)
10+
list(APPEND OPTIONS -Dregex=false)
11+
endif()
12+
vcpkg_configure_meson(
13+
SOURCE_PATH "${SOURCE_PATH}"
14+
OPTIONS
15+
${OPTIONS}
16+
-Dbenchmarks=false
17+
-Dexamples=false
18+
-Dtests=false
19+
)
20+
21+
vcpkg_install_meson()
22+
vcpkg_fixup_pkgconfig()
23+
24+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
25+
26+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

ports/argus/vcpkg.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "argus",
3+
"version": "0.1.0",
4+
"description": "Argus is a cross-platform modern feature-rich command-line argument parser for C",
5+
"homepage": "https://github.com/lucocozz/argus",
6+
"license": "MIT",
7+
"supports": "!(windows & static) & !(windows & x86)",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-tool-meson",
11+
"host": true
12+
}
13+
],
14+
"features": {
15+
"regex": {
16+
"description": "Enable regex validation support using PCRE2",
17+
"dependencies": [
18+
"pcre2"
19+
]
20+
}
21+
}
22+
}

versions/a-/argus.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "abb6b37bc3ad957fae11e7dabb205928dcf14f2f",
5+
"version": "0.1.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@
240240
"baseline": "0.3.2",
241241
"port-version": 0
242242
},
243+
"argus": {
244+
"baseline": "0.1.0",
245+
"port-version": 0
246+
},
243247
"aricpp": {
244248
"baseline": "1.2.1",
245249
"port-version": 0

0 commit comments

Comments
 (0)