From 338fe7effb1e63a191d846cc2232b883a0f585ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danny=20M=C3=B6sch?= Date: Sat, 14 Dec 2024 19:06:57 +0100 Subject: [PATCH] Add SWXMLHash 8.1.0 (#3416) --- modules/swxmlhash/8.1.0/MODULE.bazel | 8 ++++++++ modules/swxmlhash/8.1.0/patches/add_build_file.patch | 11 +++++++++++ .../swxmlhash/8.1.0/patches/module_dot_bazel.patch | 11 +++++++++++ modules/swxmlhash/8.1.0/presubmit.yml | 9 +++++++++ modules/swxmlhash/8.1.0/source.json | 10 ++++++++++ modules/swxmlhash/metadata.json | 3 ++- 6 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 modules/swxmlhash/8.1.0/MODULE.bazel create mode 100644 modules/swxmlhash/8.1.0/patches/add_build_file.patch create mode 100644 modules/swxmlhash/8.1.0/patches/module_dot_bazel.patch create mode 100644 modules/swxmlhash/8.1.0/presubmit.yml create mode 100644 modules/swxmlhash/8.1.0/source.json diff --git a/modules/swxmlhash/8.1.0/MODULE.bazel b/modules/swxmlhash/8.1.0/MODULE.bazel new file mode 100644 index 00000000000..6a51ebf0f3e --- /dev/null +++ b/modules/swxmlhash/8.1.0/MODULE.bazel @@ -0,0 +1,8 @@ +module( + name = "swxmlhash", + version = "8.1.0", + compatibility_level = 1, +) + +bazel_dep(name = "apple_support", version = "1.11.1") +bazel_dep(name = "rules_swift", version = "1.14.0", max_compatibility_level = 2) diff --git a/modules/swxmlhash/8.1.0/patches/add_build_file.patch b/modules/swxmlhash/8.1.0/patches/add_build_file.patch new file mode 100644 index 00000000000..230c214373f --- /dev/null +++ b/modules/swxmlhash/8.1.0/patches/add_build_file.patch @@ -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"], ++) diff --git a/modules/swxmlhash/8.1.0/patches/module_dot_bazel.patch b/modules/swxmlhash/8.1.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..a38711b9c6e --- /dev/null +++ b/modules/swxmlhash/8.1.0/patches/module_dot_bazel.patch @@ -0,0 +1,11 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,8 @@ ++module( ++ name = "swxmlhash", ++ version = "8.1.0", ++ compatibility_level = 1, ++) ++ ++bazel_dep(name = "apple_support", version = "1.11.1") ++bazel_dep(name = "rules_swift", version = "1.14.0", max_compatibility_level = 2) diff --git a/modules/swxmlhash/8.1.0/presubmit.yml b/modules/swxmlhash/8.1.0/presubmit.yml new file mode 100644 index 00000000000..9c0dbba1fd2 --- /dev/null +++ b/modules/swxmlhash/8.1.0/presubmit.yml @@ -0,0 +1,9 @@ +tasks: + verify_targets: + name: Verify build targets + bazel: 7.x + platform: macos + build_targets: + - '@swxmlhash//:SWXMLHash' + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/swxmlhash/8.1.0/source.json b/modules/swxmlhash/8.1.0/source.json new file mode 100644 index 00000000000..d13d0c31a2b --- /dev/null +++ b/modules/swxmlhash/8.1.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/drmohundro/SWXMLHash/archive/refs/tags/8.1.0.tar.gz", + "integrity": "sha256-f46/+nI5S2kELPcr5lS8wpuBUvmsMgpN/imptu/ieVY=", + "strip_prefix": "SWXMLHash-8.1.0", + "patches": { + "add_build_file.patch": "sha256-5pHn+5q51/aanOaesI4fs+wcihKIsTPALKb9wUfJJxA=", + "module_dot_bazel.patch": "sha256-MiYpu9pkiiR+14FCj9LM9dso4kwoDeySW4IibV9F2Aw=" + }, + "patch_strip": 0 +} diff --git a/modules/swxmlhash/metadata.json b/modules/swxmlhash/metadata.json index 7763ca46657..9f12439dce6 100644 --- a/modules/swxmlhash/metadata.json +++ b/modules/swxmlhash/metadata.json @@ -18,7 +18,8 @@ "versions": [ "7.0.1", "7.0.2", - "7.0.2.1" + "7.0.2.1", + "8.1.0" ], "yanked_versions": {} }