summaryrefslogtreecommitdiff
path: root/sci-chemistry/tm-align/tm-align-20150914-r1.ebuild
blob: 3c1703b2e69d845cfb820fa97705be495f87d966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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"

LICENSE="tm-align"
SLOT="0"
KEYWORDS="amd64 ~ppc ppc64 ~x86"
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

	# Recommended by upstream
	use custom-cflags || replace-flags -O* -O3 && append-fflags -ffast-math
}