# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 IUSE="" inherit linux-mod eutils DESCRIPTION="A linux (2.6-) kernel driver for Hauppauge's WinTV-PVR-usb2" HOMEPAGE="http://justiceforall.free.fr/pvrusb2.html" SRC_URI="http://justiceforall.free.fr/pvrusb2-dev-07112004.tar.bz2 http://www.eskimo.com/~roger/files/packages/pvrusb2/pvrusb2.f1.bz2 http://www.eskimo.com/~roger/files/packages/pvrusb2/pvrusb2.f2.bz2" # NOTE: The two firmware* files are stripped from a proprietory win32 driver! # How does this get listed? How do this two files get published? LICENSE="GPL-1" # NOTE: The two firmware* files are stripped from a proprietory win32 driver! SLOT="0" KEYWORDS="x86" RDEPEND="" DEPEND="" S=${WORKDIR}/pvrusb2-dev-07112004 MODULE_NAMES="pvrusb2(pvrusb2:)" BUILD_PARAMS="KERNEL_DIR=${KV_DIR}" pkg_setup() { if kernel_is 2 6; then CONFIG_CHECK="USB" else "You need kernel-2.6 for this module to work" fi linux-mod_pkg_setup } src_unpack() { unpack ${A} cd ${S} #epatch ${FILESDIR}/gentoo.patch } src_compile() { # Note: no standard makefile - only a compile.sh script # or else we would use linux-mod_src_compile unset ARCH emake || die "Error: emake failed!" } src_install() { #I keep getting an ACCESS VIOLATION using the following #einstall || die insinto "/lib/modules/${KV_full}/kernel/drivers/usb/media" doins pvrusb2.ko insinto "/lib/firmware/" doins ${WORKDIR}/pvrusb2.f1 doins ${WORKDIR}/pvrusb2.f2 echo "post-install pvrusb2 /sbin/modprobe pvrusb2 >& /dev/null 2>&1 || :" }