aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsbronder <jsbronder@32389bae-6d03-0410-99cf-db05cde120eb>2009-01-14 02:15:21 +0000
committerjsbronder <jsbronder@32389bae-6d03-0410-99cf-db05cde120eb>2009-01-14 02:15:21 +0000
commit82d8c8febd94f7eecfe09a06270b50f6f97ec9f6 (patch)
tree89d3e3624809203c3d71e756322fa33c9c12eda7 /app-admin
parentFinite state toolkit foma. Initial ebuild. (diff)
downloadsci-82d8c8febd94f7eecfe09a06270b50f6f97ec9f6.tar.gz
sci-82d8c8febd94f7eecfe09a06270b50f6f97ec9f6.tar.bz2
sci-82d8c8febd94f7eecfe09a06270b50f6f97ec9f6.zip
Update mpi.eclass. Major changes include simplyfing use and allowing non empi builds to still get some information. Also updated all related packages using this eclass.
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1367 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/eselect-mpi/ChangeLog11
-rw-r--r--app-admin/eselect-mpi/Manifest8
-rw-r--r--app-admin/eselect-mpi/eselect-mpi-0.0.3-r1.ebuild31
-rw-r--r--app-admin/eselect-mpi/eselect-mpi-0.0.3.ebuild23
-rw-r--r--app-admin/eselect-mpi/eselect-mpi-0.0.5.ebuild (renamed from app-admin/eselect-mpi/eselect-mpi-0.0.4.ebuild)2
-rw-r--r--app-admin/eselect-mpi/files/eselect.mpi-0.0.5 (renamed from app-admin/eselect-mpi/files/mpi.eselect-0.0.4)84
-rw-r--r--app-admin/eselect-mpi/files/mpi.eselect-0.0.3249
7 files changed, 45 insertions, 363 deletions
diff --git a/app-admin/eselect-mpi/ChangeLog b/app-admin/eselect-mpi/ChangeLog
deleted file mode 100644
index c13bd7e73..000000000
--- a/app-admin/eselect-mpi/ChangeLog
+++ /dev/null
@@ -1,11 +0,0 @@
-# ChangeLog for app-admin/eselect-mpi
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 01 Apr 2008; Justin Bronder <jsbronder@gentoo.org> ChangeLog:
- Remove old versions. Add support for both sh and csh style shells. Remove
- old versions (0.0.1, 0.0.2).
-
- 29 Feb 2008; Justin Bronder <jsbronder@gentoo.org> ChangeLog:
- Initial import
-
diff --git a/app-admin/eselect-mpi/Manifest b/app-admin/eselect-mpi/Manifest
index 1039c8c58..a022873a2 100644
--- a/app-admin/eselect-mpi/Manifest
+++ b/app-admin/eselect-mpi/Manifest
@@ -1,8 +1,4 @@
+AUX eselect.mpi-0.0.5 6313 RMD160 0746fc0326ab6690521118807e74db6c08b88109 SHA1 9369ca84ef6f491702c5b306f720ae1a256e313d SHA256 d81a2cff73f4b09c88a96a8adaba43380a77f9cc428d6d3f5f56c8bc39d4652e
AUX mpi.csh 105 RMD160 6f5d66e3ba735857bcc4602d557b6506accebcb2 SHA1 b3dcaa750a0d0b534624bf5000939326c654b88f SHA256 ee93756d2cb8b1f41775d786c408b38bf4502700c63f51604b0011fda9947b4e
-AUX mpi.eselect-0.0.3 6686 RMD160 bf322c55ffe26e35c9bda9e8705cc38bd23341dc SHA1 40d5e3f438a26a0b6c7ccc780a64ef6a6b209697 SHA256 9a68894b5535376688373f5b4a1450bf437e68e3950f0e77c7b44d3fdf4eac78
-AUX mpi.eselect-0.0.4 6432 RMD160 09740bcec922c14c8a06eb8afc83ad8c849d5d49 SHA1 f6f82d26a2ec191f2306c20e0a79239ddd80b30b SHA256 e08c95043d260092dff89d2220319b09885bb9e2c1629beb5f01550fb2955c8f
AUX mpi.sh 101 RMD160 aca45809ad649cdfa2cd43d21848ad049a9a262d SHA1 07877c648c103af7e8f13e27361e50592a77380d SHA256 d55162bdc58d24f77b9eca0a7a45cc0b32834513c3f94ca4caa8b28085eab354
-EBUILD eselect-mpi-0.0.3-r1.ebuild 762 RMD160 d09ee6bb35f6ee5f74d5dc38bf7b1dfe79602d41 SHA1 e6e800bf7bb8aa90f7bf9b881de5f6eb3a04598f SHA256 88315bef38a149b4be110e7bb8021e6226987fc704a5759100c4dcc5fa4e2b6a
-EBUILD eselect-mpi-0.0.3.ebuild 503 RMD160 b9bbe6d8b994948ed9f40945dd09b5e6a3264d4a SHA1 979fca1a9cc901798a38d84d2259e41d2d209f33 SHA256 1c00f8dbc1b83d0958179c0a7e86e32d1f06e1631b10a3fb0ab31c66308a4b92
-EBUILD eselect-mpi-0.0.4.ebuild 571 RMD160 7b02bf6c2037c328cdcbfc9b727bedb4a0cd5db8 SHA1 2c45b54b3114f709554ece171d5513d9a175f018 SHA256 4503bfeed8c2517293c59b5edc2e2c4a285ce1fa22273becace8fb1ae0c7d363
-MISC ChangeLog 378 RMD160 5df435e9f2ff9409dba31cd7e645fc794cdb7adf SHA1 aad5a2ad8e4bdfc3053c889ac08844675b5e04b6 SHA256 380c32841c8371e4f3ed025cdd0c6ffab9c56fe71871f059fbd4bac7f4bd32d8
+EBUILD eselect-mpi-0.0.5.ebuild 571 RMD160 58a3ae9771b59949a3a4890f104da97f4df6ad15 SHA1 652c7e4856f993e76b2650284bf03c9ac19d3ac5 SHA256 1bd5f43a15552c4c80f7c635a7ed0bb5d60bf258fa8d6b3e3e9d1de617bf176f
diff --git a/app-admin/eselect-mpi/eselect-mpi-0.0.3-r1.ebuild b/app-admin/eselect-mpi/eselect-mpi-0.0.3-r1.ebuild
deleted file mode 100644
index 5b6f8ca00..000000000
--- a/app-admin/eselect-mpi/eselect-mpi-0.0.3-r1.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-DESCRIPTION="eselect-mpi"
-HOMEPAGE="http://www.gentoo.org/proj/en/eselect/"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
-
-DEPEND="app-admin/eselect"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
- MODULEDIR="/usr/share/eselect/modules"
- MODULE="mpi"
- mkdir -p "${S}"
- cp "${FILESDIR}"/${MODULE}.eselect-${PV} "${S}"/
- # Thanks to Bryan Green, bug #226105
- sed -i 's:\(setenv ESELECT_MPI_IMP\)=\(.*\):\1 \2:' "${S}/${MODULE}.eselect-${PV}"
- sed -i 's:\(setenv PATH\)=\(.*\):\1\2:' "${S}/${MODULE}.eselect-${PV}"
-}
-
-src_install() {
- dodir ${MODULEDIR}
- insinto ${MODULEDIR}
- newins "${S}"/${MODULE}.eselect-${PV} ${MODULE}.eselect
-}
diff --git a/app-admin/eselect-mpi/eselect-mpi-0.0.3.ebuild b/app-admin/eselect-mpi/eselect-mpi-0.0.3.ebuild
deleted file mode 100644
index dd8660dde..000000000
--- a/app-admin/eselect-mpi/eselect-mpi-0.0.3.ebuild
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-DESCRIPTION="eselect-mpi"
-HOMEPAGE="http://www.gentoo.org/proj/en/eselect/"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
-
-DEPEND="app-admin/eselect"
-RDEPEND="${DEPEND}"
-
-src_install() {
- local MODULEDIR="/usr/share/eselect/modules"
- local MODULE="mpi"
- dodir ${MODULEDIR}
- insinto ${MODULEDIR}
- newins "${FILESDIR}"/${MODULE}.eselect-${PVR} ${MODULE}.eselect
-}
diff --git a/app-admin/eselect-mpi/eselect-mpi-0.0.4.ebuild b/app-admin/eselect-mpi/eselect-mpi-0.0.5.ebuild
index a71421c8d..b601701e3 100644
--- a/app-admin/eselect-mpi/eselect-mpi-0.0.4.ebuild
+++ b/app-admin/eselect-mpi/eselect-mpi-0.0.5.ebuild
@@ -19,7 +19,7 @@ src_install() {
MODULE="mpi"
dodir ${MODULEDIR}
insinto ${MODULEDIR}
- newins "${FILESDIR}"/${MODULE}.eselect-${PV} ${MODULE}.eselect
+ newins "${FILESDIR}"/eselect.${MODULE}-${PV} ${MODULE}.eselect
exeinto /etc/profile.d
doexe "${FILESDIR}"/mpi.csh
doexe "${FILESDIR}"/mpi.sh
diff --git a/app-admin/eselect-mpi/files/mpi.eselect-0.0.4 b/app-admin/eselect-mpi/files/eselect.mpi-0.0.5
index 64303ee9b..e7fafd284 100644
--- a/app-admin/eselect-mpi/files/mpi.eselect-0.0.4
+++ b/app-admin/eselect-mpi/files/eselect.mpi-0.0.5
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: $
-DESCRIPTION="Manage MPI implementations"
+DESCRIPTION="Manage MPI classes"
MAINTAINER="jsbronder@gentoo.org"
SVN_DATE='$Date: $'
VERSION="0.0.2"
@@ -19,22 +19,22 @@ inherit path-manipulation config
# If you can think of a better way to do this, while still allowing user's
# freedom, please let me know.
-# List the valid mpi implementations currently installed.
-find_implementations() {
- local imps
+# List the valid mpi classes currently installed.
+find_classes() {
+ local classes
for f in ${ROOT}/etc/env.d/mpi/*; do
[[ -f ${f} ]] || continue
f=$(basename ${f})
[[ "${f#mpi-}" == "${f}" ]] && continue
- imps=(${imps[@]} ${f})
+ classes=(${classes[@]} ${f})
done
- echo ${imps[@]}
+ echo ${classes[@]}
}
-# User's current environment has the implementation configured in it.
+# User's current environment has the class configured in it.
is_in_use() { [ "${ESELECT_MPI_IMP}" == "${1}" ]; }
-# User's env file is ready for sourcing for this implementation.
+# User's env file is ready for sourcing for this class
is_enabled() {
[ "$(var_from_user_envd ESELECT_MPI_IMP)" == "${1}" ]
}
@@ -44,10 +44,10 @@ var_from_user_envd(){
echo "$(source ${user_ev_sh}; echo ${!1})"
}
-# Is this a valid implementation?
-is_implementation() {
- local imps=$(find_implementations)
- for i in ${imps[@]}; do
+# Is this a valid class?
+is_class() {
+ local classes=$(find_classes)
+ for i in ${classes[@]}; do
[[ "${i}" == "${1}" ]] && return 0
done
return 1
@@ -78,14 +78,14 @@ global_env() {
}
clean_var() {
- local imp v
+ local class v
local value="${!1}"
- local d="$(canonicalise "${ROOT}/etc/env.d/mpi/${imp}")"
+ local d="$(canonicalise "${ROOT}/etc/env.d/mpi/${class}")"
[ -z "${value}" ] && return 0
[ -z "${d}" ] && continue
- for imp in $(find_implementations); do
- v=$(load_config ${d}/${imp} ${1})
+ for class in $(find_classes); do
+ v=$(load_config ${d}/${class} ${1})
[ -z "${v}" ] && continue
value="$(echo ${value} | sed -e "s|${v}:||g")"
done
@@ -95,26 +95,26 @@ clean_var() {
### list action ###
-describe_list() { echo "List available implementations"; }
+describe_list() { echo "List available classs"; }
describe_list_parameters() { echo "[-p]"; }
do_list() {
- imps=( $(find_implementations) )
+ classes=( $(find_classes) )
init
if [[ ${@} == *-p* ]]; then
- echo "${imps[@]}"
+ echo "${classes[@]}"
else
- write_list_start "Available MPI implementations:"
- if [[ -n "${imps[@]}" ]]; then
- for (( i=0; i<${#imps[@]}; i++ )); do
- if is_in_use ${imps[$i]} && is_enabled ${imps[$i]}; then
- write_kv_list_entry "${imps[$i]}" "Enabled, In Use"
- elif is_in_use ${imps[$i]}; then
- write_kv_list_entry "${imps[$i]}" "In Use"
- elif is_enabled ${imps[$i]}; then
- write_kv_list_entry "${imps[$i]}" "Enabled"
+ write_list_start "Available MPI classs:"
+ if [[ -n "${classes[@]}" ]]; then
+ for (( i=0; i<${#classes[@]}; i++ )); do
+ if is_in_use ${classes[$i]} && is_enabled ${classes[$i]}; then
+ write_kv_list_entry "${classes[$i]}" "Enabled, In Use"
+ elif is_in_use ${classes[$i]}; then
+ write_kv_list_entry "${classes[$i]}" "In Use"
+ elif is_enabled ${classes[$i]}; then
+ write_kv_list_entry "${classes[$i]}" "Enabled"
else
- write_kv_list_entry "${imps[$i]}" "--"
+ write_kv_list_entry "${classes[$i]}" "--"
fi
done
else
@@ -128,7 +128,7 @@ do_list() {
### set action ###
describe_set() {
- echo "Select a MPI implementation."
+ echo "Select a MPI class."
}
describe_set_parameters() {
@@ -141,9 +141,9 @@ do_set() {
init
global_env ${1}
- [[ -z ${1} ]] && die -q "You didnt specifiy any implementation for use."
- [[ ${#@} -ne 1 ]] && die -q "You may only select exactly one implementation."
- ! is_implementation ${1} && die -q "${1} is not an implementation."
+ [[ -z ${1} ]] && die -q "You didnt specifiy any class for use."
+ [[ ${#@} -ne 1 ]] && die -q "You may only select exactly one class."
+ ! is_class ${1} && die -q "${1} is not an class."
is_enabled ${1} && return 0
binpath="$(load_config ${ev} PATH):$(clean_var PATH)"
@@ -185,7 +185,7 @@ do_unset() {
### add action (from skel pretty much)
describe_add() {
- echo "Add a new mpi implementation"
+ echo "Add a new mpi class"
}
describe_add_parameters() {
@@ -193,9 +193,9 @@ describe_add_parameters() {
}
do_add() {
- local imp
+ local class
[[ ${#@} -ne 1 ]] \
- && die -q "Bad arguments, use: mpi add /some/full/path/<implementation>.eselect"
+ && die -q "Bad arguments, use: mpi add /some/full/path/<class>.eselect"
# If $D is set, we're adding from portage so we want to respect sandbox.
# Otherwise, respect the ROOT variable.
@@ -210,21 +210,21 @@ do_add() {
fi
fi
- imp=$(basename ${1}); imp=${imp%.eselect}
- if ! cp ${1} ${PREFIX}/etc/env.d/mpi/${imp}; then
- die -q "Installing ${1} as ${PREFIX}/etc/env.d/mpi/${imp} failed!"
+ class=$(basename ${1}); class=${class%.eselect}
+ if ! cp ${1} ${PREFIX}/etc/env.d/mpi/${class}; then
+ die -q "Installing ${1} as ${PREFIX}/etc/env.d/mpi/${class} failed!"
fi
}
### printvar action ###
describe_printvar() { echo "Print variables stored in global env.d file."; }
-describe_printvar_parameters() { echo "<implementation> <variable>"; }
+describe_printvar_parameters() { echo "<class> <variable>"; }
do_printvar() {
if [[ ${#@} -ne 2 ]] \
- || ! is_implementation ${1}; then
- die -q "Specify exactly 1 implementation and 1 variable."
+ || ! is_class ${1}; then
+ die -q "Specify exactly 1 class and 1 variable."
fi
global_env ${1}
echo "$(load_config ${ev} ${2})"
diff --git a/app-admin/eselect-mpi/files/mpi.eselect-0.0.3 b/app-admin/eselect-mpi/files/mpi.eselect-0.0.3
deleted file mode 100644
index 349d2471e..000000000
--- a/app-admin/eselect-mpi/files/mpi.eselect-0.0.3
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id: $
-
-DESCRIPTION="Manage MPI implementations"
-MAINTAINER="jsbronder@gentoo.org"
-SVN_DATE='$Date: $'
-VERSION="0.0.2"
-
-inherit path-manipulation config
-
-# The basic idea is we want to allow every use to select their own mpi
-# implementation they want, and a ${HOME}/.env.d/mpi file is created for them.
-# A user then is -required- to source the env file. This sets PATH, MANPATH,
-# and LD_LIBRARY_PATH. I'm sure I'm forgetting something here.
-# Calling unset only wipes out the env file, replacing it with what we
-# previously added stripped out.
-
-# If you can think of a better way to do this, while still allowing user's
-# freedom, please let me know.
-
-# List the valid mpi implementations currently installed.
-find_implementations() {
- local imps
- for f in ${ROOT}/etc/env.d/mpi/*; do
- [[ -f ${f} ]] || continue
- f=$(basename ${f})
- [[ "${f#mpi-}" == "${f}" ]] && continue
- imps=(${imps[@]} ${f})
- done
- echo ${imps[@]}
-}
-
-# User's current environment has the implementation configured in it.
-is_in_use() { [ "${ESELECT_MPI_IMP}" == "${1}" ]; }
-
-# User's env file is ready for sourcing for this implementation.
-is_enabled() {
- [ "$(var_from_user_envd ESELECT_MPI_IMP)" == "${1}" ]
-}
-
-var_from_user_envd(){
- [ ! -f ${user_ev_sh} ] && return 0
- echo "$(source ${user_ev_sh}; echo ${!1})"
-}
-
-# Is this a valid implementation?
-is_implementation() {
- local imps=$(find_implementations)
- for i in ${imps[@]}; do
- [[ "${i}" == "${1}" ]] && return 0
- done
- return 1
-}
-
-init() {
- local d
- [[ ${UID} -eq 0 ]] && HOME="${ROOT}/root"
- d="$(canonicalise "${ROOT}/${HOME}")"
- d="${d}/.env.d/"
- user_ev_sh="${d}mpi.sh";
- user_ev_csh="${d}mpi.csh";
-
- if [[ ! -d "${d}" ]]; then
- mkdir "${d}" || die -q "Failed to create ${d}."
- elif [[ ! -w "${d}" ]]; then
- die -q "You do not have permission to mkdir ${d}."
- fi
- [[ -f "${user_ev_sh}" && ! -w "${user_ev_sh}" \
- && -f "${user_ev_csh}" && ! -w "${user_ev_csh}" ]] \
- && die -q "You do not have permission to write to ${user_ev_sh} or ${user_ev_csh}."
-}
-
-global_env() {
- local d=$(canonicalise "${ROOT}/etc/env.d/mpi/${1}")
- [ -z "${d}" ] && die "Cannot find global env file for ${1}"
- ev=${d}
-}
-
-clean_var() {
- local imp v
- local value="${!1}"
- local d="$(canonicalise "${ROOT}/etc/env.d/mpi/${imp}")"
- [ -z "${value}" ] && return 0
- [ -z "${d}" ] && continue
-
- for imp in $(find_implementations); do
- v=$(load_config ${d}/${imp} ${1})
- [ -z "${v}" ] && continue
- value="$(echo ${value} | sed -e "s|${v}:||g")"
- done
- echo ${value}
-}
-
-
-### list action ###
-
-describe_list() { echo "List available implementations"; }
-describe_list_parameters() { echo "[-p]"; }
-
-do_list() {
- imps=( $(find_implementations) )
- init
- if [[ ${@} == *-p* ]]; then
- echo "${imps[@]}"
- else
- write_list_start "Available MPI implementations:"
- if [[ -n "${imps[@]}" ]]; then
- for (( i=0; i<${#imps[@]}; i++ )); do
- if is_in_use ${imps[$i]} && is_enabled ${imps[$i]}; then
- write_kv_list_entry "${imps[$i]}" "Enabled, In Use"
- elif is_in_use ${imps[$i]}; then
- write_kv_list_entry "${imps[$i]}" "In Use"
- elif is_enabled ${imps[$i]}; then
- write_kv_list_entry "${imps[$i]}" "Enabled"
- else
- write_kv_list_entry "${imps[$i]}" "--"
- fi
- done
- else
- write_kv_list_entry "(none found)" ""
- fi
- fi
- return 0
-}
-
-
-### set action ###
-
-describe_set() {
- echo "Select a MPI implementation."
-}
-
-describe_set_parameters() {
- echo "<target>"
-}
-
-do_set() {
- local binpath lld manpath
-
- init
- global_env ${1}
-
- [[ -z ${1} ]] && die -q "You didnt specifiy any implementation for use."
- [[ ${#@} -ne 1 ]] && die -q "You may only select exactly one implementation."
- ! is_implementation ${1} && die -q "${1} is not an implementation."
- is_enabled ${1} && return 0
-
- binpath="$(load_config ${ev} PATH):$(clean_var PATH)"
- lld="$(load_config ${ev} LD_LIBRARY_PATH):$(clean_var LD_LIBRARY_PATH)"
- manpath="$(load_config ${ev} MANPATH):$(clean_var MANPATH)"
-
-cat <<-EOF >${user_ev_sh}
-export PATH="${binpath}"
-export MANPATH="${manpath}"
-export LD_LIBRARY_PATH="${lld}"
-export ESELECT_MPI_IMP="${1}"
-EOF
-
-cat <<-EOF >${user_ev_csh}
-setenv PATH "${binpath}"
-setenv MANPATH "${manpath}"
-setenv LD_LIBRARY_PATH "${lld}"
-setenv ESELECT_MPI_IMP="${1}"
-EOF
-
- echo "Remember to source ${user_ev_sh} or ${user_ev_csh}"
-}
-
-
-### unset action ###
-describe_unset() {
- echo "Restore MPI-less environment."
-}
-
-do_unset() {
- local binpath lld manpath
-
- init
-
- binpath="$(clean_var PATH)"
- lld="$(clean_var LD_LIBRARY_PATH)"
- manpath="$(clean_var MANPATH)"
-cat <<-EOF >${user_ev_sh}
-export PATH="${binpath}"
-export MANPATH="${manpath}"
-export LD_LIBRARY_PATH="${lld}"
-unset ESELECT_MPI_IMP
-EOF
-
-cat <<-EOF >${user_ev_csh}
-setenv PATH= ${binpath}"
-setenv MANPATH "${manpath}"
-setenv LD_LIBRARY_PATH ${lld}"
-setenv ESELECT_MPI_IMP ""
-EOF
-
- echo "Remember to source ${user_ev_sh} or ${user_ev_csh}"
-}
-
-### add action (from skel pretty much)
-describe_add() {
- echo "Add a new mpi implementation"
-}
-
-describe_add_parameters() {
- echo "<file>"
-}
-
-do_add() {
- local imp
- [[ ${#@} -ne 1 ]] \
- && die -q "Bad arguments, use: mpi add /some/full/path/<implementation>.eselect"
-
- # If $D is set, we're adding from portage so we want to respect sandbox.
- # Otherwise, respect the ROOT variable.
- local PREFIX=${D:-${ROOT}/}
-
- # Create directory if necessary
- if [[ ! -e ${PREFIX}/etc/env.d/mpi/ ]]; then
- mkdir -p ${PREFIX}/etc/env.d/mpi/
- else
- if [[ ! -d ${PREFIX}/etc/env.d/mpi/ ]]; then
- die -q "${PREFIX}/etc/env.d/mpi/ exists but isn't a directory!"
- fi
- fi
-
- imp=$(basename ${1}); imp=${imp%.eselect}
- if ! cp ${1} ${PREFIX}/etc/env.d/mpi/${imp}; then
- die -q "Installing ${1} as ${PREFIX}/etc/env.d/mpi/${imp} failed!"
- fi
-}
-
-
-### printvar action ###
-describe_printvar() { echo "Print variables stored in global env.d file."; }
-describe_printvar_parameters() { echo "<implementation> <variable>"; }
-
-do_printvar() {
- if [[ ${#@} -ne 2 ]] \
- || ! is_implementation ${1}; then
- die -q "Specify exactly 1 implementation and 1 variable."
- fi
- global_env ${1}
- echo "$(load_config ${ev} ${2})"
-}
-
-# vim: set ft=eselect :
-