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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jun 9 09:29:37 2005 UTC (15 years, 2 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Pruned old ebuilds.
(Portage version: 2.0.51.22-r1)

1 # Copyright 1999-2005 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.10.ebuild,v 1.3 2005/04/21 07:16:36 wormo Exp $
4
5 inherit linux-mod
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 -ppc"
15
16 IUSE="doc"
17
18 BUILD_PARAMS="KDIR=${KV_DIR}"
19 BUILD_TARGETS="default"
20 MODULE_NAMES="ibm_acpi(acpi:)"
21 MODULESD_IBM_ACPI_DOCS="README"
22
23 CONFIG_CHECK="!ACPI_IBM ACPI"
24 ACPI_IBM_ERROR="${P} requires IBM ThinkPad Laptop Extras (CONFIG_ACPI_IBM) to be DISABLED in the kernel."
25 ACPI_ERROR="${P} requires an ACPI (CONFIG_ACPI) enabled kernel."
26
27 pkg_setup() {
28 if kernel_is 2 4; then
29 die "${P} does not support kernel 2.4.x"
30 fi
31
32 linux-mod_pkg_setup
33 }
34
35 src_unpack() {
36 unpack ${A}
37
38 convert_to_m ${S}/Makefile
39 }
40
41 src_install() {
42 linux-mod_src_install
43
44 if use doc; then
45 docinto examples/etc/acpi/actions
46 dodoc config/etc/acpi/actions/*
47
48 docinto examples/etc/acpi/events
49 dodoc config/etc/acpi/events/*
50 fi
51 }
52
53 pkg_postinst() {
54 einfo ""
55 einfo "You may wish to install sys-apps/acpid to handle the ACPI events generated"
56 einfo "by ${PN}."
57
58 if useq doc; then
59 einfo ""
60 einfo "Example acpid configuration has been installed to"
61 einfo "/usr/share/doc/${PF}/examples/"
62 fi
63
64 einfo ""
65 einfo "For further instructions please see /usr/share/doc/${PF}/README.gz"
66 einfo ""
67
68 linux-mod_pkg_postinst
69 }

  ViewVC Help
Powered by ViewVC 1.1.20