/[gentoo-x86]/sci-biology/paml/paml-4.4c.ebuild
Gentoo

Contents of /sci-biology/paml/paml-4.4c.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Sep 12 16:16:35 2010 UTC (4 years ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable on amd64 wrt bug #335649

(Portage version: 2.2_rc78/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-biology/paml/paml-4.4c.ebuild,v 1.2 2010/09/06 14:10:43 fauli Exp $
4
5 EAPI="2"
6
7 inherit toolchain-funcs versionator
8
9 MY_P=$(version_format_string '${PN}$1$2')
10
11 DESCRIPTION="Phylogenetic Analysis by Maximum Likelihood"
12 HOMEPAGE="http://abacus.gene.ucl.ac.uk/software/paml.html"
13 SRC_URI="http://abacus.gene.ucl.ac.uk/software/${PN}${PV}.tar.gz"
14
15 LICENSE="free-noncomm"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE=""
19
20 S=${WORKDIR}/${MY_P}
21
22 src_prepare() {
23 # Notice send by mail to prof. Ziheng Yang
24 sed -i "s/\$(CC)/& \$(LDFLAGS)/" src/Makefile || die #335608
25 }
26
27 src_compile() {
28 emake -C src CC="$(tc-getCC)" \
29 CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
30 }
31
32 src_install() {
33 pushd "${S}"/src
34 dobin baseml codeml basemlg mcmctree pamp evolver yn00 chi2 || die
35 popd
36 dodoc README.txt doc/* || die
37 insinto /usr/share/${PN}/control
38 doins *.ctl || die "Failed to install control files"
39 insinto /usr/share/${PN}/dat
40 doins stewart* *.dat dat/* || die "Failed to install data files"
41 insinto /usr/share/${PN}
42 doins -r examples/ || die "Failed to install examples"
43 }

  ViewVC Help
Powered by ViewVC 1.1.20