summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2004-02-18 10:35:31 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2004-02-18 10:35:31 +0000
commit02a2e9feb04f7a19f7d2b7a2440a86d390c06f1c (patch)
treedf33ca0f65d4bb73aacc7abd769404258dc01fa7
parentversion bump, added libgtkhtml dep (Manifest recommit) (diff)
downloadgentoo-2-02a2e9feb04f7a19f7d2b7a2440a86d390c06f1c.tar.gz
gentoo-2-02a2e9feb04f7a19f7d2b7a2440a86d390c06f1c.tar.bz2
gentoo-2-02a2e9feb04f7a19f7d2b7a2440a86d390c06f1c.zip
Using check-kernel eclass now
-rw-r--r--media-video/usb-pwcx/ChangeLog7
-rw-r--r--media-video/usb-pwcx/usb-pwcx-8.4.ebuild11
2 files changed, 13 insertions, 5 deletions
diff --git a/media-video/usb-pwcx/ChangeLog b/media-video/usb-pwcx/ChangeLog
index 109afc321237..bc82dc584997 100644
--- a/media-video/usb-pwcx/ChangeLog
+++ b/media-video/usb-pwcx/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-video/usb-pwcx
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/usb-pwcx/ChangeLog,v 1.7 2004/02/11 10:29:54 phosphan Exp $
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/usb-pwcx/ChangeLog,v 1.8 2004/02/18 10:35:31 phosphan Exp $
+
+ 18 Feb 2004; Patrick Kursawe <phosphan@gentoo.org> usb-pwcx-8.4.ebuild:
+ Uses check-kernel eclass now
11 Feb 2004; Patrick Kursawe <phosphan@gentoo.org> :
Added metadata - video herd.
diff --git a/media-video/usb-pwcx/usb-pwcx-8.4.ebuild b/media-video/usb-pwcx/usb-pwcx-8.4.ebuild
index ec34d5cddfe7..8baf438e2caf 100644
--- a/media-video/usb-pwcx/usb-pwcx-8.4.ebuild
+++ b/media-video/usb-pwcx/usb-pwcx-8.4.ebuild
@@ -1,6 +1,9 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/usb-pwcx/usb-pwcx-8.4.ebuild,v 1.1 2004/02/11 10:23:51 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/usb-pwcx/usb-pwcx-8.4.ebuild,v 1.2 2004/02/18 10:35:31 phosphan Exp $
+
+
+inherit check-kernel
DESCRIPTION="Optional binary only drivers for phillips (and many other) webcams giving higher resolutions and framerates"
HOMEPAGE="http://www.smcc.demon.nl/webcam/"
@@ -14,16 +17,18 @@ S=${WORKDIR}/pwcx-${PV}
src_install() {
- if [ "$(echo $(uname -r) | cut -c-3)" = "2.6" ]; then
+ if is_2_6_kernel; then
einfo "Kernel 2.6 detected!"
insinto "/lib/modules/$(uname -r)/video/"
doins 2.6.0/gcc-3.2/pwcx.ko
echo "post-install pwc /sbin/modprobe --force pwcx >& /dev/null 2>&1 || :" > usb-pwcx
- else
+ elif is_2_4_kernel; then
einfo "Kernel 2.4 detected!"
insinto "/lib/modules/usb"
doins 2.4.23/gcc-3.2/pwcx.o
echo "post-install pwc /sbin/insmod --force /lib/modules/usb/pwcx.o >& /dev/null 2>&1 || :" > usb-pwcx
+ else
+ eerror "No supported kernel version (2.4/2.5) detected."
fi
insinto /etc/modules.d