mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user