Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/tpb/files/, app-laptop/tpb/
Date: Mon, 19 Apr 2021 20:54:48
Message-Id: 1618865644.f31d79bb72edfeeadb1b85a96159a045b2c774e5.sam@gentoo
1 commit: f31d79bb72edfeeadb1b85a96159a045b2c774e5
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 19 20:35:03 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 19 20:54:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f31d79bb
7
8 app-laptop/tpb: port to EAPI 7
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-laptop/tpb/files/tpb-0.6.4-nvram.patch | 5 ++---
13 app-laptop/tpb/files/tpb-configure-fix.diff | 5 ++---
14 app-laptop/tpb/tpb-0.6.4-r1.ebuild | 13 +++++++------
15 3 files changed, 11 insertions(+), 12 deletions(-)
16
17 diff --git a/app-laptop/tpb/files/tpb-0.6.4-nvram.patch b/app-laptop/tpb/files/tpb-0.6.4-nvram.patch
18 index 1ead9cbe592..c217b5300c9 100644
19 --- a/app-laptop/tpb/files/tpb-0.6.4-nvram.patch
20 +++ b/app-laptop/tpb/files/tpb-0.6.4-nvram.patch
21 @@ -1,6 +1,5 @@
22 -diff -Naur tpb-0.6.4-org/src/tpb.c tpb-0.6.4/src/tpb.c
23 ---- tpb-0.6.4-org/src/tpb.c 2005-07-18 16:15:59.000000000 +0200
24 -+++ tpb-0.6.4/src/tpb.c 2008-05-13 15:15:34.000000000 +0200
25 +--- a/src/tpb.c
26 ++++ b/src/tpb.c
27 @@ -523,10 +523,10 @@
28 /* determine the state of the brightness buttons {{{ */
29 if(thinkpad_state.brightness_level != last_thinkpad_state.brightness_level) {
30
31 diff --git a/app-laptop/tpb/files/tpb-configure-fix.diff b/app-laptop/tpb/files/tpb-configure-fix.diff
32 index 7dc4683d158..32df36a1c11 100644
33 --- a/app-laptop/tpb/files/tpb-configure-fix.diff
34 +++ b/app-laptop/tpb/files/tpb-configure-fix.diff
35 @@ -1,6 +1,5 @@
36 -diff -aur tpb-0.5.1/configure tpb-0.5.1-patched/configure
37 ---- tpb-0.5.1/configure 2003-04-10 04:06:26.000000000 -0400
38 -+++ tpb-0.5.1-patched/configure 2003-06-30 12:06:41.000000000 -0400
39 +--- a/configure
40 ++++ b/configure
41 @@ -790,10 +790,10 @@
42
43 # additional options
44
45 diff --git a/app-laptop/tpb/tpb-0.6.4-r1.ebuild b/app-laptop/tpb/tpb-0.6.4-r1.ebuild
46 index ee68708eff7..660f250b7fc 100644
47 --- a/app-laptop/tpb/tpb-0.6.4-r1.ebuild
48 +++ b/app-laptop/tpb/tpb-0.6.4-r1.ebuild
49 @@ -1,8 +1,9 @@
50 # Copyright 1999-2021 Gentoo Authors
51 # Distributed under the terms of the GNU General Public License v2
52
53 -EAPI=5
54 -inherit linux-info epatch
55 +EAPI=7
56 +
57 +inherit linux-info
58
59 DESCRIPTION="IBM ThinkPad buttons utility"
60 HOMEPAGE="https://savannah.nongnu.org/projects/tpb/"
61 @@ -21,10 +22,10 @@ DEPEND="${RDEPEND}"
62 CONFIG_CHECK="~NVRAM"
63 ERROR_NVRAM="${P} requires /dev/nvram support (CONFIG_NVRAM)"
64
65 -src_prepare() {
66 - epatch "${FILESDIR}"/${PN}-configure-fix.diff
67 - epatch "${FILESDIR}"/${P}-nvram.patch
68 -}
69 +PATCHES=(
70 + "${FILESDIR}"/${PN}-configure-fix.diff
71 + "${FILESDIR}"/${P}-nvram.patch
72 +)
73
74 src_configure() {
75 econf \