diff options
Diffstat (limited to 'app-admin/eselect-xvmc')
-rw-r--r-- | app-admin/eselect-xvmc/ChangeLog | 139 | ||||
-rw-r--r-- | app-admin/eselect-xvmc/Manifest | 20 | ||||
-rw-r--r-- | app-admin/eselect-xvmc/eselect-xvmc-0.3.ebuild | 20 | ||||
-rw-r--r-- | app-admin/eselect-xvmc/eselect-xvmc-0.4.ebuild | 24 | ||||
-rw-r--r-- | app-admin/eselect-xvmc/files/eselect-xvmc-0.3.eselect | 189 | ||||
-rw-r--r-- | app-admin/eselect-xvmc/files/eselect-xvmc-0.4.eselect | 198 | ||||
-rw-r--r-- | app-admin/eselect-xvmc/metadata.xml | 11 |
7 files changed, 0 insertions, 601 deletions
diff --git a/app-admin/eselect-xvmc/ChangeLog b/app-admin/eselect-xvmc/ChangeLog deleted file mode 100644 index bc2c8f335ec3..000000000000 --- a/app-admin/eselect-xvmc/ChangeLog +++ /dev/null @@ -1,139 +0,0 @@ -# ChangeLog for app-admin/eselect-xvmc -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-xvmc/ChangeLog,v 1.40 2013/07/04 21:16:22 ottxor Exp $ - - 04 Jul 2013; Christoph Junghans <ottxor@gentoo.org> -eselect-xvmc-0.1.ebuild, - -eselect-xvmc-0.2.ebuild, -files/eselect-xvmc-0.1.eselect, - -files/eselect-xvmc-0.2.eselect: - remove old - - 04 Jul 2013; Christoph Junghans <ottxor@gentoo.org> eselect-xvmc-0.4.ebuild: - added prefix keywords (bug #434518) - - 09 Jun 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for sh, wrt bug #470290 - - 25 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for alpha, wrt bug #470290 - - 25 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for sparc, wrt bug #470290 - - 24 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for ppc64, wrt bug #470290 - - 22 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for ia64, wrt bug #470290 - - 21 May 2013; Jeroen Roovers <jer@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for HPPA (bug #470290). - - 20 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for s390, wrt bug #470290 - - 20 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for arm, wrt bug #470290 - - 20 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for ppc, wrt bug #470290 - - 20 May 2013; Chema Alonso <nimiux@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for amd64 wrt bug #470290 - - 20 May 2013; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.4.ebuild: - Stable for x86, wrt bug #470290 - -*eselect-xvmc-0.4 (11 Mar 2013) - - 11 Mar 2013; Christoph Junghans <ottxor@gentoo.org> +eselect-xvmc-0.4.ebuild, - +files/eselect-xvmc-0.4.eselect, metadata.xml: - version bump (fixes bugs #393027, #292120 and #434518) - - 27 Aug 2012; Raúl Porcel <armin76@gentoo.org> eselect-xvmc-0.3.ebuild: - alpha/ia64/m68k/s390/sh/sparc stable wrt #424017 - - 08 Aug 2012; Brent Baude <ranger@gentoo.org> eselect-xvmc-0.3.ebuild: - Marking eselect-xvmc-0.3 ppc for bug 424017 - - 06 Aug 2012; Brent Baude <ranger@gentoo.org> eselect-xvmc-0.3.ebuild: - Marking eselect-xvmc-0.3 ppc64 for bug 424017 - - 25 Jul 2012; Jeroen Roovers <jer@gentoo.org> eselect-xvmc-0.3.ebuild: - Stable for HPPA (bug #424017). - - 23 Jul 2012; Markus Meier <maekke@gentoo.org> eselect-xvmc-0.3.ebuild: - arm stable, bug #424017 - - 17 Jul 2012; Jeff Horelick <jdhore@gentoo.org> eselect-xvmc-0.3.ebuild: - marked x86 per bug 424017 - - 15 Jul 2012; Agostino Sarubbo <ago@gentoo.org> eselect-xvmc-0.3.ebuild: - Stable for amd64, wrt bug #424017 - - 10 May 2012; Alexis Ballier <aballier@gentoo.org> eselect-xvmc-0.3.ebuild: - keyword ~amd64-fbsd - -*eselect-xvmc-0.3 (29 Aug 2011) - - 29 Aug 2011; Doug Goldstein <cardoe@gentoo.org> +eselect-xvmc-0.3.ebuild, - +files/eselect-xvmc-0.3.eselect: - Bump version to support and fix the following: - * Newer Intel XvMC (i915). Based on patch from Otávio Cipriani - <otavio.n.cipriani@gmail.com> bug #378827 - * Fix bad redirect. bug #314031 - * Add unichrome support - - 29 Aug 2011; Jeroen Roovers <jer@gentoo.org> eselect-xvmc-0.2.ebuild: - Stable for HPPA (bug #376283). - - 07 Aug 2011; Raúl Porcel <armin76@gentoo.org> eselect-xvmc-0.2.ebuild: - alpha/ia64/m68k/s390/sh/sparc stable wrt #376283 - - 07 Aug 2011; Markus Meier <maekke@gentoo.org> eselect-xvmc-0.2.ebuild: - arm stable, bug #376283 - - 06 Aug 2011; Markus Meier <maekke@gentoo.org> eselect-xvmc-0.2.ebuild: - x86 stable, bug #376283 - - 28 Jul 2011; Doug Goldstein <cardoe@gentoo.org> eselect-xvmc-0.2.ebuild: - amd64 ATs say its ok to go stable. bug #376283 - - 26 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> eselect-xvmc-0.2.ebuild: - ppc/ppc64 stable wrt #376283 - - 06 Feb 2011; Mart Raudsepp <leio@gentoo.org> eselect-xvmc-0.1.ebuild: - Drop to ~mips - -*eselect-xvmc-0.2 (29 Oct 2008) - - 29 Oct 2008; Doug Goldstein <cardoe@gentoo.org> - +files/eselect-xvmc-0.2.eselect, +eselect-xvmc-0.2.ebuild: - add support for ATI's XvMC implementation - - 03 Oct 2008; Doug Goldstein <cardoe@gentoo.org> eselect-xvmc-0.1.ebuild: - no reason why any of these arches aren't done for bug #231779 - - 22 Jul 2008; Markus Rothe <corsair@gentoo.org> eselect-xvmc-0.1.ebuild: - Stable on ppc64; bug #231779 - - 16 Jul 2008; nixnut <nixnut@gentoo.org> eselect-xvmc-0.1.ebuild: - Stable on ppc wrt bug 231779 - - 14 Jul 2008; Doug Goldstein <cardoe@gentoo.org> eselect-xvmc-0.1.ebuild: - stablize amd64 - - 14 Jul 2008; Jeroen Roovers <jer@gentoo.org> eselect-xvmc-0.1.ebuild: - Stable for HPPA (bug #231779). - - 14 Jul 2008; Raúl Porcel <armin76@gentoo.org> eselect-xvmc-0.1.ebuild: - alpha/ia64/x86 stable wrt #231779 - - 14 Jul 2008; Ferris McCormick <fmccor@gentoo.org> eselect-xvmc-0.1.ebuild: - Sparc stable, Bug #231779. - -*eselect-xvmc-0.1 (22 Feb 2008) - - 22 Feb 2008; Doug Klima <cardoe@gentoo.org> - +files/eselect-xvmc-0.1.eselect, +metadata.xml, - +eselect-xvmc-0.1.ebuild: - Decided to write an eselect module for XvMCWrapper. First version. diff --git a/app-admin/eselect-xvmc/Manifest b/app-admin/eselect-xvmc/Manifest deleted file mode 100644 index bf0048ac76cc..000000000000 --- a/app-admin/eselect-xvmc/Manifest +++ /dev/null @@ -1,20 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - -AUX eselect-xvmc-0.3.eselect 3967 SHA256 3e1f7fffbdcf112b832c87fd62149f712ec2fbb4ef51c76b2321d7e396b986fe SHA512 dc54f0394f21748d1aa7a0456cf2bf761d2067d14755a642aa1880b1b41a47c7516f2d8c68d54d177b54f206169387ede8210cbde82f5151d61db823e4c5003e WHIRLPOOL e1486bd200b8f653f37382fd8b4ffab15499fd262a800320ad2ffce6ccde4c261a02dcbfa70b4314ed041b42ceee038afbf2b321a998b6634ed3a504c7ba99f0 -AUX eselect-xvmc-0.4.eselect 4167 SHA256 7ab493019a9cd3763d82402ce82e21690e1958cd91e777c77d57c4ebd160c69d SHA512 bbce12b6f5052457354f7486a03fd7b1be0ebdff9373f9a5edba5df47c71ddf851e29cdb9343aac283487dd7b08590403e3aea595b80e1e85dd64f4fd75e0f2e WHIRLPOOL 2a0f31a9c87d83f262a2cc2039865dd574dbd9475f0de08597621d8d35e14ea956e070a03d2fce48cab948eaaca5722a6ba7dbee6082e29f214bde01cee726db -EBUILD eselect-xvmc-0.3.ebuild 636 SHA256 0575b71bb2a382c5645b14daf2b7a907c00404ad820ab443846d7160054f9720 SHA512 3ea8484c4282f0eaa84401da29685671759257f9833ca2124e0d3f8a55a585cf08098a093cd6f7bc8e68da8b830879839e4387a160030b37db1b86beb47d9b90 WHIRLPOOL 0b63d323fa48ab6c00981b4f41e58958d7f391cb2fa1cad856c435ca2c867cec254d26ec77ea6bf47d43d318a58de54ed04f72bfd81c65bf3921d829c1ca8768 -EBUILD eselect-xvmc-0.4.ebuild 703 SHA256 66ac50563bec18d30376f47a953f90688a39be857f5277c41c424aa73d7b1ca2 SHA512 5fefc8414f05799c4c1a04cb9f706ae976e1dd6b76a7b7f30dcf4fd3d2fc99a3f30395ec87c04db5a637aa00d3fd867b6917a6cedf6f853d3070f3f6b26af8b1 WHIRLPOOL 4396b20fadfb0e6815cf5b41eaeb9ffdc5a29edc3101f0ab8c1c5f101cc824dc5e7a63709e8e5fb32340bd22e5194f70812c6d32cc93896349c9596bdd7f460e -MISC ChangeLog 5133 SHA256 d4667a341232dacae81903cb08e82364bccd08572b869efba35ec8a975852e9e SHA512 b705e2bc177f783dd80cbae9d4721ff02a455652cc6abdd9aa71feb92a6096e664d75315d9a86468c77dd4c2659f99929e9d7cbd959ff5a1eff62f0d38fe921d WHIRLPOOL 477c19be1eca84983fbeb229c3f46b54ea22455c57b7a9549da6145460967b4a60a8f61d38a2b4c34a0343ecb895741547d3cbeadb4035559d5bfa2274c4a29b -MISC metadata.xml 301 SHA256 324f2204f9dc5c251892cce0a7831884ee271d4170fc86fb33ce7b2aae28b2a8 SHA512 0e315170dcc6c64ecf4893ba8c0df7a74155257b86a397d23d3fa8208c5fdcd1574c6f877c1fd4d4ae34ad17997b6416820ec808519b3dfd770019e794bd5007 WHIRLPOOL ad6989b2aadd62bc1c33c85296be649e3b7abbeec04f352115202917b0e4e6cf4b39d3bfe24b2d572dfa585fee989ac92e6205e7b71038826bee5af7ccfc8d7e ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.20 (GNU/Linux) - -iQEcBAEBCAAGBQJR1eYnAAoJEOeBhlrCAAWGdNEH/0GkLlkRhadQxlRyM20z+oTo -DmY2JRjm95IgEDkolOUEAOPitskPQ0t/lTE5/F/OhsAK5ZaU+EnZgbxoCov7EyLf -zhbeBQkerx8d+8CbTh1w5/Kclsz6aAK3EeKFFd4whAH97kyEzq5X3tiU9qlryPG4 -/8iwmqMlJA+nt0rxAKe7tKdJl4HUk89pw4+RWqzJhle43ANjSnd4rqDRCmUZfrgc -z0vH3Vp8D2sanuqowR7TBl/ukD09v1DPCkxABFNndm/U6h4qucEP15P+BjjKtOGq -gz/KjYfX4xBrxzL8thyHeyeLdeiALhuiRyPaGkGDFkH8Yz2aTrpACuKzEsgTCNk= -=vUU8 ------END PGP SIGNATURE----- diff --git a/app-admin/eselect-xvmc/eselect-xvmc-0.3.ebuild b/app-admin/eselect-xvmc/eselect-xvmc-0.3.ebuild deleted file mode 100644 index 1fd31e8173ed..000000000000 --- a/app-admin/eselect-xvmc/eselect-xvmc-0.3.ebuild +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-xvmc/eselect-xvmc-0.3.ebuild,v 1.9 2012/08/27 17:33:27 armin76 Exp $ - -DESCRIPTION="Manages XvMC implementations" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -IUSE="" - -DEPEND="" -RDEPEND=">=app-admin/eselect-1.0.10" - -src_install() { - insinto /usr/share/eselect/modules - newins "${FILESDIR}"/${P}.eselect xvmc.eselect || die "newins failed" -} diff --git a/app-admin/eselect-xvmc/eselect-xvmc-0.4.ebuild b/app-admin/eselect-xvmc/eselect-xvmc-0.4.ebuild deleted file mode 100644 index 002f18006def..000000000000 --- a/app-admin/eselect-xvmc/eselect-xvmc-0.4.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-xvmc/eselect-xvmc-0.4.ebuild,v 1.13 2013/07/04 21:14:11 ottxor Exp $ - -EAPI=5 - -DESCRIPTION="Manages XvMC implementations" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-solaris" -IUSE="" - -DEPEND="" -RDEPEND="app-admin/eselect" - -S="${FILESDIR}" - -src_install() { - insinto /usr/share/eselect/modules - newins "${FILESDIR}"/${P}.eselect xvmc.eselect -} diff --git a/app-admin/eselect-xvmc/files/eselect-xvmc-0.3.eselect b/app-admin/eselect-xvmc/files/eselect-xvmc-0.3.eselect deleted file mode 100644 index 8e9659ae5600..000000000000 --- a/app-admin/eselect-xvmc/files/eselect-xvmc-0.3.eselect +++ /dev/null @@ -1,189 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id: eselect-xvmc-0.3.eselect,v 1.1 2011/08/29 21:02:02 cardoe Exp $ - -DESCRIPTION="Manage the XvMC implementation used by your system" -MAINTAINER="cardoe@gentoo.org" -SVN_DATE='$Date: 2011/08/29 21:02:02 $' -VERSION=$(svn_date_to_version "${SVN_DATE}" ) - -XVMCLIBS=( -"libXvMCNVIDIA_dynamic.so.1" -"libXvMC.so.1" -"libviaXvMC.so.1" -"libviaXvMCPro.so.1" -"libchromeXvMC.so.1" -"libchromeXvMCPro.so.1" -"libXvMCVIA.so" -"libXvMCVIAPro.so" -"libI810XvMC.so.1" -"/usr/lib/libIntelXvMC.so" -"libAMDXvBA.so.1" ) -XVMCPRETTY=( -"nvidia" -"xorg-x11" -"via" -"via-pro" -"openchrome" -"openchrome-pro" -"unichrome" -"unichrome-pro" -"intel-i815" -"intel-i915" -"ati" ) - -get_implementation_indices() { - local ret n - for (( n = 0; n < ${#XVMCLIBS[@]}; ++n )); do - [[ -e "${ROOT}/usr/lib/${XVMCLIBS[n]}" ]] && ret+=($n) - done - - echo ${ret[@]} -} - -get_current_implementation_index() { - local n - if [[ -f "${ROOT}/etc/X11/XvMCConfig" ]]; then - local current=$(< "${ROOT}/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 "${ROOT}/etc/X11/XvMCConfig" 2>&1 > /dev/null - if [[ $? -eq 0 ]]; then - echo "${XVMCLIBS[$1]}" > "${ROOT}/etc/X11/XvMCConfig" - chmod 644 "${ROOT}/etc/X11/XvMCConfig" - chown 0:0 "${ROOT}/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 - local avail=( $(get_implementation_indices) ) - local current=$(get_current_implementation_index) - write_list_start "Available XvMC implementations ( $(highlight '*') is current ):" - - if (( ${#avail[@]} )) ; then - for n in "${avail[@]}" ; do - output[n]="${XVMCPRETTY[n]}" - [[ ${current} -eq ${n} ]] && \ - output[n]+=" $(highlight '*')" - done - write_numbered_list "${output[@]}" - else - write_kv_list_entry "(none found)" "" - fi - - return 0 -} -## }}} - -### show action - -## {{{ show stuff -describe_show() { - echo "Print the current XvMC implementation." -} - -do_show() { - 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() { - 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 -} - -# vim: ts=4 sw=4 noet fdm=marker diff --git a/app-admin/eselect-xvmc/files/eselect-xvmc-0.4.eselect b/app-admin/eselect-xvmc/files/eselect-xvmc-0.4.eselect deleted file mode 100644 index eefd56675945..000000000000 --- a/app-admin/eselect-xvmc/files/eselect-xvmc-0.4.eselect +++ /dev/null @@ -1,198 +0,0 @@ -# -*-eselect-*- vim: ft=eselect -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -DESCRIPTION="Manage the XvMC implementation used by your system" -MAINTAINER="{cardoe,ottxor}@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-admin/eselect-xvmc/metadata.xml b/app-admin/eselect-xvmc/metadata.xml deleted file mode 100644 index a0494aadf4b2..000000000000 --- a/app-admin/eselect-xvmc/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer> - <email>ottxor@gentoo.org</email> - <name>Christoph Junghans</name> - </maintainer> - <maintainer> - <email>cardoe@gentoo.org</email> - </maintainer> -</pkgmetadata> |