meta-openembedded/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb
Alexander Kanavin fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00

39 lines
1.2 KiB
BlitzBasic

SUMMARY = "TOML for Modern C++"
DESCRIPTION = "toml11 is a feature-rich TOML language library for \
C++11/14/17/20."
HOMEPAGE = "https://github.com/ToruNiina/toml11"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=44d1fcf70c7aa6991533c38daf7befa3"
PE = "1"
SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286"
SRCREV_json = "8c391e04fe4195d8be862c97f38cfe10e2a3472e"
SRCREV_doctest = "ae7a13539fb71f270b87eb2e874fbac80bc8dda2"
SRC_URI = "git://github.com/ToruNiina/toml11;branch=main;protocol=https \
git://github.com/nlohmann/json;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/tests/extlib/json;name=json;branch=develop;protocol=https \
git://github.com/doctest/doctest;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/tests/extlib/doctest;name=doctest;branch=master;protocol=https \
file://0001-Remove-whitespace-in-operator.patch \
file://run-ptest \
"
SRCREV_FORMAT = "json_doctest"
inherit cmake ptest
EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \
-DTOML11_BUILD_TESTS=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "ON", "OFF", d)} \
"
ALLOW_EMPTY:${PN} = "1"
do_install_ptest () {
install -d ${D}${PTEST_PATH}/tests
cp -r ${B}/tests/test_* ${D}${PTEST_PATH}/tests
}