Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | SUMMARY = "Regular expressions library" |
| 2 | DESCRIPTION = "Oniguruma is a modern and flexible regular expressions library. \ |
| 3 | It encompasses features from different regular expression \ |
| 4 | implementations that traditionally exist in different languages. \ |
| 5 | Character encoding can be specified per regular expression object." |
| 6 | HOMEPAGE = "https://github.com/kkos/oniguruma" |
| 7 | LICENSE = "BSD-2-Clause" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=e6365c225bb5cc4321d0913f0baffa04" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI = "\ |
| 11 | https://github.com/kkos/oniguruma/releases/download/v${PV}/${BP}.tar.gz \ |
| 12 | file://0001-build-don-t-link-against-host-system-libraries.patch \ |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 13 | file://0002-build-enable-serial-tests-automake-option-for-ptest.patch \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 14 | file://run-ptest \ |
| 15 | " |
| 16 | |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 17 | SRC_URI[sha256sum] = "28cd62c1464623c7910565fb1ccaaa0104b2fe8b12bcd646e81f73b47535213e" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 18 | |
| 19 | BINCONFIG = "${bindir}/onig-config" |
| 20 | |
| 21 | inherit autotools binconfig-disabled ptest |
| 22 | |
| 23 | BBCLASSEXTEND = "native" |
| 24 | |
| 25 | do_compile_ptest() { |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 26 | oe_runmake -C test buildtest-TESTS |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | do_install_ptest() { |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 30 | mkdir -p ${D}${PTEST_PATH}/tests |
| 31 | install -m 0755 -t ${D}${PTEST_PATH}/tests/ ${B}/test/.libs/* |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 32 | } |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 33 | |
| 34 | PROVIDES += "oniguruma" |