[gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-xvmc/files/
commit: b1cda3240e2e7f6210ec7f9a71b6258f15c8b2c6 Author: Christoph Junghans gentoo org> AuthorDate: Tue Nov 15 00:38:25 2016 + Commit: Christoph Junghans gentoo org> CommitDate: Tue Nov 15 00:38:25 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1cda324 app-eselect/eselect-xvmc: update patch Package-Manager: portage-2.3.0 app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect b/app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect index 2d6891f..9c06d5e 100644 --- a/app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect +++ b/app-eselect/eselect-xvmc/files/eselect-xvmc-0.4.eselect @@ -1,9 +1,9 @@ # -*-eselect-*- vim: ft=eselect -# Copyright 1999-2015 Gentoo Foundation +# 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,ottxor}@gentoo.org" +MAINTAINER="{cardoe,junghans}@gentoo.org" VERSION="0.4" init_XVMC_vars() {
[gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-xvmc/files/, app-eselect/eselect-xvmc/
commit: 70dbd7e39fa38a4e19112a823f0a4041723a44ed Author: Manuel Rüger gentoo org> AuthorDate: Fri Sep 11 14:45:33 2015 + Commit: Manuel Rüger gentoo org> CommitDate: Fri Sep 11 14:46:17 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70dbd7e3 app-eselect/eselect-xvmc: Remove old Package-Manager: portage-2.2.20.1 app-eselect/eselect-xvmc/eselect-xvmc-0.3.ebuild | 20 --- .../eselect-xvmc/files/eselect-xvmc-0.3.eselect| 189 - 2 files changed, 209 deletions(-) diff --git a/app-eselect/eselect-xvmc/eselect-xvmc-0.3.ebuild b/app-eselect/eselect-xvmc/eselect-xvmc-0.3.ebuild deleted file mode 100644 index 18ac768..000 --- a/app-eselect/eselect-xvmc/eselect-xvmc-0.3.ebuild +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -DESCRIPTION="Manages XvMC implementations" -HOMEPAGE="https://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-eselect/eselect-xvmc/files/eselect-xvmc-0.3.eselect b/app-eselect/eselect-xvmc/files/eselect-xvmc-0.3.eselect deleted file mode 100644 index 4f3cdcc..000 --- a/app-eselect/eselect-xvmc/files/eselect-xvmc-0.3.eselect +++ /dev/null @@ -1,189 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -DESCRIPTION="Manage the XvMC implementation used by your system" -MAINTAINER="car...@gentoo.org" -SVN_DATE='$Date: 2015/03/31 16:58:41 $' -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 "" -} - -describe_set_options() { - echo " : XvMC implementation to