sci-chemistry/tm-align: Fix build w/ cmake-4, use GNUInstallDirs

Raise cmake_minimum_required to 3.28 (because ~ppc)

Closes: https://bugs.gentoo.org/952793
Closes: https://bugs.gentoo.org/954309
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-10-05 15:34:02 +02:00
parent 6dd2844598
commit d6d6c3462f
2 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
cmake_minimum_required (VERSION 2.6)
cmake_minimum_required (VERSION 3.28)
project (TMTools Fortran)
include(GNUInstallDirs)
add_executable(TMalign TMalign.f)
add_executable(TMscore TMscore.f)
install (TARGETS TMalign TMscore DESTINATION bin)
install (TARGETS TMalign TMscore DESTINATION ${CMAKE_INSTALL_BINDIR})

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,13 +8,22 @@ inherit cmake flag-o-matic fortran-2
DESCRIPTION="Quick & Accurate Structural Alignment"
HOMEPAGE="https://zhanggroup.org/TM-align/"
SRC_URI="http://zhanglab.ccmb.med.umich.edu/TM-align/TMtools${PV}.tar.gz"
S="${WORKDIR}"
LICENSE="tm-align"
SLOT="0"
KEYWORDS="amd64 ~ppc ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="custom-cflags"
BDEPEND=">=dev-build/cmake-3.28"
src_unpack() {
# S=${WORKDIR} is deprecated in cmake eclass
mkdir "${P}" || die
pushd "${P}" || die
unpack ${A}
popd || die
}
src_prepare() {
cp "${FILESDIR}"/CMakeLists.txt . || die
cmake_src_prepare