Lines 5-11
Link Here
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic linux-info linux-mod multilib nvidia-driver \ |
7 |
inherit eutils flag-o-matic linux-info linux-mod multilib nvidia-driver \ |
8 |
portability toolchain-funcs unpacker user udev |
8 |
portability readme.gentoo toolchain-funcs unpacker user udev |
9 |
|
9 |
|
10 |
NV_URI="http://us.download.nvidia.com/XFree86/" |
10 |
NV_URI="http://us.download.nvidia.com/XFree86/" |
11 |
X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}" |
11 |
X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}" |
Lines 74-79
Link Here
|
74 |
|
74 |
|
75 |
S=${WORKDIR}/ |
75 |
S=${WORKDIR}/ |
76 |
|
76 |
|
|
|
77 |
DISABLE_AUTOFORMATTING="yes" |
78 |
DOC_CONTENTS="You must be in the video group to use the NVIDIA device |
79 |
For more info, read the docs at |
80 |
http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6 |
81 |
|
82 |
This ebuild installs a kernel module and X driver. Both must |
83 |
match explicitly in their version. This means, if you restart |
84 |
X, you must modprobe -r nvidia before starting it back up |
85 |
|
86 |
To use the NVIDIA GLX, run \"eselect opengl set nvidia\" |
87 |
|
88 |
To use the NVIDIA CUDA/OpenCL, run \"eselect opencl set nvidia\" |
89 |
|
90 |
NVIDIA has requested that any bug reports submitted have the |
91 |
output of nvidia-bug-report.sh included. |
92 |
" |
93 |
|
77 |
pkg_pretend() { |
94 |
pkg_pretend() { |
78 |
|
95 |
|
79 |
if use amd64 && has_multilib_profile && \ |
96 |
if use amd64 && has_multilib_profile && \ |
Lines 360-365
Link Here
|
360 |
fi |
377 |
fi |
361 |
|
378 |
|
362 |
is_final_abi || die "failed to iterate through all ABIs" |
379 |
is_final_abi || die "failed to iterate through all ABIs" |
|
|
380 |
|
381 |
readme.gentoo_create_doc |
363 |
} |
382 |
} |
364 |
|
383 |
|
365 |
src_install-libs() { |
384 |
src_install-libs() { |
Lines 422-442
Link Here
|
422 |
use X && "${ROOT}"/usr/bin/eselect opengl set --use-old nvidia |
441 |
use X && "${ROOT}"/usr/bin/eselect opengl set --use-old nvidia |
423 |
"${ROOT}"/usr/bin/eselect opencl set --use-old nvidia |
442 |
"${ROOT}"/usr/bin/eselect opencl set --use-old nvidia |
424 |
|
443 |
|
425 |
elog "You must be in the video group to use the NVIDIA device" |
444 |
readme.gentoo_print_elog |
426 |
elog "For more info, read the docs at" |
|
|
427 |
elog "http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6" |
428 |
elog |
429 |
elog "This ebuild installs a kernel module and X driver. Both must" |
430 |
elog "match explicitly in their version. This means, if you restart" |
431 |
elog "X, you must modprobe -r nvidia before starting it back up" |
432 |
elog |
433 |
elog "To use the NVIDIA GLX, run \"eselect opengl set nvidia\"" |
434 |
elog |
435 |
elog "To use the NVIDIA CUDA/OpenCL, run \"eselect opencl set nvidia\"" |
436 |
elog |
437 |
elog "NVIDIA has requested that any bug reports submitted have the" |
438 |
elog "output of nvidia-bug-report.sh included." |
439 |
elog |
440 |
if ! use X; then |
445 |
if ! use X; then |
441 |
elog "You have elected to not install the X.org driver. Along with" |
446 |
elog "You have elected to not install the X.org driver. Along with" |
442 |
elog "this the OpenGL libraries and VDPAU libraries were not" |
447 |
elog "this the OpenGL libraries and VDPAU libraries were not" |