summaryrefslogtreecommitdiff
path: root/app-eselect/eselect-xvmc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-11 07:02:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-11 07:02:28 +0100
commit068424b26532f3551a81421a9be67ed206e5c11a (patch)
tree583b8d979899a463a4ef5b26d3d49e85df987623 /app-eselect/eselect-xvmc
parentd162ba1860a88062f4cd61f8b52fc303ba0b2991 (diff)
gentoo resync : 11.08.2021
Diffstat (limited to 'app-eselect/eselect-xvmc')
-rw-r--r--app-eselect/eselect-xvmc/Manifest3
-rw-r--r--app-eselect/eselect-xvmc/eselect-xvmc-0.4.ebuild20
-rw-r--r--app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect198
-rw-r--r--app-eselect/eselect-xvmc/metadata.xml9
4 files changed, 0 insertions, 230 deletions
diff --git a/app-eselect/eselect-xvmc/Manifest b/app-eselect/eselect-xvmc/Manifest
deleted file mode 100644
index 61a240ead516..000000000000
--- a/app-eselect/eselect-xvmc/Manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-AUX eselect-xvmc-0.4.eselect 4169 BLAKE2B 88d4d93097e51c5e2f6b98adbf2e09a643a3ef37176010907035486b4d98eb38c02e0243a8ec617c89bc0204948db83431174d1bb217f6e9fc6f3fcb649338dd SHA512 d86d80b931d2aa6c085accf9a647745cffd56b496728162b1084eba2fbde981ac17d3d3758cef993427b4236330fcc21bf2fc52d2b50249764a65fc508121135
-EBUILD eselect-xvmc-0.4.ebuild 521 BLAKE2B 7a08f49e8243640e58ebec8ce8049befab829d1da840acfbadc96dba7b633b932c343e6f27194400b73ade2aba9d12ca719688252b50bd9e18f3dd8ea4260aa4 SHA512 2dbe74d22d59a401e66ab0325e34ecb0ddfb4b810d851405894e43c49b6b50ff1f01198b9ffacaf52a4fbf08c79d98956eac8f93facc898f4fcaf689c6fabfc5
-MISC metadata.xml 277 BLAKE2B 8f8f94ce7ac3c6f72ae09142bec242065cf696344cc08f1d842e31fda283bc14a3725c0bdf54046c9c65a0142e00c4d51991f50438f5613d1ea94486f766fb57 SHA512 f9ab1a3bd54f8dad14c7df4e016a35960ea0feca47449df78591feb50fed94eceb4931e7689c63ab7bbf3487f7eb5c996fd28d936c7cf62939d28c59e9163703
diff --git a/app-eselect/eselect-xvmc/eselect-xvmc-0.4.ebuild b/app-eselect/eselect-xvmc/eselect-xvmc-0.4.ebuild
deleted file mode 100644
index bd544c46bed5..000000000000
--- a/app-eselect/eselect-xvmc/eselect-xvmc-0.4.ebuild
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="Manages XvMC implementations"
-HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
-
-RDEPEND="app-admin/eselect"
-
-S="${WORKDIR}"
-
-src_install() {
- insinto /usr/share/eselect/modules
- newins "${FILESDIR}"/${P}.eselect xvmc.eselect
-}
diff --git a/app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect b/app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect
deleted file mode 100644
index 9c06d5ec4e64..000000000000
--- a/app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect
+++ /dev/null
@@ -1,198 +0,0 @@
-# -*-eselect-*- vim: ft=eselect
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-DESCRIPTION="Manage the XvMC implementation used by your system"
-MAINTAINER="{cardoe,junghans}@gentoo.org"
-VERSION="0.4"
-
-init_XVMC_vars() {
- get_libname() {
- case ${OSTYPE} in
- darwin*) echo ${1:+.}${1}.dylib ;;
- *) echo .so${1:+.}${1} ;;
- esac
- }
-
- XVMCLIBS=(
- "libXvMCNVIDIA_dynamic$(get_libname 1)"
- "libXvMC$(get_libname 1)"
- "libviaXvMC$(get_libname 1)"
- "libviaXvMCPro$(get_libname 1)"
- "libchromeXvMC$(get_libname 1)"
- "libchromeXvMCPro$(get_libname 1)"
- "libXvMCVIA$(get_libname)"
- "libXvMCVIAPro$(get_libname)"
- "libI810XvMC$(get_libname 1)"
- "/usr/lib/libIntelXvMC$(get_libname)"
- "libAMDXvBA$(get_libname 1)"
- )
-
- XVMCPRETTY=(
- "nvidia"
- "xorg-x11"
- "via"
- "via-pro"
- "openchrome"
- "openchrome-pro"
- "unichrome"
- "unichrome-pro"
- "intel-i810"
- "intel-i915/i965"
- "ati"
- )
-}
-
-get_implementation_indices() {
- local ret n
- for (( n = 0; n < ${#XVMCLIBS[@]}; ++n )); do
- [[ -e "${EROOT}/usr/lib/${XVMCLIBS[n]##*/}" ]] && ret+=($n)
- done
-
- echo ${ret[@]}
-}
-
-get_current_implementation_index() {
- local n
- if [[ -f "${EROOT}/etc/X11/XvMCConfig" ]]; then
- local current=$(< "${EROOT}/etc/X11/XvMCConfig")
- for (( n = 0; n < ${#XVMCLIBS[@]}; ++n )); do
- if [[ "${XVMCLIBS[n]}" = "${current}" ]]; then
- echo "${n}"
- return
- fi
- done
- fi
-
- echo "-1"
-}
-
-set_new_implementation() {
- echo -n "Switching to ${XVMCPRETTY[$1]} XvMC implementation..."
- touch "${EROOT}/etc/X11/XvMCConfig" 2>&1 > /dev/null
- if [[ $? -eq 0 ]]; then
- echo "${XVMCLIBS[$1]}" > "${EROOT}/etc/X11/XvMCConfig"
- chmod 644 "${EROOT}/etc/X11/XvMCConfig"
- [[ ${EROOT} == "/" ]] && chown 0:0 "${EROOT}/etc/X11/XvMCConfig"
- echo " done"
- else
- echo " failed!"
- echo "Insufficient privileges"
- fi
-}
-
-### list action
-
-## {{{ list stuff
-describe_list() {
- echo "List Available XvMC implementations"
-}
-
-do_list() {
- local output n
- init_XVMC_vars
- local avail=( $(get_implementation_indices) )
- local current=$(get_current_implementation_index)
- write_list_start \
- "Available XvMC implementations ($(highlight '*') is current):"
-
- for n in "${avail[@]}"; do
- output[n]=${XVMCPRETTY[n]}
- [[ ${current} -eq ${n} ]] \
- && output[n]=$(highlight_marker "${output[n]}")
- done
- write_numbered_list -m "(none found)" "${output[@]}"
-
- return 0
-}
-## }}}
-
-### show action
-
-## {{{ show stuff
-describe_show() {
- echo "Print the current XvMC implementation."
-}
-
-do_show() {
- init_XVMC_vars
- local current=$(get_current_implementation_index)
- write_list_start "Current XvMC implementation:"
-
- if [[ ${current} -ne -1 ]]; then
- echo "${XVMCPRETTY[current]}"
- return 0
- else
- echo "(none)"
- return 2
- fi
-}
-## }}}
-
-### set action
-
-## {{{ set stuff
-describe_set() {
- echo "Select the XvMC implementation"
-}
-
-describe_set_parameters() {
- echo "<target>"
-}
-
-describe_set_options() {
- echo "<target> : XvMC implementation to activate"
- echo "--use-old : If an implementation is already set, use that one instead"
-}
-
-do_set() {
- init_XVMC_vars
- local current=$(get_current_implementation_index)
- local avail=( $(get_implementation_indices) )
- local n new action
-
- while [[ ${#@} -gt 0 ]]; do
- local opt=${1}
- shift
- case ${opt} in
- --use-old)
- if [[ ${current} -gt -1 ]]; then
- (( ${current} < ${#XVMCPRETTY[@]} )) && action="old-implementation"
- fi
- ;;
- *)
- [[ -z ${action} ]] && action="set-implementation"
-
- if is_number ${opt} ; then
- new=${avail[opt - 1]}
- if [[ -z ${new} ]]; then
- die -q "Unrecognized option: ${opt}"
- fi
- elif has ${opt} ${XVMCPRETTY[@]}; then
- for (( n = 0; n < ${#XVMCPRETTY[@]}; ++n )); do
- [[ "${XVMCPRETTY[n]}" = "${opt}" ]] && new=${n}
- done
- else
- die -q "Unrecognized option: ${opt}"
- fi
- ;;
- esac
- done
-
- case ${action} in
- old-implementation)
- set_new_implementation ${current}
- return $?
- ;;
- set-implementation)
- if [[ -n ${new} ]]; then
- set_new_implementation ${new}
- return $?
- else
- die -q "Please specify an implementation to set"
- fi
- ;;
- *)
- die -q "Invalid usage of set action."
- esac
-}
diff --git a/app-eselect/eselect-xvmc/metadata.xml b/app-eselect/eselect-xvmc/metadata.xml
deleted file mode 100644
index d4ebc830dfb1..000000000000
--- a/app-eselect/eselect-xvmc/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>junghans@gentoo.org</email>
- <name>Christoph Junghans</name>
- </maintainer>
- <stabilize-allarches/>
-</pkgmetadata>