/[gentoo-x86]/x11-drivers/nvidia-drivers/nvidia-drivers-173.14.35.ebuild
Gentoo

Contents of /x11-drivers/nvidia-drivers/nvidia-drivers-173.14.35.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Fri Aug 10 10:00:51 2012 UTC (2 years, 4 months ago) by jer
Branch: MAIN
Changes since 1.5: +2 -2 lines
Stable for AMD64 (bug #426642).

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 cardoe 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.6 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-173.14.35.ebuild,v 1.5 2012/08/10 09:59:20 jer Exp $
4 cardoe 1.1
5     EAPI="2"
6    
7     inherit eutils unpacker multilib portability versionator linux-mod flag-o-matic nvidia-driver
8    
9     X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}"
10     AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}"
11     X86_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86-${PV}"
12    
13     DESCRIPTION="NVIDIA X11 driver and GLX libraries"
14     HOMEPAGE="http://www.nvidia.com/"
15     SRC_URI="x86? ( ftp://download.nvidia.com/XFree86/Linux-x86/${PV}/${X86_NV_PACKAGE}-pkg0.run )
16     amd64? ( ftp://download.nvidia.com/XFree86/Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}-pkg2.run )
17     x86-fbsd? ( ftp://download.nvidia.com/freebsd/${PV}/${X86_FBSD_NV_PACKAGE}.tar.gz )"
18    
19     LICENSE="NVIDIA"
20     SLOT="0"
21 jer 1.6 KEYWORDS="-* amd64 x86 ~x86-fbsd"
22 cardoe 1.1 IUSE="acpi multilib kernel_linux tools"
23     RESTRICT="strip"
24     EMULTILIB_PKG="true"
25    
26     COMMON="<x11-base/xorg-server-1.12.99
27     kernel_linux? ( >=sys-libs/glibc-2.6.1 )
28     multilib? ( app-emulation/emul-linux-x86-opengl )
29     >=app-admin/eselect-opengl-1.0.9"
30     DEPEND="${COMMON}
31     kernel_linux? ( virtual/linux-sources )"
32     RDEPEND="${COMMON}
33     acpi? ( sys-power/acpid )
34     tools? (
35     dev-libs/atk
36     dev-libs/glib
37     x11-libs/gdk-pixbuf
38     x11-libs/gtk+:2
39     x11-libs/libX11
40     x11-libs/libXext
41     x11-libs/pango
42     )"
43    
44     QA_TEXTRELS_x86="usr/lib/opengl/nvidia/lib/libnvidia-tls.so.${PV}
45     usr/lib/opengl/nvidia/lib/libGL.so.${PV}
46     usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
47     usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
48     usr/lib/xorg/modules/drivers/nvidia_drv.so
49     usr/lib/libcuda.so.${PV}
50     usr/lib/libnvidia-cfg.so.${PV}
51     usr/lib/libvdpau_nvidia.so.${PV}
52     usr/lib/libXvMCNVIDIA.so.${PV}"
53    
54     QA_TEXTRELS_x86_fbsd="boot/modules/nvidia.ko
55     usr/lib/opengl/nvidia/lib/libGL.so.1
56     usr/lib/opengl/nvidia/lib/libGLcore.so.1
57     usr/lib/libnvidia-cfg.so.1
58     usr/lib/opengl/nvidia/extensions/libglx.so.1
59     usr/lib/xorg/modules/drivers/nvidia_drv.so"
60    
61     QA_TEXTRELS_amd64="usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
62     usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
63     usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
64     usr/lib32/libcuda.so.${PV}
65     usr/lib32/libvdpau_nvidia.so.${PV}"
66    
67     QA_EXECSTACK_x86="usr/lib/opengl/nvidia/lib/libGL.so.${PV}
68     usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
69     usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
70     usr/lib/xorg/modules/drivers/nvidia_drv.so
71     usr/lib/libXvMCNVIDIA.a:NVXVMC.o"
72    
73     QA_EXECSTACK_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
74     usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
75     usr/lib64/libnvcompiler.so.${PV}
76     usr/lib64/libXvMCNVIDIA.so.${PV}
77     usr/lib64/libXvMCNVIDIA.a:NVXVMC.o
78     usr/lib64/libnvidia-cfg.so.${PV}
79     usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
80     usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
81     usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
82     usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
83     usr/lib64/xorg/modules/drivers/nvidia_drv.so
84     opt/bin/nvidia-settings
85     opt/bin/nvidia-smi
86     opt/bin/nvidia-xconfig"
87    
88     QA_WX_LOAD_x86="usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
89     usr/lib/opengl/nvidia/lib/libGL.so.${PV}
90     usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
91     usr/lib/libXvMCNVIDIA.a"
92    
93     QA_WX_LOAD_amd64="usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
94     usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
95     usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
96     usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
97     usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}"
98    
99     QA_SONAME_amd64="usr/lib64/libnvcompiler.so.${PV}"
100    
101     QA_DT_HASH_amd64="usr/lib32/libcuda.so.${PV}
102     usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
103     usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
104     usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
105     usr/lib32/libvdpau_nvidia.so.${PV}
106     usr/lib64/libXvMCNVIDIA.so.${PV}
107     usr/lib64/libcuda.so.${PV}
108     usr/lib64/libnvidia-cfg.so.${PV}
109     usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
110     usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
111     usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
112     usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
113     usr/lib64/xorg/modules/drivers/nvidia_drv.so
114     usr/lib64/libvdpau_nvidia.so.${PV}
115     opt/bin/nvidia-settings
116     opt/bin/nvidia-smi
117     opt/bin/nvidia-xconfig"
118    
119     QA_DT_HASH_x86="usr/lib/libcuda.so.${PV}
120     usr/lib/libnvidia-cfg.so.${PV}
121     usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
122     usr/lib/opengl/nvidia/lib/libGL.so.${PV}
123     usr/lib/opengl/nvidia/lib/libnvidia-tls.so.${PV}
124     usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
125     usr/lib/xorg/modules/drivers/nvidia_drv.so
126     usr/lib/libXvMCNVIDIA.so.${PV}
127     usr/lib/libvdpau_nvidia.so.${PV}
128     opt/bin/nvidia-settings
129     opt/bin/nvidia-smi
130     opt/bin/nvidia-xconfig"
131    
132 cardoe 1.4 S="${WORKDIR}/"
133 cardoe 1.1
134     mtrr_check() {
135     ebegin "Checking for MTRR support"
136     linux_chkconfig_present MTRR
137     eend $?
138    
139     if [[ $? -ne 0 ]] ; then
140     eerror "Please enable MTRR support in your kernel config, found at:"
141     eerror
142     eerror " Processor type and features"
143     eerror " [*] MTRR (Memory Type Range Register) support"
144     eerror
145     eerror "and recompile your kernel ..."
146     die "MTRR support not detected!"
147     fi
148     }
149    
150     lockdep_check() {
151     if linux_chkconfig_present LOCKDEP; then
152     eerror "You've enabled LOCKDEP -- lock tracking -- in the kernel."
153     eerror "Unfortunately, this option exports the symbol 'lockdep_init_map' as GPL-only"
154     eerror "which will prevent ${P} from compiling."
155     eerror "Please make sure the following options have been unset:"
156     eerror " Kernel hacking --->"
157     eerror " [ ] Lock debugging: detect incorrect freeing of live locks"
158     eerror " [ ] Lock debugging: prove locking correctness"
159     eerror " [ ] Lock usage statistics"
160     eerror "in 'menuconfig'"
161     die "LOCKDEP enabled"
162     fi
163     }
164    
165     pkg_setup() {
166     # try to turn off distcc and ccache for people that have a problem with it
167     export DISTCC_DISABLE=1
168     export CCACHE_DISABLE=1
169    
170     if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then
171     eerror "This ebuild doesn't currently support changing your default abi."
172     die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}"
173     fi
174    
175     if use kernel_linux; then
176     linux-mod_pkg_setup
177     MODULE_NAMES="nvidia(video:${S}/usr/src/nv)"
178     BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \
179     SYSOUT=${KV_OUT_DIR} CC=$(tc-getBUILD_CC)"
180     # linux-mod_src_compile calls set_arch_to_kernel, which
181     # sets the ARCH to x86 but NVIDIA's wrapping Makefile
182     # expects x86_64 or i386 and then converts it to x86
183     # later on in the build process
184     BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
185     mtrr_check
186     lockdep_check
187     fi
188    
189     # On BSD userland it wants real make command
190     use userland_BSD && MAKE="$(get_bmake)"
191    
192     export _POSIX2_VERSION="199209"
193    
194     # Since Nvidia ships 3 different series of drivers, we need to give the user
195     # some kind of guidance as to what version they should install. This tries
196     # to point the user in the right direction but can't be perfect. check
197     # nvidia-driver.eclass
198     nvidia-driver-check-warning
199    
200     # set variables to where files are in the package structure
201     if use kernel_FreeBSD; then
202 cardoe 1.4 use x86-fbsd && S="${WORKDIR}/${X86_FBSD_NV_PACKAGE}"
203 cardoe 1.1 NV_DOC="${S}/doc"
204     NV_EXEC="${S}/obj"
205     NV_LIB="${S}/obj"
206     NV_SRC="${S}/src"
207     NV_MAN="${S}/x11/man"
208     NV_X11="${S}/obj"
209     NV_X11_DRV="${NV_X11}"
210     NV_X11_EXT="${NV_X11}"
211     NV_SOVER=1
212     elif use kernel_linux; then
213     NV_DOC="${S}/usr/share/doc"
214     NV_EXEC="${S}/usr/bin"
215     NV_LIB="${S}/usr/lib"
216     NV_SRC="${S}/usr/src/nv"
217     NV_MAN="${S}/usr/share/man/man1"
218     NV_X11="${S}/usr/X11R6/lib"
219     NV_X11_DRV="${NV_X11}/modules/drivers"
220     NV_X11_EXT="${NV_X11}/modules/extensions"
221     NV_SOVER=${PV}
222     else
223     die "Could not determine proper NVIDIA package"
224     fi
225     }
226    
227     src_unpack() {
228     if use kernel_linux && kernel_is lt 2 6 7; then
229     echo
230     ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
231     ewarn "This is not officially supported for ${P}. It is likely you"
232     ewarn "will not be able to compile or use the kernel module."
233     ewarn "It is recommended that you upgrade your kernel to a version >= 2.6.7"
234     echo
235     ewarn "DO NOT file bug reports for kernel versions less than 2.6.7 as they will be ignored."
236     fi
237    
238     if ! use x86-fbsd; then
239     mkdir "${S}"
240     cd "${S}"
241     unpack_makeself
242     else
243     unpack ${A}
244     fi
245     }
246    
247     src_prepare() {
248     # Please add a brief description for every added patch
249     use x86-fbsd && cd doc
250    
251     # Use the correct defines to make gtkglext build work
252     epatch "${FILESDIR}"/NVIDIA_glx-defines.patch
253     # Use some more sensible gl headers and make way for new glext.h
254     epatch "${FILESDIR}"/NVIDIA_glx-glheader.patch
255    
256     if use kernel_linux; then
257     # Quiet down warnings the user does not need to see
258     sed -i \
259     -e 's:-Wpointer-arith::g' \
260     -e 's:-Wsign-compare::g' \
261     "${NV_SRC}"/Makefile.kbuild
262    
263     # If greater than 2.6.5 use M= instead of SUBDIR=
264     convert_to_m "${NV_SRC}"/Makefile.kbuild
265     fi
266    
267     epatch_user
268     }
269    
270     src_compile() {
271     # This is already the default on Linux, as there's no toplevel Makefile, but
272     # on FreeBSD there's one and triggers the kernel module build, as we install
273     # it by itself, pass this.
274    
275     cd "${NV_SRC}"
276     if use x86-fbsd; then
277     MAKE="$(get_bmake)" CFLAGS="-Wno-sign-compare" emake CC="$(tc-getCC)" \
278     LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" || die
279     elif use kernel_linux; then
280     linux-mod_src_compile
281     fi
282     }
283    
284     src_install() {
285     if use kernel_linux; then
286     linux-mod_src_install
287    
288     VIDEOGROUP="$(egetent group video | cut -d ':' -f 3)"
289     if [ -z "$VIDEOGROUP" ]; then
290     eerror "Failed to determine the video group gid."
291     die "Failed to determine the video group gid."
292     fi
293    
294     # Add the aliases
295     [ -f "${FILESDIR}/nvidia-169.07" ] || die "nvidia missing in FILESDIR"
296     sed -e 's:PACKAGE:'${PF}':g' \
297     -e 's:VIDEOGID:'${VIDEOGROUP}':' "${FILESDIR}"/nvidia-169.07 > \
298     "${WORKDIR}"/nvidia
299     insinto /etc/modprobe.d
300     newins "${WORKDIR}"/nvidia nvidia.conf || die
301     elif use kernel_FreeBSD; then
302     insinto /boot/modules
303     doins "${WORKDIR}/${NV_PACKAGE}/src/nvidia.kld" || die
304    
305     exeinto /boot/modules
306     doexe "${WORKDIR}/${NV_PACKAGE}/src/nvidia.ko" || die
307     fi
308    
309     # NVIDIA kernel <-> userspace driver config lib
310     dolib.so ${NV_LIB}/libnvidia-cfg.so.${NV_SOVER} || \
311     die "failed to install libnvidia-cfg"
312     dosym libnvidia-cfg.so.${NV_SOVER} \
313     /usr/$(get_libdir)/libnvidia-cfg.so.1 || \
314     die "failed to create libnvidia-cfg.so.1 symlink"
315     dosym libnvidia-cfg.so.1 \
316     /usr/$(get_libdir)/libnvidia-cfg.so || \
317     die "failed to create libnvidia-cfg.so symlink"
318    
319     # Xorg DDX driver
320     insinto /usr/$(get_libdir)/xorg/modules/drivers
321     doins ${NV_X11_DRV}/nvidia_drv.so || die "failed to install nvidia_drv.so"
322    
323     # Xorg GLX driver
324     insinto /usr/$(get_libdir)/opengl/nvidia/extensions
325     doins ${NV_X11_EXT}/libglx.so.${NV_SOVER} || \
326     die "failed to install libglx.so"
327     dosym /usr/$(get_libdir)/opengl/nvidia/extensions/libglx.so.${NV_SOVER} \
328     /usr/$(get_libdir)/opengl/nvidia/extensions/libglx.so || \
329     die "failed to create libglx.so symlink"
330    
331     # XvMC driver
332     dolib.a ${NV_X11}/libXvMCNVIDIA.a || \
333     die "failed to install libXvMCNVIDIA.so"
334     dolib.so ${NV_X11}/libXvMCNVIDIA.so.${NV_SOVER} || \
335     die "failed to install libXvMCNVIDIA.so"
336     dosym libXvMCNVIDIA.so.${NV_SOVER} \
337     /usr/$(get_libdir)/libXvMCNVIDIA.so.1 || \
338     die "failed to create libXvMCNVIDIA.so.1 symlink"
339     dosym libXvMCNVIDIA.so.1 \
340     /usr/$(get_libdir)/libXvMCNVIDIA.so || \
341     die "failed to create libXvMCNVIDIA.so symlink"
342     dosym libXvMCNVIDIA.so.${NV_SOVER} \
343     /usr/$(get_libdir)/libXvMCNVIDIA_dynamic.so.1 || \
344     die "failed to create libXvMCNVIDIA_dynamic.so.1 symlink"
345    
346     # CUDA headers (driver to come)
347     if use kernel_linux && [[ -d ${S}/usr/include/cuda ]]; then
348     dodir /usr/include/cuda
349     insinto /usr/include/cuda
350     doins usr/include/cuda/*.h || die "failed to install cuda headers"
351     fi
352    
353     # OpenCL headers (driver to come)
354     if [[ -d ${S}/usr/include/CL ]]; then
355     dodir /usr/include/CL
356     insinto /usr/include/CL
357     doins usr/include/CL/*.h || die "failed to install OpenCL headers"
358     fi
359    
360     # Documentation
361     dodoc ${NV_DOC}/XF86Config.sample
362     dohtml ${NV_DOC}/html/*
363     if use x86-fbsd; then
364     dodoc "${NV_DOC}/README"
365     doman "${NV_MAN}/nvidia-xconfig.1"
366     doman "${NV_MAN}/nvidia-settings.1"
367     else
368     # Docs
369     newdoc "${NV_DOC}/README.txt" README
370     dodoc "${NV_DOC}/NVIDIA_Changelog"
371     doman "${NV_MAN}/nvidia-xconfig.1.gz"
372     doman "${NV_MAN}/nvidia-settings.1.gz"
373     fi
374    
375     # Helper Apps
376     exeinto /opt/bin/
377     doexe ${NV_EXEC}/nvidia-xconfig || die
378     doexe ${NV_EXEC}/nvidia-bug-report.sh || die
379     if use tools; then
380     doexe usr/bin/nvidia-settings || die
381     fi
382     if use kernel_linux; then
383     doexe ${NV_EXEC}/nvidia-smi || die
384     fi
385    
386     # Desktop entry for nvidia-settings
387     if use tools && use kernel_linux; then
388     sed -e 's:__UTILS_PATH__:/opt/bin:' \
389     -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' \
390     -i "${S}"/usr/share/applications//nvidia-settings.desktop
391     newmenu "${S}"/usr/share/applications/nvidia-settings.desktop \
392     nvidia-settings-opt.desktop
393     fi
394    
395     if has_multilib_profile ; then
396     local OABI=${ABI}
397     for ABI in $(get_install_abis) ; do
398     src_install-libs
399     done
400     ABI=${OABI}
401     unset OABI
402     else
403     src_install-libs
404     fi
405    
406     is_final_abi || die "failed to iterate through all ABIs"
407     }
408    
409     # Install nvidia library:
410     # the first parameter is the place where to install it
411     # the second parameter is the base name of the library
412     # the third parameter is the provided soversion
413     donvidia() {
414     dodir $1
415     exeinto $1
416    
417     libname=$(basename $2)
418    
419     doexe $2.$3 || die "failed to install $2"
420     dosym ${libname}.$3 $1/${libname} || die "failed to symlink $2"
421     [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1
422     }
423    
424     src_install-libs() {
425     local inslibdir=$(get_libdir)
426     local NV_ROOT="/usr/${inslibdir}/opengl/nvidia"
427     local libdir= sover=
428    
429     if use kernel_linux; then
430     if has_multilib_profile && [[ ${ABI} == "x86" ]] ; then
431     libdir=usr/lib32
432     else
433     libdir=usr/lib
434     fi
435     sover=${PV}
436     else
437     libdir=obj
438     # on FreeBSD it has just .1 suffix
439     sover=1
440     fi
441    
442     # The GLX libraries
443     donvidia ${NV_ROOT}/lib ${libdir}/libGL.so ${sover}
444     donvidia ${NV_ROOT}/lib ${libdir}/libGLcore.so ${sover}
445     if use x86-fbsd; then
446     donvidia ${NV_ROOT}/lib ${libdir}/libnvidia-tls.so ${sover}
447     else
448     donvidia ${NV_ROOT}/lib ${libdir}/tls/libnvidia-tls.so ${sover}
449     fi
450    
451     #cuda
452     if [[ -f ${libdir}/libcuda.so.${sover} ]]; then
453     dolib.so ${libdir}/libcuda.so.${sover}
454     [[ "${sover}" != "1" ]] && dosym libcuda.so.${sover} /usr/${inslibdir}/libcuda.so.1
455     dosym libcuda.so.1 /usr/${inslibdir}/libcuda.so
456     fi
457    
458     #vdpau
459     if [[ -f ${libdir}/libvdpau_nvidia.so.${sover} ]]; then
460     dolib.so ${libdir}/libvdpau_nvidia.so.${sover}
461     dosym libvdpau_nvidia.so.${sover} /usr/${inslibdir}/libvdpau_nvidia.so
462     fi
463    
464     # OpenCL
465     # NOTE: This isn't currently available in the publicly released drivers.
466     if [[ -f ${libdir}/libOpenCL.so.1.0.0 ]]; then
467    
468     dolib.so ${libdir}/libnvcompiler.so.${sover}
469     [[ "${sover}" != "1" ]] && dosym libnvcompiler.so.${sover} /usr/${inslibdir}/libnvcompiler.so.1
470     dosym libnvcompiler.so.1 /usr/${inslibdir}/libnvcompiler.so
471    
472     dolib.so ${libdir}/libOpenCL.so.1.0.0
473     dosym libOpenCL.so.1.0.0 /usr/${inslibdir}/libOpenCL.so.1
474     dosym libOpenCL.so.1 /usr/${inslibdir}/libOpenCL.so
475     fi
476     }
477    
478     pkg_preinst() {
479     use kernel_linux && linux-mod_pkg_postinst
480    
481     # Clean the dynamic libGL stuff's home to ensure
482     # we dont have stale libs floating around
483     if [ -d "${ROOT}"/usr/lib/opengl/nvidia ] ; then
484     rm -rf "${ROOT}"/usr/lib/opengl/nvidia/*
485     fi
486     # Make sure we nuke the old nvidia-glx's env.d file
487     if [ -e "${ROOT}"/etc/env.d/09nvidia ] ; then
488     rm -f "${ROOT}"/etc/env.d/09nvidia
489     fi
490     }
491    
492     pkg_postinst() {
493     use kernel_linux && linux-mod_pkg_postinst
494    
495     # Switch to the nvidia implementation
496     "${ROOT}"/usr/bin/eselect opengl set --use-old nvidia
497    
498     elog "You must be in the video group to use the NVIDIA device"
499     elog "For more info, read the docs at"
500     elog "http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6"
501     elog
502     elog "This ebuild installs a kernel module and X driver. Both must"
503     elog "match explicitly in their version. This means, if you restart"
504     elog "X, you must modprobe -r nvidia before starting it back up"
505     elog
506     elog "To use the NVIDIA GLX, run \"eselect opengl set nvidia\""
507     elog
508     elog "NVIDIA has requested that any bug reports submitted have the"
509     elog "output of /usr/bin/nvidia-bug-report.sh included."
510     elog
511     if ! use tools; then
512     elog "USE=tools controls whether the nvidia-settings application"
513     elog "is installed. If you would like to use it, enable that"
514     elog "flag and re-emerge this ebuild. Optionally you can install"
515     elog "media-video/nvidia-settings"
516     fi
517     }
518    
519     pkg_prerm() {
520     "${ROOT}"/usr/bin/eselect opengl set --use-old xorg-x11
521     }
522    
523     pkg_postrm() {
524     use kernel_linux && linux-mod_pkg_postrm
525     "${ROOT}"/usr/bin/eselect opengl set --use-old xorg-x11
526     }

  ViewVC Help
Powered by ViewVC 1.1.20