dev-util/fortran-test-drive: fix CMake < 3.10 QAwarning

Closes: https://bugs.gentoo.org/974772
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov committed 2026-05-15 10:10:52 +03:00
1 parent 147ae53fb0
commit d51e0c2980
2 files changed
+20 -2

No files matched your search

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,3 +25,12 @@ RESTRICT="mirror !test? ( test )"
pkg_setup() {
fortran-2_pkg_setup
}
src_prepare() {
default
sed -i -e '/^cmake_minimum_required/s/VERSION 3.9/VERSION 3.10/' \
CMakeLists.txt || die
cmake_src_prepare
}
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,3 +25,12 @@ RESTRICT="mirror !test? ( test )"
pkg_setup() {
fortran-2_pkg_setup
}
src_prepare() {
default
sed -i -e '/^cmake_minimum_required/s/VERSION 3.9/VERSION 3.10/' \
CMakeLists.txt || die
cmake_src_prepare
}