Skip to content

Commit 1b0180d

Browse files
committed
[argus] New port at version 0.1.0
1 parent 9e8416f commit 1b0180d

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

ports/argus/portfile.cmake

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
vcpkg_download_distfile(ARCHIVE
2+
URLS "https://github.com/lucocozz/Argus/releases/download/v${VERSION}/argus-${VERSION}-source.tar.gz"
3+
FILENAME "argus-${VERSION}-source.tar.gz"
4+
SHA512 cdb6f96ac0c80d9aaa9d1e1c3161549d4fd324ac755aa61f83070665f6cba9389e6f28791c41c9d0fce2f7c4bf7f2674e65b165cac648efac7fa502d312fa2da
5+
)
6+
7+
vcpkg_extract_source_archive_ex(
8+
OUT_SOURCE_PATH SOURCE_PATH
9+
ARCHIVE ${ARCHIVE}
10+
)
11+
12+
set(OPTIONS "")
13+
if(NOT "regex" IN_LIST FEATURES)
14+
list(APPEND OPTIONS -Dregex=false)
15+
endif()
16+
vcpkg_configure_meson(
17+
SOURCE_PATH "${SOURCE_PATH}"
18+
OPTIONS
19+
${OPTIONS}
20+
-Dbenchmarks=false
21+
-Dexamples=false
22+
-Dtests=false
23+
)
24+
25+
vcpkg_install_meson()
26+
vcpkg_fixup_pkgconfig()
27+
28+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
29+
30+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

ports/argus/vcpkg.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
"default-features": [
15+
"regex"
16+
],
17+
"features": {
18+
"regex": {
19+
"description": "Enable regex validation support using PCRE2",
20+
"dependencies": [
21+
"pcre2"
22+
]
23+
}
24+
}
25+
}

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": "dc00e3fbf72792a7070819451416def2ac85ec5b",
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)