| 1 |
# Copyright 1999-2008 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.35.ebuild,v 1.6 2008/06/01 01:25:57 jurek Exp $
|
| 4 |
|
| 5 |
inherit linux-mod
|
| 6 |
|
| 7 |
DESCRIPTION="Hotkey driver for some Acer and Acer-like laptops"
|
| 8 |
HOMEPAGE="http://www.cakey.de/acerhk/"
|
| 9 |
SRC_URI="http://www.cakey.de/${PN}/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 |
if [[ ${KV_MINOR} -eq 6 ]] && [[ ${KV_PATCH} -ge 24 ]]; then
|
| 24 |
sed -i -e \
|
| 25 |
's#^CFLAGS#EXTRA_CFLAGS#g' \
|
| 26 |
Makefile \
|
| 27 |
|| die "sed failed"
|
| 28 |
fi
|
| 29 |
}
|
| 30 |
|
| 31 |
pkg_setup() {
|
| 32 |
linux-mod_pkg_setup
|
| 33 |
BUILD_PARAMS="KERNELSRC=${KV_DIR} KERNELVERSION=${KV_FULL}"
|
| 34 |
}
|
| 35 |
|
| 36 |
src_install() {
|
| 37 |
linux-mod_src_install
|
| 38 |
dodoc README NEWS
|
| 39 |
docinto doc
|
| 40 |
dodoc doc/*
|
| 41 |
}
|
| 42 |
|
| 43 |
pkg_postinst() {
|
| 44 |
linux-mod_pkg_postinst
|
| 45 |
|
| 46 |
elog "You can load the module:"
|
| 47 |
elog "% modprobe acerhk poll=1"
|
| 48 |
elog "If you need poll=1 you can set it permanently in /etc/modprobe.d/acerhk"
|
| 49 |
elog
|
| 50 |
elog "If you need more info about this driver you can read the README file"
|
| 51 |
elog "% zmore /usr/share/doc/${PF}/README.bz2"
|
| 52 |
}
|