mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-laptop/tpb: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
diff -Naur tpb-0.6.4-org/src/tpb.c tpb-0.6.4/src/tpb.c
|
||||
--- tpb-0.6.4-org/src/tpb.c 2005-07-18 16:15:59.000000000 +0200
|
||||
+++ tpb-0.6.4/src/tpb.c 2008-05-13 15:15:34.000000000 +0200
|
||||
--- a/src/tpb.c
|
||||
+++ b/src/tpb.c
|
||||
@@ -523,10 +523,10 @@
|
||||
/* determine the state of the brightness buttons {{{ */
|
||||
if(thinkpad_state.brightness_level != last_thinkpad_state.brightness_level) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
diff -aur tpb-0.5.1/configure tpb-0.5.1-patched/configure
|
||||
--- tpb-0.5.1/configure 2003-04-10 04:06:26.000000000 -0400
|
||||
+++ tpb-0.5.1-patched/configure 2003-06-30 12:06:41.000000000 -0400
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -790,10 +790,10 @@
|
||||
|
||||
# additional options
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit linux-info epatch
|
||||
EAPI=7
|
||||
|
||||
inherit linux-info
|
||||
|
||||
DESCRIPTION="IBM ThinkPad buttons utility"
|
||||
HOMEPAGE="https://savannah.nongnu.org/projects/tpb/"
|
||||
@@ -21,10 +22,10 @@ DEPEND="${RDEPEND}"
|
||||
CONFIG_CHECK="~NVRAM"
|
||||
ERROR_NVRAM="${P} requires /dev/nvram support (CONFIG_NVRAM)"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-configure-fix.diff
|
||||
epatch "${FILESDIR}"/${P}-nvram.patch
|
||||
}
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-configure-fix.diff
|
||||
"${FILESDIR}"/${P}-nvram.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
|
||||
Reference in New Issue
Block a user