Skip to content

Commit

Permalink
Add swxmlhash 7.0.2.1 for rules_swift 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
luispadron committed Jul 10, 2024
1 parent f4fe4ff commit 0e626a0
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/swxmlhash/7.0.2.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "swxmlhash",
version = "7.0.2.1",
compatibility_level = 1,
)

bazel_dep(name = "rules_swift", version = "1.8.0", max_compatibility_level = 2)
11 changes: 11 additions & 0 deletions modules/swxmlhash/7.0.2.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,8 @@
+load("@rules_swift//swift:swift.bzl", "swift_library")
+
+swift_library(
+ name = "SWXMLHash",
+ srcs = glob(["Source/**/*.swift"]),
+ module_name = "SWXMLHash",
+ visibility = ["//visibility:public"],
+)
10 changes: 10 additions & 0 deletions modules/swxmlhash/7.0.2.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,7 @@
+module(
+ name = "swxmlhash",
+ version = "7.0.2.1",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "rules_swift", version = "1.8.0", max_compatibility_level = 2)
9 changes: 9 additions & 0 deletions modules/swxmlhash/7.0.2.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
verify_targets:
name: Verify build targets
bazel: 5.x
platform: macos
build_targets:
- '@swxmlhash//:SWXMLHash'
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
10 changes: 10 additions & 0 deletions modules/swxmlhash/7.0.2.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/drmohundro/SWXMLHash/archive/refs/tags/7.0.2.tar.gz",
"integrity": "sha256-19YA8GLWhAsDf8H7KsOvznocQ65DDXjiLXvW+OAs/J0=",
"strip_prefix": "SWXMLHash-7.0.2",
"patches": {
"add_build_file.patch": "sha256-5pHn+5q51/aanOaesI4fs+wcihKIsTPALKb9wUfJJxA=",
"module_dot_bazel.patch": "sha256-aMu2YWQnDirnZXh3UrHmgtXjAM1bPYOUl5hRLdVsuGU="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/swxmlhash/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"versions": [
"7.0.1",
"7.0.2"
"7.0.2",
"7.0.2.1"
],
"yanked_versions": {}
}

0 comments on commit 0e626a0

Please sign in to comment.