diff options
author | Arcady Genkin <agenkin@gentoo.org> | 2002-05-03 06:59:50 +0000 |
---|---|---|
committer | Arcady Genkin <agenkin@gentoo.org> | 2002-05-03 06:59:50 +0000 |
commit | fca49fbe1010dd1307c27b23904a19d0bb1de9b1 (patch) | |
tree | 5160be2b3dea8aff3910513b65babaa1d961f9a6 | |
parent | added db-1 as a dependency (diff) | |
download | gentoo-2-fca49fbe1010dd1307c27b23904a19d0bb1de9b1.tar.gz gentoo-2-fca49fbe1010dd1307c27b23904a19d0bb1de9b1.tar.bz2 gentoo-2-fca49fbe1010dd1307c27b23904a19d0bb1de9b1.zip |
Makes sure that Portage sets KV to something.
-rw-r--r-- | media-video/nvidia-kernel/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/nvidia-kernel/nvidia-kernel-1.0.2880-r1.ebuild | 19 |
2 files changed, 21 insertions, 5 deletions
diff --git a/media-video/nvidia-kernel/ChangeLog b/media-video/nvidia-kernel/ChangeLog index 5adfadf97b2c..18976fbe9651 100644 --- a/media-video/nvidia-kernel/ChangeLog +++ b/media-video/nvidia-kernel/ChangeLog @@ -1,9 +1,14 @@ # ChangeLog for media-video/nvidia-kernel # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/ChangeLog,v 1.2 2002/04/29 06:49:02 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/ChangeLog,v 1.3 2002/05/03 06:59:50 agenkin Exp $ *nvidia-kernel-1.0.2880-r1 (29 Apr 2002) + 3 May 2002; Arcady Genkin <agenkin@thpoon.com> + nvidia-kernel-1.0.2800-r1.ebuild : + + Make sure that Portage *does* set KV to something; bail out otherwise. ;^) + 29 Apr 2002; Daniel Robbins <drobbins@gentoo.org>: Changed NV_KV to KV and added a Portage dependency to ensure that KV is available. Should fix some build problems. diff --git a/media-video/nvidia-kernel/nvidia-kernel-1.0.2880-r1.ebuild b/media-video/nvidia-kernel/nvidia-kernel-1.0.2880-r1.ebuild index a6300f4115d2..9e6d3e1a4878 100644 --- a/media-video/nvidia-kernel/nvidia-kernel-1.0.2880-r1.ebuild +++ b/media-video/nvidia-kernel/nvidia-kernel-1.0.2880-r1.ebuild @@ -1,17 +1,19 @@ # 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-r1.ebuild,v 1.2 2002/04/29 07:04:18 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.2880-r1.ebuild,v 1.3 2002/05/03 06:59:50 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 >=sys-apps/portage-1.9.4" +DEPEND="virtual/linux-sources + >=sys-apps/portage-1.9.4" # Make sure Portage does _NOT_ strip symbols. Need both lines for # Portage 1.8.9+ @@ -19,6 +21,15 @@ DEBUG="yes" RESTRICT="nostrip" src_compile() { + # Portage should determine the version of the kernel sources + if [ x"${KV}" = x ] + then + eerror "" + eerror "Could not determine you kernel version." + eerror "Make sure that you have /usr/src/linux symlink." + eerror "" + die + fi make KERNDIR="/usr/src/linux-${KV}" \ clean NVdriver || die } |