diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2004-09-16 12:07:34 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2004-09-16 12:07:34 +0000 |
commit | 752d92361f8411d6f8165fcef1654fc7d33e1b9e (patch) | |
tree | e16ab00eb9ac01e6a7854b7cbb0f5a2c274e0cdd /app-laptop | |
parent | gnome 2.8 release (Manifest recommit) (diff) | |
download | gentoo-2-752d92361f8411d6f8165fcef1654fc7d33e1b9e.tar.gz gentoo-2-752d92361f8411d6f8165fcef1654fc7d33e1b9e.tar.bz2 gentoo-2-752d92361f8411d6f8165fcef1654fc7d33e1b9e.zip |
Version bump.
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/ibm-acpi/ChangeLog | 7 | ||||
-rw-r--r-- | app-laptop/ibm-acpi/Manifest | 2 | ||||
-rw-r--r-- | app-laptop/ibm-acpi/files/digest-ibm-acpi-0.4 | 1 | ||||
-rw-r--r-- | app-laptop/ibm-acpi/ibm-acpi-0.4.ebuild | 78 |
4 files changed, 87 insertions, 1 deletions
diff --git a/app-laptop/ibm-acpi/ChangeLog b/app-laptop/ibm-acpi/ChangeLog index 49d77b22d213..575c63e8c5a0 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.1 2004/09/02 16:50:21 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibm-acpi/ChangeLog,v 1.2 2004/09/16 12:07:34 brix Exp $ + +*ibm-acpi-0.4 (16 Sep 2004) + + 16 Sep 2004; Henrik Brix Andersen <brix@gentoo.org> +ibm-acpi-0.4.ebuild: + Version bump. *ibm-acpi-0.3 (02 Sep 2004) diff --git a/app-laptop/ibm-acpi/Manifest b/app-laptop/ibm-acpi/Manifest index e59302d6b0e1..18060ad173ab 100644 --- a/app-laptop/ibm-acpi/Manifest +++ b/app-laptop/ibm-acpi/Manifest @@ -1,4 +1,6 @@ MD5 679ba888768ac666d30e59e820578041 ibm-acpi-0.3.ebuild 1765 +MD5 9ab2c8b1e9e7b5a2b6647d6a712a7d3c ibm-acpi-0.4.ebuild 1704 MD5 2816084825f22ee837d81ee72f85aec1 ChangeLog 382 MD5 dc1773fc29727c205a632b4a780a5d21 metadata.xml 219 MD5 d3d4d8542e2fcc77d860f0942089bb8c files/digest-ibm-acpi-0.3 63 +MD5 d1c1de52630fbc3ae75edad2fad6f90b files/digest-ibm-acpi-0.4 63 diff --git a/app-laptop/ibm-acpi/files/digest-ibm-acpi-0.4 b/app-laptop/ibm-acpi/files/digest-ibm-acpi-0.4 new file mode 100644 index 000000000000..e9f2abf5c27f --- /dev/null +++ b/app-laptop/ibm-acpi/files/digest-ibm-acpi-0.4 @@ -0,0 +1 @@ +MD5 789dce28ccb2af54a8d5b9cb8589f084 ibm-acpi-0.4.tar.gz 23363 diff --git a/app-laptop/ibm-acpi/ibm-acpi-0.4.ebuild b/app-laptop/ibm-acpi/ibm-acpi-0.4.ebuild new file mode 100644 index 000000000000..8be592c3e9bc --- /dev/null +++ b/app-laptop/ibm-acpi/ibm-acpi-0.4.ebuild @@ -0,0 +1,78 @@ +# 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.4.ebuild,v 1.1 2004/09/16 12:07:34 brix Exp $ + +inherit kernel-mod + +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="" + +src_unpack() { + if ! egrep "^CONFIG_ACPI=[ym]" ${ROOT}/usr/src/linux/.config >/dev/null + then + eerror "" + eerror "${PN} requires an ACPI (CONFIG_ACPI) enabled kernel." + eerror "" + die "Kernel ACPI support not detected." + fi + + unpack ${A} + + # let pkg_postinst() handle depmod + sed -i -e "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() { + if [ ${KV_MINOR} -gt 5 ] && [ ${KV_PATCH} -gt 5 ] + then + unset ARCH + fi + + emake KDIR=${ROOT}/usr/src/linux || die +} + +src_install() { + if [ ${KV_MINOR} -gt 5 ] && [ ${KV_PATCH} -gt 5 ] + then + unset ARCH + fi + + emake MDIR=${D}/lib/modules/${KV}/acpi install || die + + dodoc LICENSE README + + docinto examples/etc/acpi/actions + dodoc config/etc/acpi/actions/* + + docinto examples/etc/acpi/events + dodoc config/etc/acpi/events/* +} + +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 ${P}. Example acpid configuration has been installed to" + einfo "/usr/share/doc/${PF}/examples/" + einfo "" + einfo "For further instructions please see /usr/share/doc/${PF}/README.gz" + einfo "" +} |