/[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.5 - (hide annotations) (download)
Fri Jun 17 13:27:42 2011 UTC (9 years, 1 month ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Revision bump to migrate intiscripts from bashisms. Punt older overshadowed stuff.

(Portage version: 2.2.0_alpha38/cvs/Linux x86_64)

1 robbat2 1.4 # Copyright 1999-2009 Gentoo Foundation
2 welp 1.1 # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.5 # $Header: /var/cvsroot/gentoo-x86/app-laptop/tp_smapi/tp_smapi-0.37.ebuild,v 1.4 2009/09/06 21:13:35 robbat2 Exp $
4 welp 1.1
5 robbat2 1.4 inherit linux-mod
6 welp 1.1
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 welp 1.2 linux-info_pkg_setup
44 welp 1.1 fi
45     }
46    
47     src_unpack() {
48     unpack ${A}
49     cd "${S}"
50    
51 hanno 1.3 epatch "${FILESDIR}/thinkpad_ec_semaphore.patch"
52    
53 welp 1.1 # 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