/[gentoo-x86]/app-laptop/ibm-acpi/ibm-acpi-0.5.ebuild
Gentoo

Contents of /app-laptop/ibm-acpi/ibm-acpi-0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Nov 15 18:16:54 2004 UTC (15 years, 9 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Added check for CONFIG_ACPI_IBM, mark 0.7 x86, pruned old versions.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-laptop/ibm-acpi/ibm-acpi-0.5.ebuild,v 1.1 2004/10/18 18:36:43 brix Exp $
4
5 inherit kernel-mod eutils
6
7 DESCRIPTION="IBM ThinkPad ACPI extras"
8
9 HOMEPAGE="http://ibm-acpi.sourceforge.net"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86"
15
16 IUSE=""
17
18 DEPEND="sys-apps/sed"
19
20 src_unpack() {
21 kernel-mod_check_modules_supported
22
23 if ! kernel-mod_configoption_present ACPI
24 then
25 eerror ""
26 eerror "${PN} requires support for ACPI (CONFIG_ACPI) in the kernel."
27 eerror ""
28 die "CONFIG_ACPI support not detected."
29 fi
30
31 unpack ${A}
32
33 # let pkg_postinst() handle depmod
34 sed -i "s:depmod -a::" ${S}/Makefile
35
36 kernel-mod_getversion
37
38 if [ ${KV_MINOR} -gt 5 ] && [ ${KV_PATCH} -gt 5 ]
39 then
40 sed -i 's:SUBDIRS=:M=:g' ${S}/Makefile
41 fi
42 }
43
44 src_compile() {
45 set_arch_to_kernel
46
47 emake KDIR=${ROOT}/usr/src/linux || die
48 }
49
50 src_install() {
51 set_arch_to_kernel
52
53 emake MDIR=${D}/lib/modules/${KV}/acpi install || die
54
55 set_arch_to_portage
56
57 dodoc LICENSE README
58
59 docinto examples/etc/acpi/actions
60 dodoc config/etc/acpi/actions/*
61
62 docinto examples/etc/acpi/events
63 dodoc config/etc/acpi/events/*
64 }
65
66 pkg_postinst() {
67 einfo "Checking kernel module dependencies"
68 test -r "${ROOT}/usr/src/linux/System.map" && \
69 depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
70
71 einfo ""
72 einfo "You may wish to install sys-apps/acpid to handle the ACPI events generated"
73 einfo "by ${P}. Example acpid configuration has been installed to"
74 einfo "/usr/share/doc/${PF}/examples/"
75 einfo ""
76 einfo "For further instructions please see /usr/share/doc/${PF}/README.gz"
77 einfo ""
78 }

  ViewVC Help
Powered by ViewVC 1.1.20