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

Contents of /app-laptop/tp_smapi/tp_smapi-0.40-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sat Mar 22 18:35:19 2014 UTC (6 years, 4 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

1 lxnay 1.5 # Copyright 1999-2012 Gentoo Foundation
2 alexxy 1.1 # Distributed under the terms of the GNU General Public License v2
3 kensington 1.6 # $Header: /var/cvsroot/gentoo-x86/app-laptop/tp_smapi/tp_smapi-0.40-r1.ebuild,v 1.5 2012/04/12 12:23:54 lxnay Exp $
4 alexxy 1.1
5     EAPI="3"
6    
7     inherit eutils linux-mod
8    
9     DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
10     HOMEPAGE="http://tpctl.sourceforge.net/"
11     SRC_URI="mirror://sourceforge/tpctl/${P}.tgz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 tomka 1.4 KEYWORDS="amd64 x86"
16 alexxy 1.1
17     IUSE="hdaps"
18    
19     RESTRICT="userpriv"
20    
21     # We need dmideode if the kernel does not support DMI_DEV_TYPE_OEM_STRING
22     # in dmi.h
23     DEPEND="sys-apps/dmidecode"
24     RDEPEND="${DEPEND}"
25    
26     pkg_setup() {
27     linux-mod_pkg_setup
28    
29     if kernel_is lt 2 6 19; then
30     eerror
31     eerror "${P} requires Linux kernel 2.6.19 or above."
32     eerror
33     die "Unsupported kernel version"
34     fi
35    
36     MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)"
37     BUILD_PARAMS="KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR}"
38     BUILD_TARGETS="default"
39    
40     if use hdaps; then
41    
42     CONFIG_CHECK="~INPUT_UINPUT"
43     WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better"
44     linux-info_pkg_setup
45    
46     MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)"
47     BUILD_PARAMS="${BUILD_PARAMS} HDAPS=1"
48    
49 lxnay 1.5 CONFIG_CHECK="~!SENSORS_HDAPS"
50 alexxy 1.1 ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)"
51     linux-info_pkg_setup
52     fi
53     }
54    
55     src_prepare() {
56     epatch "${FILESDIR}/${P}-2.6.37.patch"
57     epatch "${FILESDIR}"/fix_header_check.patch
58     }
59    
60     src_install() {
61     linux-mod_src_install
62     dodoc CHANGES README
63     }

  ViewVC Help
Powered by ViewVC 1.1.20