aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaelJGilroy <michael.gilroy24@gmail.com>2017-06-14 21:52:21 -0600
committerMichaelJGilroy <michael.gilroy24@gmail.com>2017-06-14 21:52:21 -0600
commit7359a9e30ca492b5f92a848aea8d92acba24d8e1 (patch)
tree023fcab638d0bb087b48409f01aaa0437398ec9c
parentexporting functions (diff)
downloadgentoo-mpi-7359a9e30ca492b5f92a848aea8d92acba24d8e1.tar.gz
gentoo-mpi-7359a9e30ca492b5f92a848aea8d92acba24d8e1.tar.bz2
gentoo-mpi-7359a9e30ca492b5f92a848aea8d92acba24d8e1.zip
added conditoins based on implementation (pseudocode)
-rw-r--r--eclass/mpi-select.eclass27
1 files changed, 21 insertions, 6 deletions
diff --git a/eclass/mpi-select.eclass b/eclass/mpi-select.eclass
index 4dfa8d3..9a0e467 100644
--- a/eclass/mpi-select.eclass
+++ b/eclass/mpi-select.eclass
@@ -20,6 +20,12 @@ esac
# List of used MPI implementation
IMPLEMENTATION_LIST="mpich mpich2 openmpi openib-mvapich2"
+# @ECLASS-VARIABLE: INSTALLED_IMPLEMENTATIONS
+# @INTERNAL
+# @DESCRIPTION:
+# List of used MPI implementation
+INSTALLED_IMPLEMENTATIONS=mpi-select_detect_installs
+
# @ECLASS-VARIABLE: MPI_DIR
# @INTERNAL
# @DESCRIPTION:
@@ -30,11 +36,12 @@ MPI_DIR="/usr/$(get_libdir)/mpi"
# @DESCRIPTION:
# Install MPI software with arbitrary implementations
mpi-select_implementation_install (){
- local installed=mpi-select_detect_installs
for implementation in "$@"
do
if [[ "${installed}" == *"${implementation}"* ]]; then
- # go through src_[phase]
+ mpi-select_src_configure "${implementation}"
+ mpi-select_src_compile "${implementation}"
+ mpi-select_src_install "${implementation}"
else
die "invalid implementation"
fi
@@ -53,17 +60,25 @@ mpi-select_detect_installs (){
}
mpi-select_src_configure (){
- default
+ case "${1}" in
+ # cases based on implementation
+ esac
}
mpi-select_src_compile (){
- default
+ case "${1}" in
+ # cases based on implementation
+ esac
}
mpi-select_src_test (){
- default
+ case "${1}" in
+ # cases based on implementation
+ esac
}
mpi-select_src_install (){
- default
+ case "${1}" in
+ # cases based on implementation
+ esac
}