aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaelJGilroy <michael.gilroy24@gmail.com>2017-08-04 13:55:18 -0600
committerMichaelJGilroy <michael.gilroy24@gmail.com>2017-08-04 13:55:18 -0600
commit6437ec4fb880d27b06e4bb7162bb0ce4b2e46388 (patch)
tree324f31ef6311b7ffd85a86b7ede09332374b56a0
parentadded hpl-2.0-r1 to the overlay (diff)
downloadgentoo-mpi-6437ec4fb880d27b06e4bb7162bb0ce4b2e46388.tar.gz
gentoo-mpi-6437ec4fb880d27b06e4bb7162bb0ce4b2e46388.tar.bz2
gentoo-mpi-6437ec4fb880d27b06e4bb7162bb0ce4b2e46388.zip
modified mpi_dependencies to eliminate unnecesary spaces
-rw-r--r--eclass/mpi-select.eclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/mpi-select.eclass b/eclass/mpi-select.eclass
index 54b7b2d..d254b50 100644
--- a/eclass/mpi-select.eclass
+++ b/eclass/mpi-select.eclass
@@ -67,10 +67,15 @@ mpi_pkg_compiler
# Grabs $MPI_TARGETS to add to RDEPEND
mpi_dependencies()
{
- local impl ret
+ local impl
+ local ret=""
for impl in "${MPI_TARGETS}"; do
- ret="${ret} =sys-cluster/${impl}"
+ if [[ -z "${ret// }" ]]; then
+ ret="=sys-cluster/${impl}"
+ else
+ ret="${ret} =sys-cluster/${impl}"
+ fi
done
echo "${ret}"
@@ -81,6 +86,7 @@ mpi_dependencies()
# Fetches most recent version of mpicc installed
get_mpicc()
{
+ # TODO: break this up, or modularize like the mpi_pkg_** functions
echo "$(ls -dv /usr/$(get_libdir)/mpi/mpich-* | tail -n 1)" || die "could not get mpicc"
}