diff options
author | Jakov Smolić <jsmolic@gentoo.org> | 2021-11-05 19:45:57 +0100 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2021-11-06 21:32:55 +0100 |
commit | 9dfc1bab467a1293d84393eb33d09fea8df08048 (patch) | |
tree | a599321e2cb1bd98d3aea93196f7062cf428269c /sys-power | |
parent | sys-fs/jdiskreport-bin: Port to EAPI 8 (diff) | |
download | gentoo-9dfc1bab467a1293d84393eb33d09fea8df08048.tar.gz gentoo-9dfc1bab467a1293d84393eb33d09fea8df08048.tar.bz2 gentoo-9dfc1bab467a1293d84393eb33d09fea8df08048.zip |
sys-power/pmtools: Port to EAPI 8
Closes: https://bugs.gentoo.org/819183
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/pmtools/files/pmtools-20071116-64bit.patch | 4 | ||||
-rw-r--r-- | sys-power/pmtools/pmtools-20110323-r1.ebuild | 25 |
2 files changed, 16 insertions, 13 deletions
diff --git a/sys-power/pmtools/files/pmtools-20071116-64bit.patch b/sys-power/pmtools/files/pmtools-20071116-64bit.patch index 756ac8412abe..9883f8b2cb7d 100644 --- a/sys-power/pmtools/files/pmtools-20071116-64bit.patch +++ b/sys-power/pmtools/files/pmtools-20071116-64bit.patch @@ -1,5 +1,5 @@ ---- madt/madt.c.orig -+++ madt/madt.c +--- a/madt/madt.c ++++ b/madt/madt.c @@ -46,7 +46,7 @@ { size_t retval; diff --git a/sys-power/pmtools/pmtools-20110323-r1.ebuild b/sys-power/pmtools/pmtools-20110323-r1.ebuild index 250b3393cd7b..4edcb8cf77bb 100644 --- a/sys-power/pmtools/pmtools-20110323-r1.ebuild +++ b/sys-power/pmtools/pmtools-20110323-r1.ebuild @@ -1,33 +1,36 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=8 -inherit epatch flag-o-matic toolchain-funcs +inherit flag-o-matic toolchain-funcs 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" +S="${WORKDIR}/pmtools" +LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" IUSE="doc" -DEPEND="" -RDEPEND="${DEPEND} + +RDEPEND=" dev-lang/perl >=sys-power/iasl-20090521" -S="${WORKDIR}/pmtools" +PATCHES=( + "${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch + "${FILESDIR}"/${PN}-20100123-madt.patch + "${FILESDIR}"/${PN}-20071116-64bit.patch + "${FILESDIR}"/${PN}-20101124-cflags-ldflags.patch +) src_prepare() { - epatch "${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch - epatch "${FILESDIR}"/${PN}-20100123-madt.patch - epatch "${FILESDIR}"/${PN}-20071116-64bit.patch - epatch "${FILESDIR}"/${PN}-20101124-cflags-ldflags.patch + default # update version info - sed -i -e "s|20060324|20110323|" acpixtract/acpixtract.c + sed -i -e "s|20060324|20110323|" acpixtract/acpixtract.c || die strip-unsupported-flags } |