diff options
-rw-r--r-- | meta-oe/conf/include/ptest-packagelists-meta-oe.inc | 1 | ||||
-rw-r--r-- | meta-oe/recipes-support/utf8proc/utf8proc/run-ptest | 15 | ||||
-rw-r--r-- | meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb | 33 |
3 files changed, 49 insertions, 0 deletions
diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc index d77b97d576..18324ff0d3 100644 --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc | |||
@@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ | |||
44 | pv \ | 44 | pv \ |
45 | sdbus-c++ \ | 45 | sdbus-c++ \ |
46 | tomlplusplus \ | 46 | tomlplusplus \ |
47 | utf8proc \ | ||
47 | uthash \ | 48 | uthash \ |
48 | xmlsec1 \ | 49 | xmlsec1 \ |
49 | zeromq \ | 50 | zeromq \ |
diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest new file mode 100644 index 0000000000..349e496d68 --- /dev/null +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | execute_test() { | ||
4 | eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" | ||
5 | } | ||
6 | |||
7 | execute_test "case" | ||
8 | execute_test "custom" | ||
9 | execute_test "iterate" | ||
10 | execute_test "misc" | ||
11 | execute_test "printproperty" | ||
12 | execute_test "valid" | ||
13 | execute_test "charwidth" | ||
14 | execute_test "graphemetest data/GraphemeBreakTest.txt" | ||
15 | execute_test "normtest data/NormalizationTest.txt" | ||
diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb new file mode 100644 index 0000000000..e42d16b8b7 --- /dev/null +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | SUMMARY = "library that provides operations for data in the UTF-8 encoding" | ||
2 | DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \ | ||
3 | normalization, case-folding, and other operations for data in the UTF-8 \ | ||
4 | encoding, supporting Unicode version 16.0" | ||
5 | HOMEPAGE = "https://juliastrings.github.io/utf8proc/" | ||
6 | SECTION = "libs" | ||
7 | |||
8 | LICENSE = "MIT & Unicode-3.0" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" | ||
10 | |||
11 | SRC_URI = "\ | ||
12 | git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \ | ||
13 | file://run-ptest \ | ||
14 | " | ||
15 | |||
16 | inherit cmake ptest | ||
17 | |||
18 | EXTRA_OECMAKE = "\ | ||
19 | -DBUILD_SHARED_LIBS=ON \ | ||
20 | ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON -DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ | ||
21 | " | ||
22 | |||
23 | do_install_ptest() { | ||
24 | # this list and run-ptest needs to be updated on upgrade (the project uses add_test feature) | ||
25 | for t in "case" custom iterate misc printproperty valid charwidth graphemetest normtest; do | ||
26 | install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ | ||
27 | done | ||
28 | install -d ${D}${PTEST_PATH}/data | ||
29 | install -m 0644 ${B}/data/GraphemeBreakTest.txt ${D}${PTEST_PATH}/data/ | ||
30 | install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/ | ||
31 | } | ||
32 | |||
33 | BBCLASSEXTEND = "native" | ||