--- nvidia-drivers-331.13.ebuild~ 2013-10-10 15:01:35.000000000 +0200 +++ nvidia-drivers-331.13.ebuild~ 2013-10-12 16:01:04.000000000 +0200 @@ -5,7 +5,7 @@ EAPI=5 inherit eutils flag-o-matic linux-info linux-mod multilib nvidia-driver \ - portability toolchain-funcs unpacker user udev + portability readme.gentoo toolchain-funcs unpacker user udev NV_URI="http://us.download.nvidia.com/XFree86/" X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}" @@ -74,6 +74,23 @@ S=${WORKDIR}/ +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="You must be in the video group to use the NVIDIA device +For more info, read the docs at +http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6 + +This ebuild installs a kernel module and X driver. Both must +match explicitly in their version. This means, if you restart +X, you must modprobe -r nvidia before starting it back up + +To use the NVIDIA GLX, run \"eselect opengl set nvidia\" + +To use the NVIDIA CUDA/OpenCL, run \"eselect opencl set nvidia\" + +NVIDIA has requested that any bug reports submitted have the +output of nvidia-bug-report.sh included. +" + pkg_pretend() { if use amd64 && has_multilib_profile && \ @@ -360,6 +377,8 @@ fi is_final_abi || die "failed to iterate through all ABIs" + + readme.gentoo_create_doc } src_install-libs() { @@ -422,21 +441,7 @@ use X && "${ROOT}"/usr/bin/eselect opengl set --use-old nvidia "${ROOT}"/usr/bin/eselect opencl set --use-old nvidia - elog "You must be in the video group to use the NVIDIA device" - elog "For more info, read the docs at" - elog "http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6" - elog - elog "This ebuild installs a kernel module and X driver. Both must" - elog "match explicitly in their version. This means, if you restart" - elog "X, you must modprobe -r nvidia before starting it back up" - elog - elog "To use the NVIDIA GLX, run \"eselect opengl set nvidia\"" - elog - elog "To use the NVIDIA CUDA/OpenCL, run \"eselect opencl set nvidia\"" - elog - elog "NVIDIA has requested that any bug reports submitted have the" - elog "output of nvidia-bug-report.sh included." - elog + readme.gentoo_print_elog if ! use X; then elog "You have elected to not install the X.org driver. Along with" elog "this the OpenGL libraries and VDPAU libraries were not"