summaryrefslogtreecommitdiff
path: root/media-video/usb-pwc-re
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/usb-pwc-re')
-rw-r--r--media-video/usb-pwc-re/Manifest6
-rw-r--r--media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.12_rc13
-rw-r--r--media-video/usb-pwc-re/usb-pwc-re-10.0.12_rc1.ebuild53
3 files changed, 62 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..8c8a4db9
--- /dev/null
+++ b/media-video/usb-pwc-re/Manifest
@@ -0,0 +1,6 @@
+MD5 ee450819dc851512fcd0144c258e26e9 files/digest-usb-pwc-re-10.0.12_rc1 247
+RMD160 fe658ed070867907a6ff77c38bf7af85fc8aa3c3 files/digest-usb-pwc-re-10.0.12_rc1 247
+SHA256 e77f8eb76572665db8b3f05b798bb412ade56512721224a4b94acccf2bfdbd65 files/digest-usb-pwc-re-10.0.12_rc1 247
+MD5 4a6523419845111188d51fa2511a13c9 usb-pwc-re-10.0.12_rc1.ebuild 1478
+RMD160 312c040d2abaa13f4a80d1e2ecc7f9ddf0b6ef15 usb-pwc-re-10.0.12_rc1.ebuild 1478
+SHA256 aa31634e97f52d742a548c25aa609b62dfeb10afbbfd5665794ac9d4d74e16f2 usb-pwc-re-10.0.12_rc1.ebuild 1478
diff --git a/media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.12_rc1 b/media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.12_rc1
new file mode 100644
index 00000000..c86c0179
--- /dev/null
+++ b/media-video/usb-pwc-re/files/digest-usb-pwc-re-10.0.12_rc1
@@ -0,0 +1,3 @@
+MD5 8763f3d6fd0f9738ef9854de205a126d pwc-10.0.12-rc1.tar.bz2 48861
+RMD160 52f526e308494235f0f80c4525d01efc9e2cd107 pwc-10.0.12-rc1.tar.bz2 48861
+SHA256 dad803c34e902e286a3d6fb052f48b826c62a8ad19a54ced2936da7641b62907 pwc-10.0.12-rc1.tar.bz2 48861
diff --git a/media-video/usb-pwc-re/usb-pwc-re-10.0.12_rc1.ebuild b/media-video/usb-pwc-re/usb-pwc-re-10.0.12_rc1.ebuild
new file mode 100644
index 00000000..cafb5403
--- /dev/null
+++ b/media-video/usb-pwc-re/usb-pwc-re-10.0.12_rc1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2006 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.11.ebuild,v 1.1 2006/02/13 07:50:05 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/linux/pwc/files/pwc-${MY_PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+RESTRICT="nomirror"
+
+IUSE=""
+DEPEND="sys-kernel/linux-headers"
+RDEPEND=""
+
+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."
+}