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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Apr 20 13:18:01 2007 UTC (13 years, 5 months ago) by chainsaw
Branch: MAIN
Version bump, closes bug #170106.
(Portage version: 2.1.2.4)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-laptop/tp_smapi/tp_smapi-0.30.ebuild,v 1.2 2006/12/29 19:16:49 genstef Exp $
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 RESTRICT="userpriv"
18
19 # We need dmideode if the kernel does not support DMI_DEV_TYPE_OEM_STRING
20 # in dmi.h
21 DEPEND="sys-apps/dmidecode"
22
23 pkg_setup() {
24 linux-mod_pkg_setup
25
26 if kernel_is lt 2 6 15; then
27 eerror
28 eerror "${P} requires Linux kernel 2.6.15 or above."
29 eerror
30 die "Unsupported kernel version"
31 fi
32
33 MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)"
34 BUILD_PARAMS="KSRC=${KV_DIR} KBUILD=${KV_DIR}"
35 BUILD_TARGETS="default"
36
37 if use hdaps; then
38 MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)"
39 BUILD_PARAMS="${BUILD_PARAMS} HDAPS=1"
40 fi
41 }
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46
47 # Ug, sudo in a Makefile
48 sed -i 's,sudo ,,' Makefile
49 }
50
51 src_install() {
52 linux-mod_src_install
53
54 dodoc CHANGES README
55 }

  ViewVC Help
Powered by ViewVC 1.1.20