aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2009-12-03 20:25:27 -0500
committerJustin Bronder <jsbronder@gentoo.org>2009-12-04 11:11:15 -0500
commit2d60dfdb0beb2fc08ead668ac5e75505cd6ac75c (patch)
tree1cc78154ccd0883d0e316db316b8efe0d09641b6 /eclass/mpi.eclass
parentNote revisions of patches in upstream repo. (diff)
downloadsci-2d60dfdb0beb2fc08ead668ac5e75505cd6ac75c.tar.gz
sci-2d60dfdb0beb2fc08ead668ac5e75505cd6ac75c.tar.bz2
sci-2d60dfdb0beb2fc08ead668ac5e75505cd6ac75c.zip
Add MPI_PKG_USE_ROMIO to mpi.eclass.
Diffstat (limited to 'eclass/mpi.eclass')
-rw-r--r--eclass/mpi.eclass13
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass
index be0ef2dc6..8f9e60acd 100644
--- a/eclass/mpi.eclass
+++ b/eclass/mpi.eclass
@@ -252,6 +252,11 @@ MPI_PKG_USE_CXX="${MPI_PKG_USE_CXX:-0}"
MPI_PKG_USE_FC="${MPI_PKG_USE_FC:-0}"
+# @ECLASS-VARIABLE: MPI_PKG_USE_ROMIO
+# @DESCRIPTION: Require a mpi implementation with romio enabled.
+# This feature requires EAPI 2 style use dependencies
+MPI_PKG_USE_ROMIO="${MPI_PKG_USE_ROMIO:-0}"
+
# @FUNCTION: mpi_pkg_deplist
# @USAGE:
@@ -263,22 +268,24 @@ mpi_pkg_deplist() {
case "${EAPI}" in
2)
[[ ${MPI_PKG_USE_CXX} -ne 0 ]] \
- && usedeps="cxx"
+ && usedeps=",cxx"
[[ ${MPI_PKG_USE_FC} -ne 0 ]] \
&& usedeps="${use_deps},fortran"
+ [[ ${MPI_PKG_USE_ROMIO} -ne 0 ]] \
+ && usedeps="${use_deps},romio"
;;
*)
;;
esac
if mpi_classed; then
- ver="virtual/$(mpi_class) sys-cluster/empi"
+ ver="sys-cluster/empi virtual/$(mpi_class)"
else
ver="virtual/mpi"
fi
if [ -n "${usedeps}" ]; then
- ver="${ver}[${usedeps}]"
+ ver="${ver}[${usedeps:1}]"
fi
if ! mpi_classed && [ -n "${MPI_UNCLASSED_BLOCKERS}" ]; then