diff options
author | MichaelJGilroy <michael.gilroy24@gmail.com> | 2017-06-10 06:54:46 -0600 |
---|---|---|
committer | MichaelJGilroy <michael.gilroy24@gmail.com> | 2017-06-10 06:54:46 -0600 |
commit | 4225b26a8e603d06c51e4b50f18bf1a7f05f9472 (patch) | |
tree | 384e399b40c8a6ab862a87a660db61d4e47fa6d0 | |
parent | safe_mv stable (diff) | |
download | gentoo-mpi-4225b26a8e603d06c51e4b50f18bf1a7f05f9472.tar.gz gentoo-mpi-4225b26a8e603d06c51e4b50f18bf1a7f05f9472.tar.bz2 gentoo-mpi-4225b26a8e603d06c51e4b50f18bf1a7f05f9472.zip |
added generic implementat_install function
-rw-r--r-- | eclass/mpi-select.eclass | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/eclass/mpi-select.eclass b/eclass/mpi-select.eclass index f151cda..c27339b 100644 --- a/eclass/mpi-select.eclass +++ b/eclass/mpi-select.eclass @@ -12,4 +12,22 @@ case ${EAPI:-0} in *) die "mpi-select.eclass does not support EAPI ${EAPI}" esac +# @ECLASS-VARIABLE: IMPLEMENTATION_LIST +# @INTERNAL +# @DESCRIPTION: +# List of used MPI implementation +IMPLEMENTATION_LIST="mpich mpich2 openmpi openib-mvapich2" +# @ECLASS-FUNCTION: mpi-select_implementation_install +# @DESCRIPTION: +# Install MPI software with arbitrary implementations +mpi-select_implementation_install (){ + for implementation in "$@" + do + if [[ "${IMPLEMENTATION_LIST}" == *"${implementation}"* ]]; then + # go through src_[phase] + else + die "invalid implementation" + fi + done +} |