Skip to content

Commit

Permalink
Add CLI11@2.4.2. (bazelbuild#2125)
Browse files Browse the repository at this point in the history
CLI11 is a command line parser for C++11 and beyond that provides a rich
feature set with a simple and intuitive interface.

This library already supports the Bazel build system along with bazelmod
(see CLIUtils/CLI11#1033).
  • Loading branch information
sudhanvas authored and zaucy committed Jun 14, 2024
1 parent a30f45d commit 32767f8
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/cli11/2.4.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "cli11",
version = "2.4.2",
compatibility_level = 2,
)

bazel_dep(name = "catch2", version = "3.5.4", dev_dependency = True)
11 changes: 11 additions & 0 deletions modules/cli11/2.4.2/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -1,3 +1,7 @@
-module(name = "cli11")
+module(
+ name = "cli11",
+ version = "2.4.2",
+ compatibility_level = 2,
+)

bazel_dep(name = "catch2", version = "3.5.4", dev_dependency = True)
17 changes: 17 additions & 0 deletions modules/cli11/2.4.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@cli11'
9 changes: 9 additions & 0 deletions modules/cli11/2.4.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"url": "https://github.com/CLIUtils/CLI11/archive/refs/tags/v2.4.2.tar.gz",
"integrity": "sha256-8tiTplw7EyTFDU5oLAzcAh3QR3riwEhUTznu1mVLaZo=",
"strip_prefix": "CLI11-2.4.2",
"patches": {
"module_dot_bazel.patch": "sha256-6WVKWVBk/EPGU6TOij0sPuc5XO11v25/EM/JqopjuUs="
},
"patch_strip": 0
}
16 changes: 16 additions & 0 deletions modules/cli11/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/CLIUtils/CLI11",
"maintainers": [
{
"email": "bcr-maintainers@bazel.build",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:CLIUtils/CLI11"
],
"versions": [
"2.4.2"
],
"yanked_versions": {}
}

0 comments on commit 32767f8

Please sign in to comment.