mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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 )
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user