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

Raise cmake_minimum_required to 3.31

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-10-05 15:07:57 +02:00
parent 9e105419fe
commit e303272758
2 changed files with 6 additions and 4 deletions

View File

@@ -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 )

View File

@@ -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