You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-biology/raxml/raxml-7.2.2.ebuild

44 lines
1.3 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/raxml/raxml-7.2.2.ebuild,v 1.4 2011/06/21 06:38:10 jlec Exp $
EAPI=2
inherit toolchain-funcs
DESCRIPTION="A Program for Sequential, Parallel & Distributed Inference of Large Phylogenetic Trees"
HOMEPAGE="http://wwwkramer.in.tum.de/exelixis/software.html"
SRC_URI="http://wwwkramer.in.tum.de/exelixis/software/RAxML-${PV}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="+threads"
# mpi is not supported in version 7.2.2. mpi is enabled by adding -DPARALLEL to CFLAGS
DEPEND="" # mpi? ( virtual/mpi )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/RAxML-${PV}"
src_prepare() {
sed \
-e 's/CFLAGS =/CFLAGS := ${CFLAGS}/' \
-e 's/CC = gcc/CC = '$(tc-getCC)'/' \
-i Makefile.* || die
}
src_compile() {
emake -f Makefile.gcc || die
emake -f Makefile.SSE3.gcc clean && emake -f Makefile.SSE3.gcc || die
if use threads; then
emake -f Makefile.PTHREADS.gcc clean && emake -f Makefile.PTHREADS.gcc || die
emake -f Makefile.SSE3.PTHREADS.gcc clean && emake -f Makefile.SSE3.PTHREADS.gcc || die
fi
}
src_install() {
dobin raxmlHPC raxmlHPC-SSE3 || die
if use threads; then dobin raxmlHPC-PTHREADS raxmlHPC-PTHREADS-SSE3 || die; fi
}