summaryrefslogtreecommitdiff
path: root/sci-biology/paml/paml-4.10.10.ebuild
blob: 068e46ee72ddc0e0c90d6ae5ced82cc4c6371aa5 (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-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Phylogenetic Analysis by Maximum Likelihood"
HOMEPAGE="https://github.com/abacus-gene/paml/wiki"
SRC_URI="https://github.com/abacus-gene/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

src_compile() {
	emake -C src CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}

src_install() {
	dobin src/{baseml,basemlg,codeml,evolver,pamp,mcmctree,infinitesites,yn00,chi2}

	dodoc -r README.md doc/.

	insinto /usr/share/${PN}/control
	doins examples/*.ctl

	insinto /usr/share/${PN}/dat
	doins -r examples/stewart* examples/*.dat dat/.

	insinto /usr/share/${PN}
	doins -r examples
}