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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Dec 19 16:52:01 2012 UTC (23 months, 1 week ago) by tetromino
Branch: MAIN
Changes since 1.3: +2 -1 lines
Depend on pangox-compat if using pango-1.32.

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

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

  ViewVC Help
Powered by ViewVC 1.1.20