summaryrefslogtreecommitdiff
blob: a0f2b27cc75a37e84948cd544d00b8fabf14fa2e (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils linux-mod linux-info

DESCRIPTION="Nvidia-based graphics adapter backlight driver"
HOMEPAGE="https://launchpad.net/~mactel-support"
SRC_URI="https://launchpad.net/~mactel-support/+archive/ppa/+files/${PN}-dkms_${PV}~lucid.tar.gz"

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

S="${WORKDIR}/${PN}-dkms-${PV}/usr/src/dkms_source_tree"

MODULE_NAMES="nvidia_bl(kernel/drivers)"

pkg_setup() {
	kernel_is -lt 2 6 29 && die "kernel 2.6.29 or higher is required"
	linux-mod_pkg_setup
	BUILD_PARAMS="-C ${KV_DIR} M=${S}"
	BUILD_TARGETS="nvidia_bl.ko"
}