DESCRIPTION="PowerTOP is a Linux tool that finds the software component(s) that make your laptop use more power than necessary while it is idle." HOMEPAGE="http://www.linuxpowertop.org" SRC_URI="http://www.linuxpowertop.org/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~amd64" # Currently, only 32-bit kernels have support for tickless idle; 64-bit kernels are expected to gain this feature in version 2.6.23. IUSE="" DEPEND="" RDEPEND="" src_unpack() { unpack ${A} } src_compile() { cd "${WORKDIR}/powertop" emake || die "compile problem" } src_install() { cd "${WORKDIR}/powertop" dosbin powertop || die } pkg_postinst() { echo einfo "For PowerTOP to work best, use a Linux kernel with the" einfo "tickless idle (NO_HZ) feature enabled (version 2.6.21 or later)." echo }