Skip to content

Commit a6c1c91

Browse files
authored
add utf8proc to bzlmod (#6533)
1 parent 3ce392a commit a6c1c91

File tree

6 files changed

+125
-0
lines changed

6 files changed

+125
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module(
2+
name = "utf8proc",
3+
version = "2.11.0",
4+
compatibility_level = 0,
5+
)
6+
7+
bazel_dep(name = "rules_cc", version = "0.2.14")
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--- /dev/null
2+
+++ BUILD
3+
@@ -0,0 +1,41 @@
4+
+cc_library(
5+
+ name = "utf8proc",
6+
+ srcs = ["utf8proc.c"],
7+
+ hdrs = ["utf8proc.h"],
8+
+ defines = ["UTF8PROC_STATIC"],
9+
+ # includes = ["."],
10+
+ textual_hdrs = ["utf8proc_data.c"],
11+
+ visibility = ["//visibility:public"],
12+
+)
13+
+
14+
+cc_library(
15+
+ name = "utf8proc_testlib",
16+
+ testonly = True,
17+
+ srcs = ["test/tests.c"],
18+
+ hdrs = ["test/tests.h"],
19+
+ deps = [":utf8proc"],
20+
+)
21+
+
22+
+[
23+
+ cc_test(
24+
+ name = testcase + "_test",
25+
+ srcs = ["test/" + testcase + ".c"],
26+
+ deps = [
27+
+ ":utf8proc",
28+
+ ":utf8proc_testlib",
29+
+ ],
30+
+ )
31+
+ for testcase in [
32+
+ "case",
33+
+ # "charwidth",
34+
+ "custom",
35+
+ # "graphemetest",
36+
+ # "iscase",
37+
+ "iterate",
38+
+ "maxdecomposition",
39+
+ "misc",
40+
+ # "normtest",
41+
+ "printproperty",
42+
+ "valid",
43+
+ ]
44+
+]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- /dev/null
2+
+++ MODULE.bazel
3+
@@ -0,0 +1,7 @@
4+
+module(
5+
+ name = "utf8proc",
6+
+ version = "2.11.0",
7+
+ compatibility_level = 0,
8+
+)
9+
+
10+
+bazel_dep(name = "rules_cc", version = "0.2.14")
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2204
5+
- macos
6+
- macos_arm64
7+
- windows
8+
bazel:
9+
- 8.x
10+
- 7.x
11+
- 6.x
12+
tasks:
13+
verify_targets:
14+
name: Verify build targets
15+
platform: ${{ platform }}
16+
bazel: ${{ bazel }}
17+
build_targets:
18+
- '@utf8proc//:utf8proc'
19+
bcr_test_module:
20+
module_path: ""
21+
matrix:
22+
platform:
23+
- debian11
24+
- ubuntu2204
25+
- macos
26+
- macos_arm64
27+
- windows
28+
bazel:
29+
- 8.x
30+
- 7.x
31+
- 6.x
32+
tasks:
33+
run_test_module:
34+
name: Run test module
35+
platform: ${{ platform }}
36+
bazel: ${{ bazel }}
37+
build_targets:
38+
- '@utf8proc//...'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"url": "https://github.com/JuliaStrings/utf8proc/archive/refs/tags/v2.11.0.tar.gz",
3+
"integrity": "sha256-wkN5tfoKQpofmj/CO0SnXysUGjTAkUalKaVdIKWAgHA=",
4+
"strip_prefix": "utf8proc-2.11.0",
5+
"patches": {
6+
"add_build_file.patch": "sha256-SsIi+/T2AR0diJJ9Psrwn/JY3PuKwiPCpuGQKW54/VI=",
7+
"module_dot_bazel.patch": "sha256-7jxwHeiM/JH2n4sQ30ea8kuhLnYiPvxIMFilfol8OS0="
8+
},
9+
"patch_strip": 0
10+
}

modules/utf8proc/metadata.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"homepage": "https://juliastrings.github.io/utf8proc/",
3+
"maintainers": [
4+
{
5+
"github": "rockwotj",
6+
"github_user_id": 8669100
7+
}
8+
],
9+
"repository": [
10+
"github:JuliaStrings/utf8proc"
11+
],
12+
"versions": [
13+
"2.11.0"
14+
],
15+
"yanked_versions": {}
16+
}

0 commit comments

Comments
 (0)