commit:     e303272758a6bcc90e7eea1a75dd7f0ba2ad3ef2
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  5 13:07:57 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct  5 17:44:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3032727

sci-chemistry/pdbmat: Fix build w/ cmake-4, use more GNUInstallDirs

Raise cmake_minimum_required to 3.31

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 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 a20199bbca91..3a1911c81155 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 40ef7c9df2d3..4f475ed55bc7 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
 

Reply via email to