commit:     3a13490f6b62457937267a4fbec23ab9b25e711b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 20 01:41:47 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 20 01:42:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a13490f

x11-misc/whaw: port to EAPI 7

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/whaw-0.2-fix-implicit-declaration-warning.patch     |  4 ++--
 x11-misc/whaw/whaw-0.2.ebuild                                 | 11 ++++-------
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git 
a/x11-misc/whaw/files/whaw-0.2-fix-implicit-declaration-warning.patch 
b/x11-misc/whaw/files/whaw-0.2-fix-implicit-declaration-warning.patch
index 155233b4b18..6a7ec008466 100644
--- a/x11-misc/whaw/files/whaw-0.2-fix-implicit-declaration-warning.patch
+++ b/x11-misc/whaw/files/whaw-0.2-fix-implicit-declaration-warning.patch
@@ -1,5 +1,5 @@
---- whaw.c.orig        2014-05-15 12:11:22.404504530 +0400
-+++ whaw.c     2014-05-15 12:11:43.004506325 +0400
+--- a/whaw.c
++++ b/whaw.c
 @@ -5,6 +5,7 @@
  #include <X11/cursorfont.h>
  #include <X11/extensions/Xinerama.h>

diff --git a/x11-misc/whaw/whaw-0.2.ebuild b/x11-misc/whaw/whaw-0.2.ebuild
index 1ce1370b7a2..6987e794828 100644
--- a/x11-misc/whaw/whaw-0.2.ebuild
+++ b/x11-misc/whaw/whaw-0.2.ebuild
@@ -1,9 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
-
-inherit epatch
+EAPI=7
 
 DESCRIPTION="Window manager independent Window Layout tool"
 HOMEPAGE="http://repetae.net/computer/whaw/";
@@ -20,7 +18,6 @@ RDEPEND="dev-libs/popt
 "
 DEPEND="${RDEPEND}"
 
-src_prepare() {
-       epatch "${FILESDIR}/${P}-fix-implicit-declaration-warning.patch"
-       epatch_user
-}
+PATCHES=(
+       "${FILESDIR}/${P}-fix-implicit-declaration-warning.patch"
+)

Reply via email to