/[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.3 - (show annotations) (download)
Sun Nov 18 11:18:17 2012 UTC (2 years ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
stable on amd64 and x86

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20