aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Gilroy <michael.gilroy24@gmail.com>2017-06-27 05:48:52 +0000
committerMichael Gilroy <michael.gilroy24@gmail.com>2017-06-27 05:48:52 +0000
commitdf0f5d09410b1cd7982984aa5da16cdf98007413 (patch)
tree0b5a9ac9749e0a4788917c44f31cff78194f3ce5 /eclass
parentadded latest openmpi ebuild to the overlay (diff)
downloadgentoo-mpi-df0f5d09410b1cd7982984aa5da16cdf98007413.tar.gz
gentoo-mpi-df0f5d09410b1cd7982984aa5da16cdf98007413.tar.bz2
gentoo-mpi-df0f5d09410b1cd7982984aa5da16cdf98007413.zip
testing mpi-select with new ebuild, purely diagnostic
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mpi-select.eclass21
1 files changed, 20 insertions, 1 deletions
diff --git a/eclass/mpi-select.eclass b/eclass/mpi-select.eclass
index e606903..17485e0 100644
--- a/eclass/mpi-select.eclass
+++ b/eclass/mpi-select.eclass
@@ -62,6 +62,9 @@ get_all_implemenetations()
echo "${INSTALLED_IMPLEMENTATIONS}"
}
+# @ECLASS-FUNCTION: mpi_foreach_implementation
+# @DESCRIPTION:
+# Iterates through each given implementation and repeats commands for each implementation
mpi_foreach_implementation()
{
debug-print-function ${FUNCNAME} "${@}"
@@ -74,7 +77,23 @@ mpi_foreach_implementation()
for implementation in "${@}"
do
# iterate through implementations, repeat same commands for each variant
- if [[ ]]
+ if [[ "${IMPLEMENTATION_LIST}" ~= *"${implementation}"* ]]
+ local BUILD_DIR="${WORKDIR}/build"
+
+ # modeling after multibuild for testing & learning
+ _mpi_run()
+ {
+ local i=1
+ while [[ ${!1} == _* ]];do
+ i+=1
+ done
+
+ [[ ${i} -le ${#} ]]
+ einfo ${@}
+ echo ${@}
+ }
+ else
+ die "invalid implementation!"
fi