diff options
Diffstat (limited to 'sci-biology/paml/paml-4.4c-r1.ebuild')
-rw-r--r-- | sci-biology/paml/paml-4.4c-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sci-biology/paml/paml-4.4c-r1.ebuild b/sci-biology/paml/paml-4.4c-r1.ebuild new file mode 100644 index 000000000000..7868859871b9 --- /dev/null +++ b/sci-biology/paml/paml-4.4c-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs versionator + +MY_P=$(version_format_string '${PN}$1$2') + +DESCRIPTION="Phylogenetic Analysis by Maximum Likelihood" +HOMEPAGE="http://abacus.gene.ucl.ac.uk/software/paml.html" +SRC_URI="http://abacus.gene.ucl.ac.uk/software/${PN}${PV}.tar.gz" + +LICENSE="free-noncomm" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # Notice send by mail to prof. Ziheng Yang + sed -i "s/\$(CC)/& \$(LDFLAGS)/" src/Makefile || die #335608 +} + +src_compile() { + emake -C src \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -Wno-unused-result" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dodoc README.txt doc/* + + insinto /usr/share/${PN}/control + doins *.ctl + + insinto /usr/share/${PN}/dat + doins stewart* *.dat dat/* + + insinto /usr/share/${PN} + doins -r examples/ + + cd src || die + dobin baseml codeml basemlg mcmctree pamp evolver yn00 chi2 +} |