# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs flag-o-matic DESCRIPTION="The Self-Organizing Map for Biological Regulatory Element Recognition and Ordering" HOMEPAGE="http://bioinf.nuigalway.ie/sombrero/index.html" SOMP="SOMBRERO_v.${PV}_MPI_source.zip" SRC_URI="http://bioinf.nuigalway.ie/sombrero/binaries/${SOMP}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64 ~alpha ~ia64" IUSE="X" DEPEND="virtual/mpi X? (dev-perl/perl-tk)" RDEPEND="${DEPEND}" src_compile() { cd ${WORKDIR} /usr/bin/mpic++ ${CXXFLAGS} Utilities.cpp SOM.cpp main.cpp -lm -lmpi -o sombrero-mpi } src_install() { cd ${WORKDIR} dobin sombrero-mpi dobin BackExtract.pl if use X; then dobin SOMBREROView.pl fi }