Files
meta-openembedded/meta-oe/recipes-support/onig/onig_6.9.4.bb
Mark Asselstine 7513625706 meta-oe: onig: avoid using 'install' with both -D and -t options
Older versions of 'install' (prior to 8.23) do not allow the -D and -t
options to be used together. (see coreutils commit 15d092f94a3a
[install: allow options -D and -t to be used together]). On build
hosts such as CentOS7, which has install v8.22, we therefor see a
failure: install:

    failed to access ‘...onig/6.9.4-r0/image/usr/lib64/onig/ptest/tests/’:
        No such file or directory

We definitely don't want to avoid using useful features of tools but
throughout meta-openembedded the mkdir approach is used so let's stick
to it and avoid causing undo issues at the expense of one extra line
of code.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-21 14:21:52 -08:00

34 lines
1.1 KiB
BlitzBasic

SUMMARY = "Regular expressions library"
DESCRIPTION = "Oniguruma is a modern and flexible regular expressions library. \
It encompasses features from different regular expression \
implementations that traditionally exist in different languages. \
Character encoding can be specified per regular expression object."
HOMEPAGE = "https://github.com/kkos/oniguruma"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=1ee043784bdce7503e619b2d1a85798b"
SRC_URI = "\
https://github.com/kkos/oniguruma/releases/download/v${PV}/${BP}.tar.gz \
file://0001-build-don-t-link-against-host-system-libraries.patch \
file://0001-build-enable-serial-tests-automake-option-for-ptest.patch \
file://run-ptest \
"
SRC_URI[md5sum] = "a12d2fe997b789bd87cf63799c091879"
SRC_URI[sha256sum] = "4669d22ff7e0992a7e93e116161cac9c0949cd8960d1c562982026726f0e6d53"
BINCONFIG = "${bindir}/onig-config"
inherit autotools binconfig-disabled ptest
BBCLASSEXTEND = "native"
do_compile_ptest() {
oe_runmake -C test buildtest-TESTS
}
do_install_ptest() {
mkdir -p ${D}${PTEST_PATH}/tests
install -m 0755 -t ${D}${PTEST_PATH}/tests/ ${B}/test/.libs/*
}