From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 42470138331 for ; Mon, 29 Aug 2016 20:45:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10C6221C081; Mon, 29 Aug 2016 20:45:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24E7621C07E for ; Mon, 29 Aug 2016 20:45:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 74FD3340961 for ; Mon, 29 Aug 2016 20:45:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C55762470 for ; Mon, 29 Aug 2016 20:45:18 +0000 (UTC) From: "Justin Bronder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Bronder" Message-ID: <1472489236.d2354e659f484aab41b16820da9700b404e9b801.jsbronder@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/mpich/ X-VCS-Repository: proj/sci X-VCS-Files: sys-cluster/mpich/mpich-3.2-r2.ebuild X-VCS-Directories: sys-cluster/mpich/ X-VCS-Committer: jsbronder X-VCS-Committer-Name: Justin Bronder X-VCS-Revision: d2354e659f484aab41b16820da9700b404e9b801 X-VCS-Branch: master Date: Mon, 29 Aug 2016 20:45:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e2edbe16-275f-459a-800c-2c6a24481986 X-Archives-Hash: 9ad76f9ed8a9043d45c48e49e419f89b commit: d2354e659f484aab41b16820da9700b404e9b801 Author: Christoph Junghans gentoo org> AuthorDate: Mon Aug 29 15:53:42 2016 +0000 Commit: Justin Bronder gentoo org> CommitDate: Mon Aug 29 16:47:16 2016 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d2354e65 sys-cluster/mpich: add multilib version Package-Manager: portage-2.2.28 sys-cluster/mpich/mpich-3.2-r2.ebuild | 120 ++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/sys-cluster/mpich/mpich-3.2-r2.ebuild b/sys-cluster/mpich/mpich-3.2-r2.ebuild new file mode 100644 index 0000000..7f5dcf7 --- /dev/null +++ b/sys-cluster/mpich/mpich-3.2-r2.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +FORTRAN_NEEDED=fortran +FORTRAN_STANDARD="77 90" + +inherit fortran-2 multilib-minimal mpi + +MY_PV=${PV/_/} +DESCRIPTION="A high performance and portable MPI implementation" +HOMEPAGE="http://www.mpich.org/" +SRC_URI="http://www.mpich.org/static/downloads/${PV}/${P}.tar.gz" + +SLOT="0" +LICENSE="mpich" +KEYWORDS="" +IUSE="+cxx doc fortran mpi-threads romio threads" +REQUIRED_USE="mpi-threads? ( threads )" + +COMMON_DEPEND=" + >=dev-libs/libaio-0.3.109-r5[${MULTILIB_USEDEP}] + >=sys-apps/hwloc-1.10.0-r2[${MULTILIB_USEDEP}] + romio? ( net-fs/nfs-utils ) + $(mpi_imp_deplist)" + +DEPEND="${COMMON_DEPEND} + dev-lang/perl + sys-devel/libtool" + +RDEPEND="${COMMON_DEPEND}" + +S="${WORKDIR}"/${PN}-${MY_PV} + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/mpicxx.h + /usr/include/mpi.h + /usr/include/opa_config.h +) + +src_prepare() { + default + + # Using MPICHLIB_LDFLAGS doesn't seem to fully work. + sed -i 's| *@WRAPPER_LDFLAGS@ *||' \ + src/packaging/pkgconfig/mpich.pc.in \ + src/env/*.in \ + || die +} + +multilib_src_configure() { + # The configure statements can be somewhat confusing, as they + # don't all show up in the top level configure, however, they + # are picked up in the children directories. + + export MPICHLIB_CFLAGS="${CFLAGS}" + export MPICHLIB_CPPFLAGS="${CPPFLAGS}" + export MPICHLIB_CXXFLAGS="${CXXFLAGS}" + export MPICHLIB_FFLAGS="${FFLAGS}" + export MPICHLIB_FCFLAGS="${FCFLAGS}" + export MPICHLIB_LDFLAGS="${LDFLAGS}" + unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS + + ECONF_SOURCE=${S} $(mpi_econf_args) econf \ + --enable-shared \ + --sysconfdir="${EPREFIX}/etc/${PN}" \ + --with-hwloc-prefix="${EPREFIX}/usr" \ + --enable-threads=$(usex mpi-threads runtime single) \ + --with-thread-package=$(usex threads pthreads none) \ + --with-pm=hydra \ + --disable-fast \ + --enable-versioning \ + --with-hwloc-prefix=/usr \ + $(mpi_classed && echo "--docdir=$(mpi_root)/usr/share/doc/${PF}") \ + $(use_enable romio) \ + $(use_enable cxx) \ + $(multilib_native_use_enable fortran fortran all) +} + +multilib_src_test() { + emake -j1 check +} + +multilib_src_install() { + default + + # fortran header cannot be wrapped (bug #540508), workaround part 1 + if multilib_is_native_abi && use fortran; then + mkdir "${T}"/fortran || die + mv "${ED}"usr/include/mpif* "${T}"/fortran || die + mv "${ED}"usr/include/*.mod "${T}"/fortran || die + else + # some fortran files get installed unconditionally + rm "${ED}"usr/include/mpif* "${ED}"usr/include/*.mod || die + fi +} + +multilib_src_install_all() { + # fortran header cannot be wrapped (bug #540508), workaround part 2 + if use fortran; then + mv "${T}"/fortran/* "${ED}"usr/include || die + fi + + mpi_dodir /usr/share/doc/${PF} + mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES + mpi_newdoc src/pm/hydra/README README.hydra + if use romio; then + mpi_newdoc src/mpi/romio/README README.romio + fi + + local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g') + if ! use doc; then + rm -rf "${d}"usr/share/doc/${PF}/www* || die + fi + + MPI_ESELECT_FILE="eselect.mpi.mpich" + mpi_imp_add_eselect +}