From 69b7b1928fbd10640d699e22bd7d38e8eee5f5bd Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Tue, 9 Jul 2024 13:01:29 +0000 Subject: [PATCH 1/2] add module cppregpattern --- cppregpattern.20240709-125430.json | 24 +++++++++++++++ modules/cppregpattern/1.0.1/MODULE.bazel | 5 ++++ .../1.0.1/patches/add_build_file.patch | 29 +++++++++++++++++++ .../1.0.1/patches/module_dot_bazel.patch | 8 +++++ modules/cppregpattern/1.0.1/presubmit.yml | 17 +++++++++++ modules/cppregpattern/1.0.1/source.json | 10 +++++++ modules/cppregpattern/metadata.json | 17 +++++++++++ 7 files changed, 110 insertions(+) create mode 100644 cppregpattern.20240709-125430.json create mode 100644 modules/cppregpattern/1.0.1/MODULE.bazel create mode 100644 modules/cppregpattern/1.0.1/patches/add_build_file.patch create mode 100644 modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch create mode 100644 modules/cppregpattern/1.0.1/presubmit.yml create mode 100644 modules/cppregpattern/1.0.1/source.json create mode 100644 modules/cppregpattern/metadata.json diff --git a/cppregpattern.20240709-125430.json b/cppregpattern.20240709-125430.json new file mode 100644 index 00000000000..20455505873 --- /dev/null +++ b/cppregpattern.20240709-125430.json @@ -0,0 +1,24 @@ +{ + "build_file": null, + "build_targets": [ + "@cppregpattern:registry" + ], + "compatibility_level": "0", + "deps": [ + [ + "rules_license", + "0.0.8" + ] + ], + "module_dot_bazel": null, + "name": "cppregpattern", + "patch_strip": 0, + "patches": [], + "presubmit_yml": null, + "strip_prefix": "cppregpattern-17342e50c8248c750e8d35ca93d9f072e388ab58", + "test_module_build_targets": [], + "test_module_path": null, + "test_module_test_targets": [], + "url": "https://github.com/psalvaggio/cppregpattern/archive/17342e50c8248c750e8d35ca93d9f072e388ab58.tar.gz", + "version": "1.0.1" +} diff --git a/modules/cppregpattern/1.0.1/MODULE.bazel b/modules/cppregpattern/1.0.1/MODULE.bazel new file mode 100644 index 00000000000..27a7e481965 --- /dev/null +++ b/modules/cppregpattern/1.0.1/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "cppregpattern", + version = "1.0.1", +) +bazel_dep(name = "rules_license", version = "0.0.8") diff --git a/modules/cppregpattern/1.0.1/patches/add_build_file.patch b/modules/cppregpattern/1.0.1/patches/add_build_file.patch new file mode 100644 index 00000000000..f7542185f0e --- /dev/null +++ b/modules/cppregpattern/1.0.1/patches/add_build_file.patch @@ -0,0 +1,29 @@ +diff --git BUILD.bazel BUILD.bazel +new file mode 100644 +index 00000000..d99b09e7 +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,22 @@ ++load("@rules_license//rules:license.bzl", "license") ++ ++package( ++ default_applicable_licenses = [":license"], ++ default_visibility = ["//visibility:public"], ++) ++ ++exports_files(["LICENSE"]) ++ ++license( ++ name = "license", ++ package_name = "cppregpattern", ++ license_kinds = [ ++ "@rules_license//licenses/spdx:MIT", ++ ], ++) ++ ++cc_library( ++ name = "registry", ++ hdrs = ["include/cppregpattern/registry.h"], ++ strip_include_prefix = "include/", ++) +\ No newline at end of file diff --git a/modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch b/modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..797760b929a --- /dev/null +++ b/modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "cppregpattern", ++ version = "1.0.1", ++) ++bazel_dep(name = "rules_license", version = "0.0.8") diff --git a/modules/cppregpattern/1.0.1/presubmit.yml b/modules/cppregpattern/1.0.1/presubmit.yml new file mode 100644 index 00000000000..c333fe327bd --- /dev/null +++ b/modules/cppregpattern/1.0.1/presubmit.yml @@ -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: + - '@cppregpattern//:registry' diff --git a/modules/cppregpattern/1.0.1/source.json b/modules/cppregpattern/1.0.1/source.json new file mode 100644 index 00000000000..fb060a5f943 --- /dev/null +++ b/modules/cppregpattern/1.0.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/psalvaggio/cppregpattern/archive/17342e50c8248c750e8d35ca93d9f072e388ab58.tar.gz", + "integrity": "sha256-n/WIg6GYEkBrynLuBZg3C/V86ty3Vlf+YU/waFZr/6g=", + "strip_prefix": "cppregpattern-17342e50c8248c750e8d35ca93d9f072e388ab58", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-zmSrN0nyy0/42l47nd5U4xG0w6PHXxYTVDEPjSAMntM=", + "add_build_file.patch": "sha256-0TC1453qisEqtN4KhEnsUO3wSwT8E7vLp9afBfcxEXI=" + } +} diff --git a/modules/cppregpattern/metadata.json b/modules/cppregpattern/metadata.json new file mode 100644 index 00000000000..d10ce595a2f --- /dev/null +++ b/modules/cppregpattern/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/psalvaggio/cppregpattern", + "maintainers": [ + { + "email": "udayaprakash2899@gmail.com", + "github": "udaya2899", + "name": "Udaya Prakash Nageswaran" + } + ], + "repository": [ + "github:psalvaggio/cppregpattern" + ], + "versions": [ + "1.0.1" + ], + "yanked_versions": {} +} From 406510a73e9518a3dd5972d4b8d48cd60c77253f Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Tue, 9 Jul 2024 13:03:00 +0000 Subject: [PATCH 2/2] remove json file --- cppregpattern.20240709-125430.json | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 cppregpattern.20240709-125430.json diff --git a/cppregpattern.20240709-125430.json b/cppregpattern.20240709-125430.json deleted file mode 100644 index 20455505873..00000000000 --- a/cppregpattern.20240709-125430.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "build_file": null, - "build_targets": [ - "@cppregpattern:registry" - ], - "compatibility_level": "0", - "deps": [ - [ - "rules_license", - "0.0.8" - ] - ], - "module_dot_bazel": null, - "name": "cppregpattern", - "patch_strip": 0, - "patches": [], - "presubmit_yml": null, - "strip_prefix": "cppregpattern-17342e50c8248c750e8d35ca93d9f072e388ab58", - "test_module_build_targets": [], - "test_module_path": null, - "test_module_test_targets": [], - "url": "https://github.com/psalvaggio/cppregpattern/archive/17342e50c8248c750e8d35ca93d9f072e388ab58.tar.gz", - "version": "1.0.1" -}