aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gmail.com>2009-06-26 22:09:00 -0400
committerJustin Bronder <jsbronder@gmail.com>2009-06-26 22:09:00 -0400
commita43a65f9b9f9819dd7e21e1c3e6db749744024dc (patch)
treef831411fa26735a5af492d2586785acbf289c06d /app-admin
parentBump empi-0.6, see included changelog for details. (diff)
downloadsci-a43a65f9b9f9819dd7e21e1c3e6db749744024dc.tar.gz
sci-a43a65f9b9f9819dd7e21e1c3e6db749744024dc.tar.bz2
sci-a43a65f9b9f9819dd7e21e1c3e6db749744024dc.zip
Remove app-admin/eselect-mpi, included in sys-cluster/empi.
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/eselect-mpi/Manifest4
-rw-r--r--app-admin/eselect-mpi/eselect-mpi-0.0.5.ebuild26
-rw-r--r--app-admin/eselect-mpi/files/eselect.mpi-0.0.5234
-rw-r--r--app-admin/eselect-mpi/files/mpi.csh3
-rw-r--r--app-admin/eselect-mpi/files/mpi.sh3
5 files changed, 0 insertions, 270 deletions
diff --git a/app-admin/eselect-mpi/Manifest b/app-admin/eselect-mpi/Manifest
deleted file mode 100644
index a022873a2..000000000
--- a/app-admin/eselect-mpi/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-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.sh 101 RMD160 aca45809ad649cdfa2cd43d21848ad049a9a262d SHA1 07877c648c103af7e8f13e27361e50592a77380d SHA256 d55162bdc58d24f77b9eca0a7a45cc0b32834513c3f94ca4caa8b28085eab354
-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.5.ebuild b/app-admin/eselect-mpi/eselect-mpi-0.0.5.ebuild
deleted file mode 100644
index b601701e3..000000000
--- a/app-admin/eselect-mpi/eselect-mpi-0.0.5.ebuild
+++ /dev/null
@@ -1,26 +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() {
- MODULEDIR="/usr/share/eselect/modules"
- MODULE="mpi"
- dodir ${MODULEDIR}
- insinto ${MODULEDIR}
- 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/eselect.mpi-0.0.5 b/app-admin/eselect-mpi/files/eselect.mpi-0.0.5
deleted file mode 100644
index e7fafd284..000000000
--- a/app-admin/eselect-mpi/files/eselect.mpi-0.0.5
+++ /dev/null
@@ -1,234 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id: $
-
-DESCRIPTION="Manage MPI classes"
-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 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
- classes=(${classes[@]} ${f})
- done
- echo ${classes[@]}
-}
-
-# 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 class
-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 class?
-is_class() {
- local classes=$(find_classes)
- for i in ${classes[@]}; 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 class v
- local value="${!1}"
- local d="$(canonicalise "${ROOT}/etc/env.d/mpi/${class}")"
- [ -z "${value}" ] && return 0
- [ -z "${d}" ] && continue
-
- for class in $(find_classes); do
- v=$(load_config ${d}/${class} ${1})
- [ -z "${v}" ] && continue
- value="$(echo ${value} | sed -e "s|${v}:||g")"
- done
- echo ${value}
-}
-
-
-### list action ###
-
-describe_list() { echo "List available classs"; }
-describe_list_parameters() { echo "[-p]"; }
-
-do_list() {
- classes=( $(find_classes) )
- init
- if [[ ${@} == *-p* ]]; then
- echo "${classes[@]}"
- else
- 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 "${classes[$i]}" "--"
- fi
- done
- else
- write_kv_list_entry "(none found)" ""
- fi
- fi
- return 0
-}
-
-
-### set action ###
-
-describe_set() {
- echo "Select a MPI class."
-}
-
-describe_set_parameters() {
- echo "<target>"
-}
-
-do_set() {
- local binpath lld manpath
-
- init
- global_env ${1}
-
- [[ -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)"
- 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}, ${user_ev_csh} or /etc/profile"
-}
-
-
-### unset action ###
-describe_unset() {
- echo "Restore MPI-less environment."
-}
-
-do_unset() {
- local binpath lld manpath
-
- init
- [ -f "${user_ev_sh}" ] && rm -f "${user_ev_sh}"
- [ -f "${user_ev_csh}" ] && rm -f "${user_ev_csh}"
-
- echo "Remember to source ${user_ev_sh}, ${user_ev_csh} or /etc/profile"
-}
-
-### add action (from skel pretty much)
-describe_add() {
- echo "Add a new mpi class"
-}
-
-describe_add_parameters() {
- echo "<file>"
-}
-
-do_add() {
- local class
- [[ ${#@} -ne 1 ]] \
- && 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.
- 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
-
- 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 "<class> <variable>"; }
-
-do_printvar() {
- if [[ ${#@} -ne 2 ]] \
- || ! is_class ${1}; then
- die -q "Specify exactly 1 class and 1 variable."
- fi
- global_env ${1}
- echo "$(load_config ${ev} ${2})"
-}
-
-# vim: set ft=eselect :
-
diff --git a/app-admin/eselect-mpi/files/mpi.csh b/app-admin/eselect-mpi/files/mpi.csh
deleted file mode 100644
index 32506b4cc..000000000
--- a/app-admin/eselect-mpi/files/mpi.csh
+++ /dev/null
@@ -1,3 +0,0 @@
-if ( -d "${HOME}"/.env.d && -f "${HOME}"/.env.d/mpi.csh ) then
- source "${HOME}"/.env.d/mpi.csh
-endif
diff --git a/app-admin/eselect-mpi/files/mpi.sh b/app-admin/eselect-mpi/files/mpi.sh
deleted file mode 100644
index 5483247e5..000000000
--- a/app-admin/eselect-mpi/files/mpi.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ -d "${HOME}"/.env.d -a -f "${HOME}"/.env.d/mpi.sh ]; then
- source "${HOME}"/.env.d/mpi.sh
-fi