diff options
author | Arcady Genkin <agenkin@gentoo.org> | 2002-04-29 03:20:44 +0000 |
---|---|---|
committer | Arcady Genkin <agenkin@gentoo.org> | 2002-04-29 03:20:44 +0000 |
commit | fac335ff0448fc256ce32b5105b7c8fff44ef52d (patch) | |
tree | 61e3f148e1f91cdce5e718d96927c60e8ad0d7cd /media-video | |
parent | Fixes #2111. (diff) | |
download | gentoo-2-fac335ff0448fc256ce32b5105b7c8fff44ef52d.tar.gz gentoo-2-fac335ff0448fc256ce32b5105b7c8fff44ef52d.tar.bz2 gentoo-2-fac335ff0448fc256ce32b5105b7c8fff44ef52d.zip |
Removed the function to determine kernel version in favour of using
${KV} variable, defined by the portage. This also makes the bug #2196
go away.
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/nvidia-kernel/nvidia-kernel-1.0.2880.ebuild | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/media-video/nvidia-kernel/nvidia-kernel-1.0.2880.ebuild b/media-video/nvidia-kernel/nvidia-kernel-1.0.2880.ebuild index 8eec884bb627..35ec4449e37b 100644 --- a/media-video/nvidia-kernel/nvidia-kernel-1.0.2880.ebuild +++ b/media-video/nvidia-kernel/nvidia-kernel-1.0.2880.ebuild @@ -1,15 +1,16 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Martin Schlemmer <azarah@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.2880.ebuild,v 1.2 2002/04/25 06:56:22 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.2880.ebuild,v 1.3 2002/04/29 03:20:44 agenkin Exp $ + +DESCRIPTION="Linux kernel module for the NVIDIA's X driver" +HOMEPAGE="http://www.nvidia.com/" NV_V=${PV/1.0./1.0-} NV_PACKAGE=NVIDIA_kernel-${NV_V} S="${WORKDIR}/${NV_PACKAGE}" -DESCRIPTION="Linux kernel module for the NVIDIA's X driver" SRC_URI="ftp://download.nvidia.com/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz http://download.nvidia.com/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz" -HOMEPAGE="http://www.nvidia.com/" DEPEND="virtual/linux-sources" @@ -18,26 +19,14 @@ DEPEND="virtual/linux-sources" DEBUG="yes" RESTRICT="nostrip" - -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`" \ - clean NVdriver || die + [ x"${KV}" = x ] && die "Cannot determine kernel version." + make KERNDIR="/usr/src/linux-${KV}" clean NVdriver || die } src_install () { # The driver goes into the standard modules location - insinto "/lib/modules/`nv_get_kernel_version`/kernel/video" + insinto "/lib/modules/${KV}/kernel/video" doins NVdriver # Add the aliases @@ -75,4 +64,3 @@ pkg_postinst() { einfo "\"NVdriver\" to your /etc/modules.autoload:" einfo } - |