dev-lang/oorexx: bump cmake_minimum for samples

Closes: https://bugs.gentoo.org/961268
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć 2025-10-14 21:41:36 +02:00
parent 727ab363d9
commit b35c9eb3aa
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A

View File

@ -39,6 +39,15 @@ PATCHES=(
"${FILESDIR}/oorexx-5.0.0-man.patch"
)
src_prepare() {
find ./samples/ -type f -iname "CMakeLists.txt" -exec sed -i {} \
-e "/cmake_minimum_required/I s|(.*)|(VERSION 3.20)|g" \
-e "/cmake_policy.*/d" \; \
|| die
cmake_src_prepare
}
src_configure() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/952966