/[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.1 - (show annotations) (download)
Sun Mar 30 22:35:05 2008 UTC (12 years, 4 months ago) by welp
Branch: MAIN
Bump; bugs 141565 and 208627
(Portage version: 2.1.4.4)

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.33.ebuild,v 1.1 2007/12/31 18:30:43 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 # Remove usage of `sudo` in Makefile.
52 sed -i 's,sudo ,,' Makefile
53 }
54
55 src_install() {
56 linux-mod_src_install
57
58 dodoc CHANGES README
59 }

  ViewVC Help
Powered by ViewVC 1.1.20