diff options
author | Arcady Genkin <agenkin@gentoo.org> | 2002-03-08 00:50:34 +0000 |
---|---|---|
committer | Arcady Genkin <agenkin@gentoo.org> | 2002-03-08 00:50:34 +0000 |
commit | 5b48f45a6e71550708c6dbaee41be8695de5856d (patch) | |
tree | 5073231fbb661da029e14a6b3858a0c9ada8bbb6 | |
parent | Added file libXvMCNVIDIA.a to the ebuild. (diff) | |
download | gentoo-2-5b48f45a6e71550708c6dbaee41be8695de5856d.tar.gz gentoo-2-5b48f45a6e71550708c6dbaee41be8695de5856d.tar.bz2 gentoo-2-5b48f45a6e71550708c6dbaee41be8695de5856d.zip |
Minor facelifts (got rid of src_unpack(), fixed indentation).
No user-visible changes.
-rw-r--r-- | media-video/nvidia-kernel/nvidia-kernel-1.0.2802.ebuild | 84 |
1 files changed, 39 insertions, 45 deletions
diff --git a/media-video/nvidia-kernel/nvidia-kernel-1.0.2802.ebuild b/media-video/nvidia-kernel/nvidia-kernel-1.0.2802.ebuild index dd6cda7a443c..7ac1c03a14d9 100644 --- a/media-video/nvidia-kernel/nvidia-kernel-1.0.2802.ebuild +++ b/media-video/nvidia-kernel/nvidia-kernel-1.0.2802.ebuild @@ -3,68 +3,62 @@ # Maintainer: Arcady Genkin <agenkin@thpoon.com> # /space/gentoo/cvsroot/gentoo-x86/skel.build,v 1.14 2002/02/01 19:50:13 gbevin Exp -S="${WORKDIR}/${P}" - -DESCRIPTION="Linux kernel module for the NVIDIA's X driver" NV_V=1.0-2802 -NV_PACKAGE=NVIDIA_kernel-${NV_V} -NV_ARCHIVE="${NV_PACKAGE}.tar.gz" -SRC_URI="http://205.158.109.140/XFree86_40/${NV_V}/${NV_ARCHIVE}" +DESCRIPTION="Linux kernel module for the NVIDIA's X driver" HOMEPAGE="http://www.nvidia.com/" DEPEND="sys-kernel/linux-sources" -nv_get_kernel_version () { - # Determine the version of the kernel sources - local NV_KV="`readlink /usr/src/linux`" - if [ $? -ne 0 ] - then - die "/usr/src/linux does not exist" - fi - NV_KV="${NV_KV/linux-/}" - echo -n "${NV_KV}" -} +NV_PACKAGE=NVIDIA_kernel-${NV_V} +SRC_URI="http://205.158.109.140/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz" +S="${WORKDIR}/${NV_PACKAGE}" -src_unpack() { - unpack "${NV_ARCHIVE}" - mv "${NV_PACKAGE}" "${P}" +nv_get_kernel_version () { + # Determine the version of the kernel sources + local NV_KV="`readlink /usr/src/linux`" + if [ $? -ne 0 ] + then + die "/usr/src/linux does not exist" + fi + NV_KV="${NV_KV/linux-/}" + echo -n "${NV_KV}" } src_compile() { - make KERNDIR="/usr/src/linux-`nv_get_kernel_version`" \ + make KERNDIR="/usr/src/linux-`nv_get_kernel_version`" \ clean NVdriver || die } src_install () { - # The driver goes into the standard modules location - insinto "/lib/modules/`nv_get_kernel_version`/kernel/video" - doins NVdriver - - # Add the aliases - insinto /etc/modules.d - doins "${FILESDIR}/nvidia" + # The driver goes into the standard modules location + insinto "/lib/modules/`nv_get_kernel_version`/kernel/video" + doins NVdriver + + # Add the aliases + insinto /etc/modules.d + doins "${FILESDIR}"/nvidia - # Docs - dodoc README + # Docs + dodoc README - # The device creation script - exeinto /opt/nvidia/bin - doexe "${FILESDIR}/make_nvidia_devices.sh" + # The device creation script + exeinto /opt/nvidia/bin + doexe "${FILESDIR}"/make_nvidia_devices.sh } pkg_postinst() { - if [ "${ROOT}" = "/" ] - then - [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules - [ -x /sbin/depmod ] && /sbin/depmod -a - fi - - einfo - einfo "If you are not using devfs, you might want to create nvidia" - einfo "device nodes by running /opt/nvidia/bin/make_nvidia_devices.sh" - einfo - einfo "To load the module automatically at boot up, add" - einfo "\"NVdriver\" to your /etc/modules.autoload:" - einfo + if [ "${ROOT}" = "/" ] + then + [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules + [ -x /sbin/depmod ] && /sbin/depmod -a + fi + + einfo + einfo "If you are not using devfs, you might want to create nvidia" + einfo "device nodes by running /opt/nvidia/bin/make_nvidia_devices.sh" + einfo + einfo "To load the module automatically at boot up, add" + einfo "\"NVdriver\" to your /etc/modules.autoload:" + einfo } |