Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Needed by [email protected].

Signed-off-by: Brentley Jones <[email protected]>
  • Loading branch information
brentleyjones committed Jun 25, 2024
1 parent 951e621 commit d40f493
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 1 deletion.
12 changes: 12 additions & 0 deletions modules/swift_argument_parser/1.3.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module(
name = "swift_argument_parser",
version = "1.3.2",
compatibility_level = 1,
)

bazel_dep(name = "apple_support", version = "1.11.1", repo_name = "build_bazel_apple_support")
bazel_dep(
name = "rules_swift",
version = "1.16.0",
max_compatibility_level = 2,
)
20 changes: 20 additions & 0 deletions modules/swift_argument_parser/1.3.2/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,17 @@
+load("@rules_swift//swift:swift.bzl", "swift_library")
+
+swift_library(
+ name = "ArgumentParserToolInfo",
+ srcs = glob(["Sources/ArgumentParserToolInfo/**/*.swift"]),
+ module_name = "ArgumentParserToolInfo",
+)
+
+swift_library(
+ name = "ArgumentParser",
+ srcs = glob(["Sources/ArgumentParser/**/*.swift"]),
+ module_name = "ArgumentParser",
+ visibility = ["//visibility:public"],
+ deps = [
+ ":ArgumentParserToolInfo",
+ ],
+)
15 changes: 15 additions & 0 deletions modules/swift_argument_parser/1.3.2/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- /dev/null
+++ MODULE.bazel
@@ -0,0 +1,8 @@
+module(
+ name = "swift_argument_parser",
+ version = "1.3.2",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "apple_support", version = "1.11.1", repo_name = "build_bazel_apple_support")
+bazel_dep(
+ name = "rules_swift",
+ version = "1.16.0",
+ max_compatibility_level = 2,
+)
10 changes: 10 additions & 0 deletions modules/swift_argument_parser/1.3.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
tasks:
verify_targets:
name: Verify build targets
platform: macos
bazel: 7.x
build_targets:
- '@swift_argument_parser//:ArgumentParser'
build_flags:
- --macos_minimum_os=12.0
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
10 changes: 10 additions & 0 deletions modules/swift_argument_parser/1.3.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/apple/swift-argument-parser/archive/refs/tags/1.3.1.tar.gz",
"integrity": "sha256-TZZPh0slGrwoDuKPDxh948E6YSKpVhUk9moQdoyi2Dc=",
"strip_prefix": "swift-argument-parser-1.3.1",
"patches": {
"add_build_file.patch": "sha256-HAgMs4nrp0xoaNjEud7N2ElL7mQ5zvAmuHyvESQF86E=",
"module_dot_bazel.patch": "sha256-t+kbqmRvpe01P0r0AZx5uTaER3p+1NPiDS2Li2tgfPA="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/swift_argument_parser/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"versions": [
"1.2.1",
"1.3.0",
"1.3.1"
"1.3.1",
"1.3.2"
],
"yanked_versions": {}
}

0 comments on commit d40f493

Please sign in to comment.