Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 210027
Collapse All | Expand All

(-)nvidia-driver.eclass.orig (-5 / +14 lines)
Lines 1-12 Link Here
1
# Copyright 1999-2007 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/eclass/nvidia-driver.eclass,v 1.10 2007/12/21 20:38:44 cardoe Exp $
3
# $Header: $
4
4
5
# @ECLASS: nvidia-driver.eclass
6
# @MAINTAINER:
5
#
7
#
6
# Original Author: Doug Goldstein <cardoe@gentoo.org>
8
# Original Author: Doug Goldstein <cardoe@gentoo.org>
7
# Purpose: Provide useful messages for nvidia-drivers based on currently
9
# @BLURB: Provide useful messages for nvidia-drivers based on currently installed Nvidia card
8
# installed Nvidia card
10
# @DESCRIPTION:
9
#
11
# Provide useful messages for nvidia-drivers based on currently installed Nvidia
12
# card. It inherits versionator
13
10
inherit versionator
14
inherit versionator
11
15
12
DEPEND="sys-apps/pciutils"
16
DEPEND="sys-apps/pciutils"
Lines 24-29 Link Here
24
mask_96xx=">=x11-drivers/nvidia-drivers-97.0.0"
28
mask_96xx=">=x11-drivers/nvidia-drivers-97.0.0"
25
mask_71xx=">=x11-drivers/nvidia-drivers-72.0.0"
29
mask_71xx=">=x11-drivers/nvidia-drivers-72.0.0"
26
30
31
# @FUNCTION: nvidia-driver-get-card
32
# @DESCRIPTION:
27
# Retrieve the PCI device ID for each Nvidia video card you have
33
# Retrieve the PCI device ID for each Nvidia video card you have
28
nvidia-driver-get-card() {
34
nvidia-driver-get-card() {
29
	local NVIDIA_CARD="$(/usr/sbin/lspci -d 10de: -n | \
35
	local NVIDIA_CARD="$(/usr/sbin/lspci -d 10de: -n | \
Lines 59-64 Link Here
59
	return 1;
65
	return 1;
60
}
66
}
61
67
68
# @FUNCTION: nvidia-driver-check-warning
69
# @DESCRIPTION:
70
# Prints out a warning if the driver does not work w/ the installed video card
62
nvidia-driver-check-warning() {
71
nvidia-driver-check-warning() {
63
	local NVIDIA_MASK="$(nvidia-driver-get-mask)"
72
	local NVIDIA_MASK="$(nvidia-driver-get-mask)"
64
	if [ -n "$NVIDIA_MASK" ]; then
73
	if [ -n "$NVIDIA_MASK" ]; then

Return to bug 210027