1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-laptop/acerhk/acerhk-0.5.33.ebuild,v 1.2 2006/10/30 19:40:54 opfer Exp $ |
4 |
|
5 |
inherit linux-mod |
6 |
|
7 |
DESCRIPTION="Hotkey driver for some Acer and Acer-like laptops" |
8 |
HOMEPAGE="http://www.informatik.hu-berlin.de/~tauber/acerhk/" |
9 |
SRC_URI="http://www.informatik.hu-berlin.de/~tauber/acerhk/archives/${P}.tar.bz2" |
10 |
|
11 |
LICENSE="GPL-2" |
12 |
KEYWORDS="-ppc x86" |
13 |
IUSE="" |
14 |
|
15 |
MODULE_NAMES="acerhk(extra:)" |
16 |
BUILD_TARGETS="all" |
17 |
|
18 |
src_unpack() |
19 |
{ |
20 |
unpack ${A} |
21 |
cd ${S} |
22 |
|
23 |
epatch ${FILESDIR}/kernel-2.6.19-config.h.patch || die "epatch failed" |
24 |
} |
25 |
|
26 |
pkg_setup() { |
27 |
linux-mod_pkg_setup |
28 |
BUILD_PARAMS="KERNELSRC=${KV_DIR} KERNELVERSION=${KV_FULL}" |
29 |
} |
30 |
|
31 |
src_install() { |
32 |
linux-mod_src_install |
33 |
dodoc README COPYING NEWS |
34 |
docinto doc |
35 |
dodoc doc/* |
36 |
} |
37 |
|
38 |
pkg_postinst() { |
39 |
linux-mod_pkg_postinst |
40 |
|
41 |
einfo "You can load the module:" |
42 |
einfo "% modprobe acerhk poll=1" |
43 |
einfo "If you need poll=1 you can set it permanently in /etc/modules.d/acerhk" |
44 |
echo |
45 |
einfo "If you need more info about this driver you can read the README file" |
46 |
einfo "% zmore /usr/share/doc/${PF}/README.gz" |
47 |
} |