# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild,v 1.8 2013/01/06 18:47:14 jsbronder Exp $ EAPI=4 FORTRAN_NEEDED=fortran inherit autotools eutils fortran-2 toolchain-funcs MY_PV=${PV/_/} DESCRIPTION="A high performance and portable MPI implementation" HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php" SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz" LICENSE="mpich2" SLOT="0" KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" IUSE="+cxx debug doc fortran mpi-threads romio threads" COMMON_DEPEND="dev-libs/libaio 8gb of ram # bcastlength: This is an extension to MPI that's not necessary # non_zero_root: performance test # Also note that I/O tests may fail on non-local filesystems. sed -i '/^[# ]*large_message/d' test/mpi/pt2pt/testlist || die sed -i '/^[# ]*bcastlength/d' test/mpi/errors/coll/testlist || die sed -i '/^[# ]*non_zero_root/d' test/mpi/perf/testlist || die # Failing tests based on requiring MPI_THREAD_MULTIPLE. # http://lists.mcs.anl.gov/pipermail/mpich-discuss/2012-January/011618.html sed -i \ -e '/^[# ]*pt2pt/d' \ -e '/^[# ]*comm/d' \ -e '/^[# ]*spawn/d' \ test/mpi/threads/testlist || die emake -j1 \ CC="${S}"/bin/mpicc \ CXX="${S}"/bin/mpicxx \ F77="${S}"/bin/mpif77 \ FC="${S}"/bin/mpif90 \ testing } src_install() { emake -j1 DESTDIR="${D}" install dodir /usr/share/doc/${PF} dodoc COPYRIGHT README CHANGES RELEASE_NOTES || die newdoc src/pm/hydra/README README.hydra|| die if use romio; then newdoc src/mpi/romio/README README.romio || die fi if ! use doc; then rm -rf "${D}"/usr/share/doc/${PF}/www* || die fi }