From e303272758a6bcc90e7eea1a75dd7f0ba2ad3ef2 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 5 Oct 2025 15:07:57 +0200 Subject: [PATCH] sci-chemistry/pdbmat: Fix build w/ cmake-4, use more GNUInstallDirs Raise cmake_minimum_required to 3.31 Signed-off-by: Andreas Sturmlechner --- sci-chemistry/pdbmat/files/CMakeLists.txt | 6 +++--- sci-chemistry/pdbmat/pdbmat-3.89-r1.ebuild | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sci-chemistry/pdbmat/files/CMakeLists.txt b/sci-chemistry/pdbmat/files/CMakeLists.txt index a20199bbca910..3a1911c81155f 100644 --- a/sci-chemistry/pdbmat/files/CMakeLists.txt +++ b/sci-chemistry/pdbmat/files/CMakeLists.txt @@ -1,14 +1,14 @@ -cmake_minimum_required (VERSION 2.6) +cmake_minimum_required (VERSION 3.31) project (PDBMAT Fortran) include(GNUInstallDirs) -option (EXAMPLES "Instal additional example files" OFF) +option (EXAMPLES "Install additional example files" OFF) add_executable(diagstd diagstd.f) add_executable(pdbmat pdbmat.f) -install (TARGETS diagstd pdbmat DESTINATION bin) +install (TARGETS diagstd pdbmat DESTINATION ${CMAKE_INSTALL_BINDIR}) install (FILES diagstd.README pdbmat.README DESTINATION ${CMAKE_INSTALL_DOCDIR}) if ( EXAMPLES ) diff --git a/sci-chemistry/pdbmat/pdbmat-3.89-r1.ebuild b/sci-chemistry/pdbmat/pdbmat-3.89-r1.ebuild index 40ef7c9df2d32..4f475ed55bc7b 100644 --- a/sci-chemistry/pdbmat/pdbmat-3.89-r1.ebuild +++ b/sci-chemistry/pdbmat/pdbmat-3.89-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,6 +15,8 @@ SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="examples" +BDEPEND=">=dev-build/cmake-3.31" + src_prepare() { cp "${FILESDIR}"/CMakeLists.txt . || die