summaryrefslogtreecommitdiff
path: root/app-eselect/eselect-opencascade/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-eselect/eselect-opencascade/files
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-eselect/eselect-opencascade/files')
-rw-r--r--app-eselect/eselect-opencascade/files/eselect-opencascade-0.eselect104
1 files changed, 0 insertions, 104 deletions
diff --git a/app-eselect/eselect-opencascade/files/eselect-opencascade-0.eselect b/app-eselect/eselect-opencascade/files/eselect-opencascade-0.eselect
deleted file mode 100644
index da97cb4a8c33..000000000000
--- a/app-eselect/eselect-opencascade/files/eselect-opencascade-0.eselect
+++ /dev/null
@@ -1,104 +0,0 @@
-# -*-eselect-*- vim: ft=eselect
-# Copyright (c) 2006-2013 Gentoo Foundation
-#
-# This file is part of the 'eselect' tools framework.
-#
-# eselect is free software: you can redistribute it and/or modify it under the
-# terms of the GNU General Public License as published by the Free Software
-# Foundation, either version 2 of the License, or (at your option) any later
-# version.
-#
-# eselect is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
-# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along with
-# eselect. If not, see <http://www.gnu.org/licenses/>.
-
-MODULE=opencascade
-TARGET=${EROOT}/etc/env.d/51${MODULE}
-CONFDIR=${EROOT}/etc/env.d/${MODULE}
-
-inherit tests path-manipulation
-
-find_implems() {
- local -a implems
- for file in "${CONFDIR}"/* ; do
- [[ -f ${file} ]] || continue
- implems=(${implems[@]} "${file##*/}")
- done
- echo ${implems[@]}
-}
-
-is_active() {
- local f
- [[ $# -eq 1 ]] || die "Need exactly 1 arguments!"
- [[ -L ${TARGET} ]] || return 1
- f=$(canonicalise ${TARGET})
- [[ -e ${f} ]] || return 1
- [[ ${f##*/} == ${1} ]]
-}
-
-# switch_implem $implem
-# switches $iface combination to $implem
-switch_implem() {
- [[ $# -eq 1 ]] || die "Need exactly 1 arguments!"
- $(is_active ${1}) && return
- [[ -L ${TARGET} ]] && rm -f ${TARGET}
- ln -s ${MODULE}/${1} ${TARGET}
- env-update
- echo "If you intend to use the selected opencascade in"
- echo "an already running shell, please remember to do:"
- echo
- echo ". /etc/profile"
-}
-
-do_list() {
- local implem i
- write_list_start "Installed $MODULE"
- for implem in $(find_implems) ; do
- (( i++ ))
- is_active ${implem##*/} \
- && implem=$(highlight_marker "${implem}")
- write_numbered_list_entry $i "${implem}"
- done
-}
-
-describe_set() {
- echo "Activate one of the installed $MODULE implementations"
-}
-
-describe_set_parameters() {
- echo "<implementation>"
-}
-
-describe_set_options() {
- echo "implementation : implementation name or number (from 'list' action)"
-}
-
-do_set() {
- [[ $# -ne 1 ]] && die -q "Please specify exactly 1 implementation!"
- local -a implems
-
- implems=( $(find_implems) )
-
- if is_number ${1} ; then
- new_implem=${implems[$(( ${1} - 1 ))]}
- else
- new_implem=${1}
- fi
- echo $new_implem
- switch_implem ${new_implem}
-}
-
-describe_show() {
- echo "Print the currently active $MODULE implementation"
-}
-
-do_show() {
- local f n
- [[ -L ${TARGET} ]] || return 1
- f=$(canonicalise ${TARGET})
- [[ -f ${f} ]] || return 1
- echo ${f##*/}
-}