diff options
author | Michael Gilroy <michael.gilroy24@gmail.com> | 2017-06-19 15:34:12 +0000 |
---|---|---|
committer | Michael Gilroy <michael.gilroy24@gmail.com> | 2017-06-19 15:34:12 +0000 |
commit | 61df2e412eeaf326804dd943f5b3e51cc661f762 (patch) | |
tree | 41353d671aa43053d57a906b33a26bde7b61ab0c | |
parent | mpi-threads added to metadata, included once again in the ebuild (diff) | |
download | gentoo-mpi-61df2e412eeaf326804dd943f5b3e51cc661f762.tar.gz gentoo-mpi-61df2e412eeaf326804dd943f5b3e51cc661f762.tar.bz2 gentoo-mpi-61df2e412eeaf326804dd943f5b3e51cc661f762.zip |
Added mpich-3.2-r1.ebuild to the overlay
- removed "die" statement to avoid build failure: build failed because
files attempted to rm did not exist.
- removed stable keywords to avoid repoman failure (see KEYWORDS.stable
in repoman manpage)
-rw-r--r-- | sys-cluster/mpich/Manifest | 1 | ||||
-rw-r--r-- | sys-cluster/mpich/mpich-3.2-r1.ebuild | 131 |
2 files changed, 132 insertions, 0 deletions
diff --git a/sys-cluster/mpich/Manifest b/sys-cluster/mpich/Manifest index e4c1840..ff6727d 100644 --- a/sys-cluster/mpich/Manifest +++ b/sys-cluster/mpich/Manifest @@ -1,3 +1,4 @@ DIST mpich-3.2.tar.gz 11862150 SHA256 0778679a6b693d7b7caff37ff9d2856dc2bfc51318bf8373859bfa74253da3dc SHA512 083c51655b4355827bd7fa4fe528046e2bc77b7747d869ff87b79fa324c3cc2a9b5640ccb7271490ccc0dd627e354a33a449bbab448501bbfddcfe5f999ee717 WHIRLPOOL 4196be94f5f5766f06e3f5893153e6d44fe93a5ef17dfcf3fce075b1506d5b762ba175dceeac0668284adc9f4a846917801f2138ed2d81f464d3a191b3f88f1c +EBUILD mpich-3.2-r1.ebuild 3119 SHA256 8d21dc7403f293f93383c1f4b57fcb7aed3ba73edddb257098e4ec189941a77a SHA512 be2eb6795cb27c05aab47091f44cb785bd673cca7c877012dde5554040320fe1dc4bf2f2ab012d771f1e0be981446ebaf97d212a21fd1c14e630d59af4e4925a WHIRLPOOL 8a7119b63168c6178435ba3839fc370b671e97829716189d8411c144a8a64fb689eb34c01d46a16eaf45b627ea78382172f2c72a18e8c0355317ee10aaae2a0f EBUILD mpich-3.2.ebuild 2633 SHA256 c2efe9344d0c4d4bb283be689134ed2814fa0da3181e4a54eb1c6141dfb1ccf0 SHA512 e6f8ffffe0cae9d1cb69efd2957cba637ac5aa4ca976c397ed95de0fd3e9da81aa578db1dee0de09d696b81dbca280a4eb666606f5ff69075a474303c12aab07 WHIRLPOOL e4b6620662ade5d760c92814c1bf3483204cc324d69b3eccea82c808eb18cea0006a044b056cd5d28ac1dbba84b31b8de60e39ab3ab07b7b43c1776479a7dc9f MISC metadata.xml 366 SHA256 7e30eda183210d5af43e7c4ba122d98c5d0c81a81e31a0ece717f112e39207fb SHA512 88a6ae57cbdb14090979b3995f2575c16dd66e0ecff400cb0c33616189d35fba73caf6aac1951a7d1079783aa269c1e194f67d24561cf7b28a0cdcfb086f4d51 WHIRLPOOL 15e31a6c4abcbb6f40ee9ade9dbb1d54ed16be2b1bdaff6a5ac8007c125169c16edc4dc76b1da65283daa1b573aeacf64267c60cdf0febbe5a7d20a7412a7f03 diff --git a/sys-cluster/mpich/mpich-3.2-r1.ebuild b/sys-cluster/mpich/mpich-3.2-r1.ebuild new file mode 100644 index 0000000..65fd238 --- /dev/null +++ b/sys-cluster/mpich/mpich-3.2-r1.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_NEEDED=fortran +FORTRAN_STANDARD="77 90" + +inherit fortran-2 multilib-minimal mpi-providers + +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="~amd64-linux ~x86-linux" +IUSE="+cxx doc fortran mpi-threads romio 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 )" + +DEPEND="${COMMON_DEPEND} + dev-lang/perl + sys-devel/libtool" + +RDEPEND="${COMMON_DEPEND} + !sys-cluster/mpich2 + !sys-cluster/openmpi + !sys-cluster/nullmpi" + +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. Hence the separate + # local vars. + + local c= + if use mpi-threads; then + # MPI-THREAD requries threading. + c="${c} --with-thread-package=pthreads" + c="${c} --enable-threads=runtime" + else + if use threads ; then + c="${c} --with-thread-package=pthreads" + else + c="${c} --with-thread-package=none" + fi + c="${c} --enable-threads=single" + fi + + c="${c} --sysconfdir=${EPREFIX}/etc/${PN}" + c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}" + + 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} econf \ + --enable-shared \ + --with-hwloc-prefix="${EPREFIX}/usr" \ + ${c} \ + --with-pm=hydra \ + --disable-fast \ + --enable-versioning \ + $(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 use fortran; then + if multilib_is_native_abi; then + mkdir "${T}"/fortran || die + mv "${ED}"usr/include/mpif* "${T}"/fortran || die + mv "${ED}"usr/include/*.mod "${T}"/fortran || die + else + rm "${ED}"usr/include/mpif* "${ED}"usr/include/*.mod + fi + 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 + + einstalldocs + newdoc src/pm/hydra/README README.hydra + if use romio; then + newdoc src/mpi/romio/README README.romio + fi + + if ! use doc; then + rm -rf "${ED}"usr/share/doc/${PF}/www* || die + fi + mpi-providers_safe_mv +} |