dev-libs/toml-f: 0.4.3 fix USE="-test"; fix CMake < 3.10 QA warning

Closes: https://bugs.gentoo.org/974539
Closes: https://bugs.gentoo.org/974668
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2026-05-15 10:00:26 +03:00
parent bce303fe67
commit 147ae53fb0

View File

@@ -25,10 +25,15 @@ DEPEND="
src_prepare() {
default
if ! use test ; then
sed -i -e '/^enable_testing()/d' \
-e '/^add_subdirectory("test")/d' CMakeLists.txt || die
fi
sed -i -e '/^cmake_minimum_required/s/VERSION 3.9/VERSION 3.10/' \
CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test ON OFF)
)
cmake_src_configure
}