summaryrefslogtreecommitdiff
path: root/sys-power/pmtools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
commitbff543bb632933380da922cbfc07c67157d72d42 (patch)
treedf2e5eebc3dbd8e29153ab3a869b3be8d9be9f19 /sys-power/pmtools
parent491d0101c89d81dec507f28215b3cb094800d600 (diff)
gentoo auto-resync : 23:06:2024 - 00:11:30
Diffstat (limited to 'sys-power/pmtools')
-rw-r--r--sys-power/pmtools/Manifest3
-rw-r--r--sys-power/pmtools/files/pmtools-20110323-r2-types.patch21
-rw-r--r--sys-power/pmtools/pmtools-20130209.ebuild54
3 files changed, 78 insertions, 0 deletions
diff --git a/sys-power/pmtools/Manifest b/sys-power/pmtools/Manifest
index e34209a43560..1180000389d1 100644
--- a/sys-power/pmtools/Manifest
+++ b/sys-power/pmtools/Manifest
@@ -2,6 +2,9 @@ AUX pmtools-20071116-64bit.patch 673 BLAKE2B 97a4b621f3da20cbac3255fc7e0d34e0634
AUX pmtools-20100123-acpixtract-pmtools.patch 1822 BLAKE2B 6d7f7de1f2807ae5a2309aac553ee1e8ee818c866325fcc06ebdb233fcf98ab8d3c800da8380d6ed39ab020be4825cef486b54812574bb2b2487243d0ed1eb6c SHA512 82d86c85ab481c1aca191c67e825c0a0bd3467b7ef9b92dadbb3fa58e1cc131b10f6e88431c83ca7289c96a304c8a1d65f798280a9fe3300f1b1f998baa7b2ee
AUX pmtools-20100123-madt.patch 1191 BLAKE2B 46d74cafb71bea3a9c7391b3636da8d9dabda9f24fcf20ff0e9469e72cbdf44477a71a42b780f9d5ba442400381add000fce0fec588f37a62b72dce93475c546 SHA512 3984c4a26248a2b152009ab3703e3fd894abd8a12716aaa7f4913b8a8d922c2a60e7e987e401a0c93c56398b63c36013bcbf7b9c51d1c119f6aa7e67e2657594
AUX pmtools-20101124-cflags-ldflags.patch 1743 BLAKE2B 65216ce6a9a347c2bc85a4ea8b891ede00d5dd6564541188cb4641747525fff801b5d20a5e2d21c1a37250ffb61f85db11e3beff07cc1bfb1107264a60f650a2 SHA512 63342f0f1f630eeb74dbe45eddd92b4be4794b34d93f691442bb6a761798d25967d93c73389ef0abace8a285efb91677493996948a34e981959782f493963dc0
+AUX pmtools-20110323-r2-types.patch 505 BLAKE2B b73420ab47c8405f3b030a088dd85a45e75273ee8d5bcb7d95076ec6346972325f99fec3e76317206edc57520f630f8660037e2f45b8b62b09f679eb6f87e5f1 SHA512 3f823d2c05938bffaf572eddfccbf63a19580f86eb87b5088fbb5cbbbccb17fec4c1ee0835119f0e4da042265411237fb16091630a6b0e96d4599c9be1b19ef5
DIST pmtools-20110323.tar.gz 62002 BLAKE2B f1de2e266d72c8a69a61df0fc57bc0b27e9a4fc89f840e893b8fbb1bc93ec54dc5f502a1066d17d082341c99b829189911d558261409455fd1db368924fbea59 SHA512 81108c011b45c58c02013a3653c2d00bc2a9a9d80bf85438a193a4fed04a3fd2890d9cd4d64ab455e3e9c1613d35a6be59698395d9a27ca0a858e3935439bafd
+DIST pmtools-20130209.tar.gz 52952 BLAKE2B bf628f458f8bddb4dc7d18866026c0e45343c88686a57121a2bb5856c0816c90a85bb67636a77258530b18b8e4e72868d991eefb280741f60ac5ac8a90bbc75b SHA512 696af0967caed1ff51411c1bc5b01cbb300f465cb3c28d9d5b1d456d85a50d173a343e32a162fa1ea836f825365997c9bdf109595be737c7e01391b9d7ace6c5
EBUILD pmtools-20110323-r2.ebuild 1117 BLAKE2B 322346a0fa202855746c61230d9840b0ab762a46751733ca293418d498e49318a5e6f0c92998323e6342a090d46e356578b42f9916649efe1430d14d44068296 SHA512 372a9907346411c536965b0eec50ffb4a101d7c18553142685bb7362f762bb1d7655d57198a87b53168954ba390cdd020e3fb49377b602fd71c7eeb393be19fd
+EBUILD pmtools-20130209.ebuild 1258 BLAKE2B 2381ce867224d6c907b4cfddd609ef8ea874c40c20d53c96a1fd1fea9747a4c08ee7333ac94ad064fd73e1d62d639fc8489826bd1449ba8f3531cd5d2553dff4 SHA512 c1258e99b276ba10e7ee8acb0285902d72f954e15f33b9dedbc4b0312ef5ec70757627fe8558def00cc80a573029d497db15359398fa4a6e00b97867849e8b22
MISC metadata.xml 652 BLAKE2B 5febc6ed444adaba4435b2cdac7586c14f52301076308ff1f6b2e016db8a89aa78acb3d1a08a8dcee8fc8c2dcb5e4ed42c79a1500f06db9ed0af9d757fc8ff76 SHA512 4c34f011c78e8bd8a12b9f844954655c4c00379c95726b7249931d58c4e58c19071f82b75a7c5933657dcf7d23f5c3e38075862aab924a3036a613faa4d99ff2
diff --git a/sys-power/pmtools/files/pmtools-20110323-r2-types.patch b/sys-power/pmtools/files/pmtools-20110323-r2-types.patch
new file mode 100644
index 000000000000..bdff55d26315
--- /dev/null
+++ b/sys-power/pmtools/files/pmtools-20110323-r2-types.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/874702#c8
+--- pmtools-orig/madt/madt.c 2005-11-12 04:07:04.000000000 +1100
++++ pmtools/madt/madt.c 2024-06-06 12:04:59.554214977 +1000
+@@ -42,7 +42,7 @@
+ /* read standard input
+ * write decoded madt to standard output
+ */
+-get_next_entry(acpi_table_entry_header * entry_header)
++int get_next_entry(acpi_table_entry_header * entry_header)
+ {
+ size_t retval;
+
+@@ -53,7 +53,7 @@
+
+ u8 buffer[1024];
+
+-main()
++int main()
+ {
+ size_t retval;
+ struct acpi_table_madt *madt_header;
diff --git a/sys-power/pmtools/pmtools-20130209.ebuild b/sys-power/pmtools/pmtools-20130209.ebuild
new file mode 100644
index 000000000000..b0f2450048c8
--- /dev/null
+++ b/sys-power/pmtools/pmtools-20130209.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+# dev-lang/perl - RDEPEND for the pmtest tooling, which only works on much older kernels.
+RDEPEND="
+ >=sys-power/iasl-20090521
+"
+
+PATCHES=(
+ # All merged upstream in 20230209
+ #"${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch
+ #"${FILESDIR}"/${PN}-20100123-madt.patch
+ #"${FILESDIR}"/${PN}-20071116-64bit.patch
+ #"${FILESDIR}"/${PN}-20101124-cflags-ldflags.patch
+
+ # New patches
+ "${FILESDIR}"/pmtools-20110323-r2-types.patch
+)
+
+src_prepare() {
+ default
+
+ # update version info
+ sed -i -e "s|20060324|20110323|" acpixtract/acpixtract.c || die
+
+ strip-unsupported-flags
+}
+
+src_compile() {
+ # respect user's LDFLAGS
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ newbin acpidump/acpidump acpidump-pmtools
+ newbin acpixtract/acpixtract acpixtract-pmtools
+ dobin madt/madt
+
+ dodoc README madt/README.madt
+ use doc && dodoc madt/APIC*
+}