* [gentoo-commits] repo/gentoo:master commit in: games-action/koth/files/, games-action/koth/
@ 2017-01-25 23:05 Austin English
0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2017-01-25 23:05 UTC (permalink / raw
To: gentoo-commits
commit: 0ce3f26cbed484cd343991e29cf4bd24e5653b84
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 25 20:01:07 2017 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Wed Jan 25 23:05:06 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ce3f26c
games-action/koth: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: Portage-2.3.2, Repoman-2.3.1
.../koth/files/koth-0.8.0-r1-gcc-3.4.patch | 29 +++++++++++++++++
games-action/koth/koth-0.8.0-r1.ebuild | 37 ++++++++++++++++++++++
2 files changed, 66 insertions(+)
diff --git a/games-action/koth/files/koth-0.8.0-r1-gcc-3.4.patch b/games-action/koth/files/koth-0.8.0-r1-gcc-3.4.patch
new file mode 100644
index 00000000..145f17d
--- /dev/null
+++ b/games-action/koth/files/koth-0.8.0-r1-gcc-3.4.patch
@@ -0,0 +1,29 @@
+--- a/src/relay.c 2004-11-01 09:19:04.835537536 +0000
++++ b/src/relay.c 2004-11-01 09:19:59.453234384 +0000
+@@ -260,6 +260,7 @@
+ else goto bail;
+ goto nextpkt;
+ bail:
++ ;
+ }
+ }
+ }
+--- a/src/ballistics.c 2004-11-01 09:19:33.132235784 +0000
++++ b/src/ballistics.c 2004-11-01 09:20:16.849589736 +0000
+@@ -92,6 +92,7 @@
+ break;
+ case WALL_LAST:
+ /* just to satisfy gcc -Wall */
++ ;
+ }
+ }
+
+@@ -210,7 +211,7 @@
+ break;
+ case WALL_RANDOM: /* both of this can't happen, */
+ case WALL_LAST: /* so they are here to satisfy gcc -Wall */
+-
++ ;
+ }
+ }
+ return FLYING;
diff --git a/games-action/koth/koth-0.8.0-r1.ebuild b/games-action/koth/koth-0.8.0-r1.ebuild
new file mode 100644
index 00000000..1ecd25a
--- /dev/null
+++ b/games-action/koth/koth-0.8.0-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils flag-o-matic
+
+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="~alpha ~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libggi"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PF}-gcc-3.4.patch
+)
+
+src_prepare() {
+ default
+ sed -i 's:-g -O2::' configure || die
+ sed -i 's:(uint16):(uint16_t):' src/gfx.c src/gfx.h || die
+ append-cflags -std=gnu89 # build with gcc5 (bug #570730)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog NEWS README doc/*.txt" \
+ default
+ dodir /etc/koth
+ insinto /etc/koth
+ doins src/koth.cfg
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-action/koth/files/, games-action/koth/
@ 2025-03-22 6:41 Arthur Zamarin
0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zamarin @ 2025-03-22 6:41 UTC (permalink / raw
To: gentoo-commits
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
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-22 6:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-22 6:41 [gentoo-commits] repo/gentoo:master commit in: games-action/koth/files/, games-action/koth/ Arthur Zamarin
-- strict thread matches above, loose matches on Subject: below --
2017-01-25 23:05 Austin English
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox