--- a/sys/-power/pmtools/pmtools-20110323.ebuild 2011-04-03 05:58:56.000000000 +0200 +++ b/sys/-power/pmtools/pmtools-20110323.ebuild 2013-02-09 16:03:55.673830728 +0100 @@ -1,15 +1,16 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/pmtools/pmtools-20110323.ebuild,v 1.1 2011/04/03 03:58:56 nerdboy Exp $ +# $Header: $ -EAPI=2 +EAPI=5 inherit eutils flag-o-matic toolchain-funcs -DESCRIPTION="ACPI disassembler tools, including acpidump" -HOMEPAGE="http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/" -SRC_URI="http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/${P}.tar.gz" +DESCRIPTION="Collection of tools for ACPI and power management" +HOMEPAGE="https://github.com/anyc/pmtools/" +SRC_URI="https://github.com/anyc/pmtools/tarball/${PV} -> ${P}.tar.gz" LICENSE="GPL-2" + SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" @@ -20,6 +21,10 @@ S="${WORKDIR}/pmtools" +src_unpack() { + unpack ${A} +} + src_prepare() { epatch "${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch epatch "${FILESDIR}"/${PN}-20100123-madt.patch @@ -38,9 +43,8 @@ } src_install() { - # acpidump access the ACPI data via /dev/mem or EFI firmware in /sys dosbin acpidump/acpidump - # the other tools only process data + newbin acpixtract/acpixtract acpixtract-pmtools dobin madt/madt dosbin turbostat/turbostat