1 |
commit: 8ae390243dcd029606ee9070b08acd6cb7d3b21d |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 22:51:49 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 22:51:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ae39024 |
7 |
|
8 |
app-laptop/tpacpi-bat: sync live ebuild |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
app-laptop/tpacpi-bat/tpacpi-bat-9999.ebuild | 19 ++++++++++--------- |
13 |
1 file changed, 10 insertions(+), 9 deletions(-) |
14 |
|
15 |
diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-9999.ebuild b/app-laptop/tpacpi-bat/tpacpi-bat-9999.ebuild |
16 |
index 39f5df050623..74b72ce18688 100644 |
17 |
--- a/app-laptop/tpacpi-bat/tpacpi-bat-9999.ebuild |
18 |
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-9999.ebuild |
19 |
@@ -1,31 +1,32 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
+EAPI=8 |
26 |
|
27 |
inherit systemd |
28 |
|
29 |
-if [ "${PV}" = "9999" ]; then |
30 |
+DESCRIPTION="Control battery thresholds of recent ThinkPads, not supported by tp_smapi" |
31 |
+HOMEPAGE="https://github.com/teleshoes/tpacpi-bat" |
32 |
+ |
33 |
+if [[ ${PV} == *9999 ]]; then |
34 |
inherit git-r3 |
35 |
EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git" |
36 |
else |
37 |
SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
KEYWORDS="~amd64" |
39 |
fi |
40 |
-DESCRIPTION="Control battery thresholds of recent ThinkPads, not supported by tp_smapi" |
41 |
-HOMEPAGE="https://github.com/teleshoes/tpacpi-bat" |
42 |
|
43 |
LICENSE="GPL-3" |
44 |
SLOT="0" |
45 |
-IUSE="" |
46 |
|
47 |
-DEPEND="" |
48 |
-RDEPEND="sys-power/acpi_call |
49 |
+RDEPEND=" |
50 |
+ sys-power/acpi_call |
51 |
dev-lang/perl" |
52 |
|
53 |
src_install() { |
54 |
- dodoc README.md battery_asl |
55 |
dobin tpacpi-bat |
56 |
+ dodoc README.md battery_asl |
57 |
+ |
58 |
newinitd "${FILESDIR}"/${PN}.initd.2 ${PN} |
59 |
newconfd "${FILESDIR}"/${PN}.confd.1 ${PN} |
60 |
systemd_newunit examples/systemd_fixed_threshold/tpacpi.service \ |