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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Sep 22 20:20:25 2008 UTC (11 years, 10 months ago) by hanno
Branch: MAIN
Changes since 1.2: +3 -1 lines
tp_smapi support for 2.6.27
(Portage version: 2.2_rc9/cvs/Linux 2.6.27-rc7 x86_64)

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/tp_smapi/tp_smapi-0.37.ebuild,v 1.2 2008/03/31 08:34:42 welp Exp $
4
5 inherit linux-mod linux-info
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="~amd64 ~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 19; then
27 eerror
28 eerror "${P} requires Linux kernel 2.6.19 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
41 CONFIG_CHECK="!SENSORS_HDAPS"
42 ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)"
43 linux-info_pkg_setup
44 fi
45 }
46
47 src_unpack() {
48 unpack ${A}
49 cd "${S}"
50
51 epatch "${FILESDIR}/thinkpad_ec_semaphore.patch"
52
53 # Remove usage of `sudo` in Makefile.
54 sed -i 's,sudo ,,' Makefile
55 }
56
57 src_install() {
58 linux-mod_src_install
59
60 dodoc CHANGES README
61 }

  ViewVC Help
Powered by ViewVC 1.1.20