summaryrefslogtreecommitdiff
blob: 44317ed2f32963862010ad7ae07fe7d9c2d36a46 (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
34
35
36
37
38
39
40
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/MrBayes/MrBayes-3.0.ebuild,v 1.1 2005/01/20 00:34:38 j4rg0n Exp $

inherit eutils toolchain-funcs

DESCRIPTION="Bayesian Inference of Phylogeny"
HOMEPAGE="http://morphbank.ebc.uu.se/mrbayes/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86 ~ppc-macos"
IUSE=""

src_unpack() {
	unpack ${A}
	cd "${S}"

	# TODO: Implement MPI-aware ebuild/use flags, etc. to use Makefile-Mpi

	# Fix the non-standard Makefile.
	sed -i \
		-e "s:-O4:${CFLAGS}:" \
		-e "s:gcc:${CC}:" \
		Makefile
}

src_compile() {
	emake \
		CC="$(tc-getCC)" \
		CXX="$(tc-getCXX)" \
		|| die "emake failed"
}

src_install() {
	# Non-standard manual install
	into /usr
	dobin mb
}