summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-04-25 20:49:26 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-04-25 20:50:59 +0200
commitfcba68576a9b11d00b332948808e65fee86083f2 (patch)
treed8264dc8e9330cba1f36c47867f9fb6917de734a
parentdev-python/os-brick: fix installing to /usr/etc (diff)
downloadgentoo-fcba68576a9b11d00b332948808e65fee86083f2.tar.gz
gentoo-fcba68576a9b11d00b332948808e65fee86083f2.tar.bz2
gentoo-fcba68576a9b11d00b332948808e65fee86083f2.zip
sys-power/acpitool: bump to EAPI=7
Also updated LICENSE. Closes: https://bugs.gentoo.org/783753 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r--sys-power/acpitool/acpitool-0.5.1-r2.ebuild19
-rw-r--r--sys-power/acpitool/files/acpitool-0.5.1-ac_adapter.patch4
-rw-r--r--sys-power/acpitool/files/acpitool-0.5.1-battery.patch8
-rw-r--r--sys-power/acpitool/files/acpitool-0.5.1-kernel3.patch4
4 files changed, 27 insertions, 8 deletions
diff --git a/sys-power/acpitool/acpitool-0.5.1-r2.ebuild b/sys-power/acpitool/acpitool-0.5.1-r2.ebuild
new file mode 100644
index 00000000000..e88c1dc56f8
--- /dev/null
+++ b/sys-power/acpitool/acpitool-0.5.1-r2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A replacement for the APM tool"
+HOMEPAGE="https://packages.debian.org/sid/acpitool"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-ac_adapter.patch
+ "${FILESDIR}"/${P}-battery.patch
+ "${FILESDIR}"/${P}-kernel3.patch
+ "${FILESDIR}"/${P}-wakeup.patch
+)
diff --git a/sys-power/acpitool/files/acpitool-0.5.1-ac_adapter.patch b/sys-power/acpitool/files/acpitool-0.5.1-ac_adapter.patch
index 070fdf9de1b..fb70e86d2b8 100644
--- a/sys-power/acpitool/files/acpitool-0.5.1-ac_adapter.patch
+++ b/sys-power/acpitool/files/acpitool-0.5.1-ac_adapter.patch
@@ -1,8 +1,8 @@
Author: Michael Meskes <meskes@debian.org>
Description: Fix reading of ac_adapter information.
---- src/ac_adapter.cpp
-+++ src/ac_adapter.cpp
+--- a/src/ac_adapter.cpp
++++ b/src/ac_adapter.cpp
@@ -149,7 +149,7 @@
int Do_AC_Info_Sys()
{
diff --git a/sys-power/acpitool/files/acpitool-0.5.1-battery.patch b/sys-power/acpitool/files/acpitool-0.5.1-battery.patch
index 76428ca7d97..c4a9a5e6a65 100644
--- a/sys-power/acpitool/files/acpitool-0.5.1-battery.patch
+++ b/sys-power/acpitool/files/acpitool-0.5.1-battery.patch
@@ -1,8 +1,8 @@
Author: Evgeni Golov <evgeni@debian.org>, Michael Meskes <meskes@debian.org>
Description: Fix reading of battery information.
---- src/acpitool.h
-+++ src/acpitool.h
+--- a/src/acpitool.h
++++ b/src/acpitool.h
@@ -39,6 +39,9 @@
char Serial[13];
char Bat_Type[13];
@@ -13,8 +13,8 @@ Description: Fix reading of battery information.
};
---- src/battery.cpp
-+++ src/battery.cpp
+--- a/src/battery.cpp
++++ b/src/battery.cpp
@@ -107,6 +107,9 @@
memset(Batt_Info[i]->Serial, '\0', 13);
memset(Batt_Info[i]->Bat_Type, '\0', 13);
diff --git a/sys-power/acpitool/files/acpitool-0.5.1-kernel3.patch b/sys-power/acpitool/files/acpitool-0.5.1-kernel3.patch
index cd793d2e1e6..cd4b5c357e6 100644
--- a/sys-power/acpitool/files/acpitool-0.5.1-kernel3.patch
+++ b/sys-power/acpitool/files/acpitool-0.5.1-kernel3.patch
@@ -1,7 +1,7 @@
http://bugs.gentoo.org/377355
---- src/acpitool.cpp
-+++ src/acpitool.cpp
+--- a/src/acpitool.cpp
++++ b/src/acpitool.cpp
@@ -205,8 +205,7 @@
Kernel_24 = 1;
Kernel_26 = 0;