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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show 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.1: +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 # 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.32.ebuild,v 1.1 2007/11/16 18:27:10 welp 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="~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 fi
41 }
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46
47 # Remove usage of `sudo` in 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