/[gentoo-x86]/app-laptop/tp_smapi/tp_smapi-0.21.ebuild
Gentoo

Contents of /app-laptop/tp_smapi/tp_smapi-0.21.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jun 21 17:52:23 2006 UTC (14 years, 3 months ago) by brix
Branch: MAIN
Version bump.
(Portage version: 2.1)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 inherit linux-mod
6
7 DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
8 HOMEPAGE="http://tpctl.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/tpctl/${P}.tgz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~x86"
14
15 IUSE="hdaps"
16
17 BUILD_TARGETS="default"
18
19 pkg_setup() {
20 linux-mod_pkg_setup
21
22 if kernel_is lt 2 6 15; then
23 eerror
24 eerror "${P} requires Linux kernel 2.6.15 or above."
25 eerror
26 die "Unsupported kernel version"
27 fi
28
29 MODULE_NAMES="tp_base(extra:) tp_smapi(extra:)"
30 BUILD_PARAMS="KSRC=${KV_DIR}"
31
32 if use hdaps; then
33 MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)"
34 BUILD_PARAMS="${BUILD_PARAMS} HDAPS=1"
35 fi
36 }
37
38 src_install() {
39 linux-mod_src_install
40
41 dodoc CHANGES README
42 }

  ViewVC Help
Powered by ViewVC 1.1.20