commit:     21465c024bc8e80c473853cb4448fe6a09b768bf
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Fri Mar 21 20:56:25 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 22 06:40:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21465c02

games-action/koth: update EAPI 7 -> 8, fix build under LTO

Closes: https://bugs.gentoo.org/942296
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41217
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 games-action/koth/files/koth-0.8.0-lto.patch | 13 ++++++++++
 games-action/koth/koth-0.8.0-r2.ebuild       | 37 ++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/games-action/koth/files/koth-0.8.0-lto.patch 
b/games-action/koth/files/koth-0.8.0-lto.patch
new file mode 100644
index 000000000000..fea68a32d9fa
--- /dev/null
+++ b/games-action/koth/files/koth-0.8.0-lto.patch
@@ -0,0 +1,13 @@
+Remove extraneous inline that prevents successful linking under LTO
+https://bugs.gentoo.org/942296
+--- a/src/cfgfile.c
++++ b/src/cfgfile.c
+@@ -53,7 +53,7 @@
+     return result;
+ }
+ 
+-inline char *cfgClearWS(char *string)
++char *cfgClearWS(char *string)
+ {
+     char *ret = string, *temp;
+     while(isspace(*ret))

diff --git a/games-action/koth/koth-0.8.0-r2.ebuild 
b/games-action/koth/koth-0.8.0-r2.ebuild
new file mode 100644
index 000000000000..7d2245975eb0
--- /dev/null
+++ b/games-action/koth/koth-0.8.0-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Multiplayer, networked game of little tanks with really big 
weapons"
+HOMEPAGE="http://www.nongnu.org/koth/";
+SRC_URI="https://savannah.nongnu.org/download/${PN}/default.pkg/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="media-libs/libggi"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-autotools.patch
+       "${FILESDIR}"/${P}-gcc.patch
+       "${FILESDIR}"/${P}-lto.patch
+)
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_install() {
+       default
+       dodoc doc/*.txt
+
+       insinto /etc/koth
+       doins src/koth.cfg
+}

Reply via email to