summaryrefslogtreecommitdiff
blob: ae2b31b9f1b9c43c59e3dff52197aed1204a71a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils linux-info

DESCRIPTION="A driver for sn9c1xx (webcam) devices, like the Sweex Mini cam"
HOMEPAGE="http://www.linux-projects.org/modules/mydownloads/viewcat.php?op=&cid=2"
SRC_URI="http://dev.gentooexperimental.org/~dreeevil/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

CONFIG_CHECK="VIDEO_DEV USB"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-kbuild.patch
	set_arch_to_kernel
}

src_compile() {
	emake clean || die "emake clean failed"
	emake modules || die "emake modules failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc ChangeLog sn9c102.txt || die "installing docs faild"
}