blob: 989cbefba879ff9ce2a00459a586362c5b1f4c77 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-laptop/acerhk/acerhk-0.5.35.ebuild,v 1.6 2008/06/01 01:25:57 jurek Exp $
inherit linux-mod
DESCRIPTION="Hotkey driver for some Acer and Acer-like laptops"
HOMEPAGE="http://www.cakey.de/acerhk/"
SRC_URI="http://www.cakey.de/${PN}/archives/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="-ppc x86"
IUSE=""
MODULE_NAMES="acerhk(extra:)"
BUILD_TARGETS="all"
src_unpack()
{
unpack ${A}
cd "${S}"
if [[ ${KV_MINOR} -eq 6 ]] && [[ ${KV_PATCH} -ge 24 ]]; then
sed -i -e \
's#^CFLAGS#EXTRA_CFLAGS#g' \
Makefile \
|| die "sed failed"
fi
}
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERNELSRC=${KV_DIR} KERNELVERSION=${KV_FULL}"
}
src_install() {
linux-mod_src_install
dodoc README NEWS
docinto doc
dodoc doc/*
}
pkg_postinst() {
linux-mod_pkg_postinst
elog "You can load the module:"
elog "% modprobe acerhk poll=1"
elog "If you need poll=1 you can set it permanently in /etc/modprobe.d/acerhk"
elog
elog "If you need more info about this driver you can read the README file"
elog "% zmore /usr/share/doc/${PF}/README.bz2"
}
|