summaryrefslogtreecommitdiff
path: root/media-video/usb-pwc-re
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2006-01-03 23:40:11 +0000
committerBertrand Jacquin <beber@meleeweb.net>2006-01-03 23:40:11 +0000
commitb4035e10d7ec9540a1816ed2b329155dad1220ba (patch)
tree10356d66a93072e109a2cc78b0a831595732455f /media-video/usb-pwc-re
parentupdate manifest (diff)
downloadportage-b4035e10d7ec9540a1816ed2b329155dad1220ba.tar.xz
add usb-pwc-re
Diffstat (limited to 'media-video/usb-pwc-re')
-rw-r--r--media-video/usb-pwc-re/Manifest2
-rw-r--r--media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.101
-rw-r--r--media-video/usb-pwc-re/usb-pwc-re-10.0.10.ebuild52
3 files changed, 55 insertions, 0 deletions
diff --git a/media-video/usb-pwc-re/Manifest b/media-video/usb-pwc-re/Manifest
new file mode 100644
index 00000000..64331867
--- /dev/null
+++ b/media-video/usb-pwc-re/Manifest
@@ -0,0 +1,2 @@
+MD5 bba6f3228a4b81cfc3b8fd26f385aca4 files/digest-usb-pwc-re-10.0.10 63
+MD5 3caa12dd047f957149690ee0d463da76 usb-pwc-re-10.0.10.ebuild 1467
diff --git a/media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.10 b/media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.10
new file mode 100644
index 00000000..3b64d4f4
--- /dev/null
+++ b/media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.10
@@ -0,0 +1 @@
+MD5 a29423adf03d07bee824fe1627911b94 pwc-10.0.10.tar.bz2 46596
diff --git a/media-video/usb-pwc-re/usb-pwc-re-10.0.10.ebuild b/media-video/usb-pwc-re/usb-pwc-re-10.0.10.ebuild
new file mode 100644
index 00000000..36ade62a
--- /dev/null
+++ b/media-video/usb-pwc-re/usb-pwc-re-10.0.10.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/usb-pwc-re/usb-pwc-re-10.0.9_rc1.ebuild,v 1.1 2005/10/31 11:26:46 phosphan Exp $
+
+inherit linux-info toolchain-funcs eutils
+
+DESCRIPTION="Free Philips USB Webcam driver for Linux that supports VGA resolution, newer kernels and replaces the old pwcx module."
+HOMEPAGE="http://www.saillard.org/pwc/"
+MY_PV="${PV/_/-}"
+SRC_URI="http://www.saillard.org/pwc/files/pwc-${MY_PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+IUSE=""
+DEPEND="sys-kernel/linux-headers"
+RDEPEND=""
+
+RESTRICT="nomirror"
+
+S=${WORKDIR}/pwc-${MY_PV}
+
+src_compile() {
+ export ARCH="$(tc-arch-kernel)"
+ emake KSRC="${KERNEL_DIR}" || die "make failed"
+ test -f pwc.ko || die "You can't have both at once - a builtin driver and a module."
+}
+
+src_install() {
+
+ if kernel_is 2 6; then
+ einfo "Kernel ${KV_FULL} detected!"
+ insinto "/lib/modules/${KV_FULL}/kernel/drivers/usb/media/pwc"
+ doins pwc.ko
+ echo "post-install pwc /sbin/modprobe --force pwcx >& /dev/null 2>&1 || :" > usb-pwcx
+ else
+ eerror "No supported kernel version (2.6) detected."
+ fi
+
+ insinto /etc/modules.d
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = "/" ]
+ then
+ # Update module dependency
+ [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules
+ depmod -a
+ fi
+ einfo "If you have problems loading the module, please check the \"dmesg\" output."
+}