public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-misc/fortune-mod-kernelcookies/files/, ...
@ 2021-04-04  9:16 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-04-04  9:16 UTC (permalink / raw
  To: gentoo-commits

commit:     ca3f6596adb6a61da6e95a9c0c4e337530e423fc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 08:51:22 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 09:15:48 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca3f6596

games-misc/fortune-mod-kernelcookies: port to EAPI 7, eutils--

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

 games-misc/fortune-mod-kernelcookies/files/9-offensive.patch |  4 ++--
 .../fortune-mod-kernelcookies-9.ebuild                       | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/games-misc/fortune-mod-kernelcookies/files/9-offensive.patch b/games-misc/fortune-mod-kernelcookies/files/9-offensive.patch
index 0ba0ee12890..cc66a2afbee 100644
--- a/games-misc/fortune-mod-kernelcookies/files/9-offensive.patch
+++ b/games-misc/fortune-mod-kernelcookies/files/9-offensive.patch
@@ -1,5 +1,5 @@
---- kernelcookies
-+++ kernelcookies
+--- a/kernelcookies
++++ b/kernelcookies
 @@ -1,42 +1,3 @@
 -/* Only Sun can take such nice parts and fuck up the programming interface
 - * like this.  Good job guys...

diff --git a/games-misc/fortune-mod-kernelcookies/fortune-mod-kernelcookies-9.ebuild b/games-misc/fortune-mod-kernelcookies/fortune-mod-kernelcookies-9.ebuild
index ef3ab273cb8..72de0e5553e 100644
--- a/games-misc/fortune-mod-kernelcookies/fortune-mod-kernelcookies-9.ebuild
+++ b/games-misc/fortune-mod-kernelcookies/fortune-mod-kernelcookies-9.ebuild
@@ -1,12 +1,12 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils
+EAPI=7
 
 DESCRIPTION="A collection of funny lines from the Linux kernel"
 HOMEPAGE="http://www.schwarzvogel.de/software-misc.shtml"
 SRC_URI="http://www.schwarzvogel.de/pkgs/kernelcookies-${PV}.tar.gz"
+S="${WORKDIR}"/kernelcookies-${PV}
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -16,13 +16,13 @@ IUSE="offensive"
 DEPEND="games-misc/fortune-mod"
 RDEPEND="${DEPEND}"
 
-S=${WORKDIR}/kernelcookies-${PV}
-
 src_prepare() {
+	default
+
 	# bug #64985
 	if ! use offensive ; then
-		rm -f *.dat
-		epatch "${FILESDIR}"/${PV}-offensive.patch
+		rm -f *.dat || die
+		eapply "${FILESDIR}"/${PV}-offensive.patch
 		strfile -s kernelcookies || die
 	fi
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-04  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-04  9:16 [gentoo-commits] repo/gentoo:master commit in: games-misc/fortune-mod-kernelcookies/files/, Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox