diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-09-05 00:11:38 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-09-04 18:11:00 -0700 |
| commit | fd609bef6dff3b31d353568641edf63af95e6d26 (patch) | |
| tree | de5a04420bbbcc3681e5f441e41ba6510d6d987a /meta-oe/recipes-support/utf8proc | |
| parent | 6c5d9ef0dbb3e5ae9259536aaa0f16df352a147b (diff) | |
| download | meta-openembedded-fd609bef6dff3b31d353568641edf63af95e6d26.tar.gz | |
utf8proc: add new recipe with ptest
It is needed for poco 1.14+
Ptest runs for less than a second.
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/utf8proc')
| -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 |
2 files changed, 48 insertions, 0 deletions
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" | ||
