1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit linux-info linux-mod versionator
9 DESCRIPTION="next generation em28xx driver including dvb support"
10 HOMEPAGE="http://mcentral.de/"
11 SRC_URI="http://upload.hasnoname.de/${PN}/${PN}-$(get_version_component_range 3).tar.bz2"
14 KEYWORDS="~amd64 ~x86"
19 CONFIG_CHECK="VIDEO_V4L2 DVB_CORE"
23 if kernel_is lt 2 6 21; then
24 eerror "You need at least kernel 2.6.21"
28 if linux_chkconfig_present VIDEO_EM28XX; then
29 ewarn "In-kernel em28xx drivers enabled, disable or remove them from"
30 ewarn "/lib/modules/${KV_FULL} if you experience problems."
35 if kernel_is eq 2 6 29; then
36 epatch "${FILESDIR}"/em28xx-new-video.c-2.6.29.patch
39 if kernel_is ge 2 6 30; then
40 epatch "${FILESDIR}"/em28xx-new-2.6.30.patch
46 emake || die "Compiling kernel modules failed"
50 insinto /lib/modules/${KV_FULL}/empia
51 local extglob_bak=$(shopt -p extglob)
52 shopt -s extglob # portage disables bash extglob in ebuilds
53 doins $(echo {!(precompiled)/,}*.ko) || die "doins failed"
54 eval ${extglob_bak} # restore previous extglob status