summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2004-10-20 20:34:30 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2004-10-20 20:34:30 +0000
commitbcb4ca6e6894cd36d17b992cd23867b3a6d7247e (patch)
treefb82e2c56693ecaf3b0f0aca8f06a3c710f748dd /app-laptop
parentTouchup to ensure that amd64 doesn't freak out. (Manifest recommit) (diff)
downloadgentoo-2-bcb4ca6e6894cd36d17b992cd23867b3a6d7247e.tar.gz
gentoo-2-bcb4ca6e6894cd36d17b992cd23867b3a6d7247e.tar.bz2
gentoo-2-bcb4ca6e6894cd36d17b992cd23867b3a6d7247e.zip
Version bump. Again.
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/ibm-acpi/ChangeLog7
-rw-r--r--app-laptop/ibm-acpi/Manifest2
-rw-r--r--app-laptop/ibm-acpi/files/digest-ibm-acpi-0.61
-rw-r--r--app-laptop/ibm-acpi/ibm-acpi-0.6.ebuild86
4 files changed, 95 insertions, 1 deletions
diff --git a/app-laptop/ibm-acpi/ChangeLog b/app-laptop/ibm-acpi/ChangeLog
index 6f47cb2faf4a..98d4b03341c9 100644
--- a/app-laptop/ibm-acpi/ChangeLog
+++ b/app-laptop/ibm-acpi/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-laptop/ibm-acpi
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibm-acpi/ChangeLog,v 1.4 2004/10/18 18:36:43 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibm-acpi/ChangeLog,v 1.5 2004/10/20 20:34:30 brix Exp $
+
+*ibm-acpi-0.6 (20 Oct 2004)
+
+ 20 Oct 2004; Henrik Brix Andersen <brix@gentoo.org> +ibm-acpi-0.6.ebuild:
+ Version bump. Only install example configuration if USE="doc".
*ibm-acpi-0.5 (18 Oct 2004)
diff --git a/app-laptop/ibm-acpi/Manifest b/app-laptop/ibm-acpi/Manifest
index 735990620a15..8a7aa3b1ec17 100644
--- a/app-laptop/ibm-acpi/Manifest
+++ b/app-laptop/ibm-acpi/Manifest
@@ -3,6 +3,8 @@ MD5 0e7ebbaa88994d1a54cf5135234a4fc2 ibm-acpi-0.5.ebuild 1759
MD5 c92a4459b9ae22de3f30b55d6c3442ad ibm-acpi-0.4.ebuild 1802
MD5 e9e09d493e8d2943f7c0edfbec4e65c5 ChangeLog 718
MD5 dc1773fc29727c205a632b4a780a5d21 metadata.xml 219
+MD5 64a44ad19ae2f08e536716b0c53f96d7 ibm-acpi-0.6.ebuild 1847
MD5 d3d4d8542e2fcc77d860f0942089bb8c files/digest-ibm-acpi-0.3 63
MD5 d1c1de52630fbc3ae75edad2fad6f90b files/digest-ibm-acpi-0.4 63
MD5 f0037cea110a171b6db552445d7b26a6 files/digest-ibm-acpi-0.5 63
+MD5 8bdcc9667fa7b6b8d621293689703ef1 files/digest-ibm-acpi-0.6 63
diff --git a/app-laptop/ibm-acpi/files/digest-ibm-acpi-0.6 b/app-laptop/ibm-acpi/files/digest-ibm-acpi-0.6
new file mode 100644
index 000000000000..795cd84905a0
--- /dev/null
+++ b/app-laptop/ibm-acpi/files/digest-ibm-acpi-0.6
@@ -0,0 +1 @@
+MD5 919048cdea63e06b8ecafdeff172436c ibm-acpi-0.6.tar.gz 25892
diff --git a/app-laptop/ibm-acpi/ibm-acpi-0.6.ebuild b/app-laptop/ibm-acpi/ibm-acpi-0.6.ebuild
new file mode 100644
index 000000000000..4b8c72ec4744
--- /dev/null
+++ b/app-laptop/ibm-acpi/ibm-acpi-0.6.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibm-acpi/ibm-acpi-0.6.ebuild,v 1.1 2004/10/20 20:34:30 brix Exp $
+
+inherit kernel-mod eutils
+
+DESCRIPTION="IBM ThinkPad ACPI extras"
+
+HOMEPAGE="http://ibm-acpi.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="doc"
+
+DEPEND="sys-apps/sed"
+
+src_unpack() {
+ kernel-mod_check_modules_supported
+
+ if ! kernel-mod_configoption_present ACPI
+ then
+ eerror ""
+ eerror "${PN} requires support for ACPI (CONFIG_ACPI) in the kernel."
+ eerror ""
+ die "CONFIG_ACPI support not detected."
+ fi
+
+ unpack ${A}
+
+ # let pkg_postinst() handle depmod
+ sed -i "s:depmod -a::" ${S}/Makefile
+
+ kernel-mod_getversion
+
+ if [ ${KV_MINOR} -gt 5 ] && [ ${KV_PATCH} -gt 5 ]
+ then
+ sed -i 's:SUBDIRS=:M=:g' ${S}/Makefile
+ fi
+}
+
+src_compile() {
+ set_arch_to_kernel
+
+ emake KDIR=${ROOT}/usr/src/linux || die
+}
+
+src_install() {
+ set_arch_to_kernel
+
+ emake MDIR=${D}/lib/modules/${KV}/acpi install || die
+
+ set_arch_to_portage
+
+ dodoc LICENSE README
+
+ if use doc; then
+ docinto examples/etc/acpi/actions
+ dodoc config/etc/acpi/actions/*
+
+ docinto examples/etc/acpi/events
+ dodoc config/etc/acpi/events/*
+ fi
+}
+
+pkg_postinst() {
+ einfo "Checking kernel module dependencies"
+ test -r "${ROOT}/usr/src/linux/System.map" && \
+ depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
+
+ einfo ""
+ einfo "You may wish to install sys-apps/acpid to handle the ACPI events generated"
+ einfo "by ${PN}."
+
+ if use doc &> /dev/null; then
+ einfo ""
+ einfo "Example acpid configuration has been installed to"
+ einfo "/usr/share/doc/${PF}/examples/"
+ fi
+
+ einfo ""
+ einfo "For further instructions please see /usr/share/doc/${PF}/README.gz"
+ einfo ""
+}