Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch authored Dec 12, 2024
1 parent 4ec28dd commit 4b3a768
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.5.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module(
name = "swift_argument_parser",
version = "1.5.0",
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.5.0/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.5.0/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,12 @@
+module(
+ name = "swift_argument_parser",
+ version = "1.5.0",
+ 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.5.0/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.5.0/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.5.0.tar.gz",
"integrity": "sha256-lGpM973S5PD4uChkxWMyI4uj8KkpxtGhX1Wv/bEGNOY=",
"strip_prefix": "swift-argument-parser-1.5.0",
"patches": {
"add_build_file.patch": "sha256-HAgMs4nrp0xoaNjEud7N2ElL7mQ5zvAmuHyvESQF86E=",
"module_dot_bazel.patch": "sha256-0hjIIdtG3FyxiZBGov8xX3d7j+S6mcO73GraG3NLkS4="
},
"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 @@ -19,7 +19,8 @@
"1.2.1",
"1.3.0",
"1.3.1",
"1.3.1.1"
"1.3.1.1",
"1.5.0"
],
"yanked_versions": {}
}

0 comments on commit 4b3a768

Please sign in to comment.