1 |
commit: 9dfc1bab467a1293d84393eb33d09fea8df08048 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 5 18:45:57 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 20:32:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dfc1bab |
7 |
|
8 |
sys-power/pmtools: Port to EAPI 8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/819183 |
11 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
12 |
|
13 |
.../pmtools/files/pmtools-20071116-64bit.patch | 4 ++-- |
14 |
sys-power/pmtools/pmtools-20110323-r1.ebuild | 25 ++++++++++++---------- |
15 |
2 files changed, 16 insertions(+), 13 deletions(-) |
16 |
|
17 |
diff --git a/sys-power/pmtools/files/pmtools-20071116-64bit.patch b/sys-power/pmtools/files/pmtools-20071116-64bit.patch |
18 |
index 756ac8412ab..9883f8b2cb7 100644 |
19 |
--- a/sys-power/pmtools/files/pmtools-20071116-64bit.patch |
20 |
+++ b/sys-power/pmtools/files/pmtools-20071116-64bit.patch |
21 |
@@ -1,5 +1,5 @@ |
22 |
---- madt/madt.c.orig |
23 |
-+++ madt/madt.c |
24 |
+--- a/madt/madt.c |
25 |
++++ b/madt/madt.c |
26 |
@@ -46,7 +46,7 @@ |
27 |
{ |
28 |
size_t retval; |
29 |
|
30 |
diff --git a/sys-power/pmtools/pmtools-20110323-r1.ebuild b/sys-power/pmtools/pmtools-20110323-r1.ebuild |
31 |
index 250b3393cd7..4edcb8cf77b 100644 |
32 |
--- a/sys-power/pmtools/pmtools-20110323-r1.ebuild |
33 |
+++ b/sys-power/pmtools/pmtools-20110323-r1.ebuild |
34 |
@@ -1,33 +1,36 @@ |
35 |
# Copyright 1999-2021 Gentoo Authors |
36 |
# Distributed under the terms of the GNU General Public License v2 |
37 |
|
38 |
-EAPI=5 |
39 |
+EAPI=8 |
40 |
|
41 |
-inherit epatch flag-o-matic toolchain-funcs |
42 |
+inherit flag-o-matic toolchain-funcs |
43 |
|
44 |
DESCRIPTION="Collection of tools for ACPI and power management" |
45 |
HOMEPAGE="https://github.com/anyc/pmtools/" |
46 |
SRC_URI="https://github.com/anyc/pmtools/tarball/${PV} -> ${P}.tar.gz" |
47 |
-LICENSE="GPL-2" |
48 |
+S="${WORKDIR}/pmtools" |
49 |
|
50 |
+LICENSE="GPL-2" |
51 |
SLOT="0" |
52 |
KEYWORDS="amd64 ppc x86" |
53 |
IUSE="doc" |
54 |
-DEPEND="" |
55 |
-RDEPEND="${DEPEND} |
56 |
+ |
57 |
+RDEPEND=" |
58 |
dev-lang/perl |
59 |
>=sys-power/iasl-20090521" |
60 |
|
61 |
-S="${WORKDIR}/pmtools" |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch |
64 |
+ "${FILESDIR}"/${PN}-20100123-madt.patch |
65 |
+ "${FILESDIR}"/${PN}-20071116-64bit.patch |
66 |
+ "${FILESDIR}"/${PN}-20101124-cflags-ldflags.patch |
67 |
+) |
68 |
|
69 |
src_prepare() { |
70 |
- epatch "${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch |
71 |
- epatch "${FILESDIR}"/${PN}-20100123-madt.patch |
72 |
- epatch "${FILESDIR}"/${PN}-20071116-64bit.patch |
73 |
- epatch "${FILESDIR}"/${PN}-20101124-cflags-ldflags.patch |
74 |
+ default |
75 |
|
76 |
# update version info |
77 |
- sed -i -e "s|20060324|20110323|" acpixtract/acpixtract.c |
78 |
+ sed -i -e "s|20060324|20110323|" acpixtract/acpixtract.c || die |
79 |
|
80 |
strip-unsupported-flags |
81 |
} |