mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -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() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
||||||
if ! use test ; then
|
sed -i -e '/^cmake_minimum_required/s/VERSION 3.9/VERSION 3.10/' \
|
||||||
sed -i -e '/^enable_testing()/d' \
|
CMakeLists.txt || die
|
||||||
-e '/^add_subdirectory("test")/d' CMakeLists.txt || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake_src_prepare
|
cmake_src_prepare
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_TESTING=$(usex test ON OFF)
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user