summaryrefslogtreecommitdiff
blob: 7434c18f4ee78a06ff0ab0a067b6bdf64e8b8615 (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
41
42
43
44
45
46
47
48
49
50
51
# 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.3 2005/02/20 05:47:16 j4rg0n Exp $

inherit eutils toolchain-funcs

SRC_PACKAGE="MrBayes_V3.0_src"

DESCRIPTION="Bayesian Inference of Phylogeny"
HOMEPAGE="http://morphbank.ebc.uu.se/mrbayes/"
SRC_URI="${SRC_PACKAGE}.tar"
RESTRICT="fetch"

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

S="${WORKDIR}/${SRC_PACKAGE}/"

pkg_nofetch() {
	einfo "Please download"
	einfo " - ${SRC_URI}"
	einfo "from ${HOMEPAGE}/download.php and place them in ${DISTDIR}"
}

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:$(tc-getCC):" \
		Makefile || die
}

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

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