# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs DESCRIPTION="Genome Rearrangements Analysis under Parsimony and other Phylogenetic Algorithms" HOMEPAGE="http://www.cs.unm.edu/~moret/GRAPPA/" SRC_URI="http://www.cs.unm.edu/~moret/GRAPPA/GRAPPA20.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~ppc-macos ~ppc64 ~sparc x86" IUSE="" MY_PN="GRAPPA" MY_PV="20" S="${WORKDIR}"/${MY_PN}${MY_PV} src_unpack(){ unpack ${A} cd "${S}" sed -i -e "s/CFLAGS := -O3 -Wall -DGCC /CFLAGS := ${CFLAGS} -Wall -DGCC /" \ -e "s/CFLAGS := -mcpu=pentiumpro /CFLAGS := /" \ -e "s/SYM = invdist distmat//" \ Makefile || die "Patching Makefile failed" } src_compile() { emake || die } src_install() { dobin grappa || die dodoc README || die }