summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-02-06 12:14:08 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-02-06 12:14:08 +0000
commit188a3d23288dbb24047d405581ecb65fe6676c35 (patch)
treea5ea7ca3c3b4b0e4de162ab4bc6eb16904bb9b68 /media-sound/emu10k1/emu10k1-0.20a-r5.ebuild
parentClosing #40303. (Manifest recommit) (diff)
downloadgentoo-2-188a3d23288dbb24047d405581ecb65fe6676c35.tar.gz
gentoo-2-188a3d23288dbb24047d405581ecb65fe6676c35.tar.bz2
gentoo-2-188a3d23288dbb24047d405581ecb65fe6676c35.zip
Added error message to pkg_setup that this module only works with 2.4.x kernels.
Diffstat (limited to 'media-sound/emu10k1/emu10k1-0.20a-r5.ebuild')
-rw-r--r--media-sound/emu10k1/emu10k1-0.20a-r5.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild b/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild
index c2b9b3940371..1bdcfc7d9783 100644
--- a/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild
+++ b/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild,v 1.4 2004/02/05 07:44:07 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild,v 1.5 2004/02/06 12:14:01 eradicator Exp $
+
+inherit kernel-mod
MY_P="${P/-/-v}"
DESCRIPTION="Drivers, utilities, and effects for Sound Blaster cards (SBLive!, SB512, Audigy)"
@@ -19,6 +21,8 @@ S="${WORKDIR}/${MY_P}"
pkg_setup() {
[ -z "$KV" ] && die "Couldn't detect kernel version. Does /usr/src/linux exist?"
+ kernel-mod_is_2_4_kernel || die "This module is only compatible with 2.4.x kernels."
+
return 0
}
@@ -35,8 +39,8 @@ src_compile() {
echo "MODVERSIONS := y" >> config
echo "DBGEMU := n" >> config
- # Unset ARCH to prevent conflict. See bug #40424
- unset ARCH
+ # Unset ARCH to prevent conflict with 2.6 kernels. See bug #40424
+ # unset ARCH
export KERNEL_SOURCE=/usr/src/linux
make || die "make failed"