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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Dec 6 12:34:50 2004 UTC (9 years, 9 months ago) by sekretarz
Branch: MAIN
Added patch, which redefines the key_wireless and key_wireless2 keys, bug #73398

1 sekretarz 1.1 # Copyright 1999-2004 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.18.ebuild,v 1.1 2004/11/25 23:16:23 sekretarz Exp $
4    
5     inherit kernel-mod eutils
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/acerhk-${PV}.tar.bz2"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~x86"
14    
15     IUSE=""
16     DEPEND="virtual/kernel"
17     RDEPEND=""
18    
19     src_unpack() {
20     unpack ${A}
21     cd ${WORKDIR}
22     epatch ${FILESDIR}/${P}-redef-wireless.patch
23    
24     }
25    
26     src_compile() {
27     unset ARCH
28     emake || die
29     }
30    
31     src_install() {
32    
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/*
45     }
46     pkg_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     }

  ViewVC Help
Powered by ViewVC 1.1.20