# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="\ fastDNAml [Olsen et.al. 1994, based on Felsenstein 1981] computes the likelihood of various phylogenetic trees, starting with aligned DNA sequences from a number of species. More documentation is available." HOMEPAGE="http://geta.life.uiuc.edu/%7Egary/programs/fastDNAml.html" SRC_URI="http://www.indiana.edu/%7Erac/hpc/fastDNAml/fastDNAml_${PV}.tar" LICENSE="Unknown" IUSE="mpi" SLOT="0" KEYWORDS="~x86" DEPEND="mpi? ( virtual/mpi )" S=${WORKDIR}/${PN}_${PV}/ src_compile() { echo ${S}/src cd ${S}/src || die emake -f Makefile.LINUX serial || die "Compile failed" if use mpi; then sed -i -e "s/#MPI_ROOT =/ MPI_ROOT=\/usr/" Makefile.LINUX || die sed -i -e "s/MPICC = \$(CC)/MPICC=mpicc/" Makefile.LINUX || die sed -i -e "s/MPI_CLIBS = -lmpich/MPI_CLIBS=/" Makefile.LINUX || die emake -f Makefile.LINUX mpi || die "Compile failed" fi } src_install() { cd ${S}/src || die dobin fastDNAml || die if use mpi; then dobin mpi_dnaml_mon mpi_fastDNAml mpi_foreman mpi_worker || die fi dodir /usr/share/doc/${P}/scripts || die cp -rp ${S}/scripts/* ${D}/usr/share/doc/${P}/scripts || die }