/[gentoo-x86]/app-laptop/acerhk/acerhk-0.5.18-r1.ebuild
Gentoo

Diff of /app-laptop/acerhk/acerhk-0.5.18-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-laptop/acerhk/Attic/acerhk-0.5.18-r1.ebuild,v 1.2 2005/01/01 14:44:47 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-laptop/acerhk/Attic/acerhk-0.5.18-r1.ebuild,v 1.3 2005/01/02 10:40:29 genstef Exp $
4 4
5inherit kernel-mod eutils 5inherit linux-mod eutils
6 6
7DESCRIPTION="Hotkey driver for some Acer and Acer-like laptops" 7DESCRIPTION="Hotkey driver for some Acer and Acer-like laptops"
8HOMEPAGE="http://www.informatik.hu-berlin.de/~tauber/acerhk/" 8HOMEPAGE="http://www.informatik.hu-berlin.de/~tauber/acerhk/"
9SRC_URI="http://www.informatik.hu-berlin.de/~tauber/acerhk/archives/acerhk-${PV}.tar.bz2" 9SRC_URI="http://www.informatik.hu-berlin.de/~tauber/acerhk/archives/acerhk-${PV}.tar.bz2"
10 10
11LICENSE="GPL-2" 11LICENSE="GPL-2"
12SLOT="0" 12SLOT="0"
13KEYWORDS="~x86" 13KEYWORDS="~x86"
14IUSE=""
14 15
15IUSE="" 16MODULE_NAMES="acerhk(extra:)"
16DEPEND="virtual/kernel" 17BUILD_PARAMS="KERNELSRC=${KV_DIR} KERNELVERSION=${KV_FULL}"
17RDEPEND="" 18BUILD_TARGETS="all"
18 19
19src_unpack() { 20src_unpack() {
20 unpack ${A} 21 unpack ${A}
21 cd ${WORKDIR} 22 cd ${WORKDIR}
22 epatch ${FILESDIR}/${P}-redef-wireless.patch 23 epatch ${FILESDIR}/${P}-redef-wireless.patch
23 24
24} 25}
25 26
26src_compile() {
27 unset ARCH
28 emake || die
29}
30
31src_install() { 27src_install() {
32 28 linux-mod_src_install
33 kernel-mod_getversion
34 if [ ${KV_MINOR} -gt 4 ]
35 then
36 KV_OBJ="ko"
37 else
38 KV_OBJ="o"
39 fi
40
41 insinto /lib/modules/${KV}/extra
42 doins acerhk.${KV_OBJ}
43
44 dodoc README COPYING NEWS doc/* 29 dodoc README COPYING NEWS doc/*
45} 30}
46pkg_postinst() {
47 kernel-mod_getversion
48 if [ ${KV_MINOR} -gt 4 ]
49 then
50 KV_OBJ="ko"
51 else
52 KV_OBJ="o"
53 fi
54
55 echo
56 einfo "Checking kernel module dependancies"
57 test -r "${ROOT}/usr/src/linux/System.map" && \
58 depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
59
60 einfo "You can load the module:"
61 einfo "% modprobe acerhk poll=1"
62 echo
63 einfo "If you need more info about this driver you can read the README file"
64 einfo "% zmore /usr/share/doc/${PN}-${PV}/README.gz"
65}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20