commit:     6b8d5e6f3c9820ad19f737325aba59cbcb65688d
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Feb 14 09:46:30 2026 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 09:18:11 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b8d5e6f

games-action/bomberclone: update EAPI 7 -> 8, port to C23

Closes: https://bugs.gentoo.org/966498
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Part-of: https://github.com/gentoo/gentoo/pull/45810
Closes: https://github.com/gentoo/gentoo/pull/45810
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 .../bomberclone/bomberclone-0.11.9-r1.ebuild       | 55 ++++++++++++++++++++++
 .../bomberclone/files/bomberclone-0.11.9-C23.patch | 15 ++++++
 2 files changed, 70 insertions(+)

diff --git a/games-action/bomberclone/bomberclone-0.11.9-r1.ebuild 
b/games-action/bomberclone/bomberclone-0.11.9-r1.ebuild
new file mode 100644
index 000000000000..555c5227edea
--- /dev/null
+++ b/games-action/bomberclone/bomberclone-0.11.9-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop xdg-utils
+
+DESCRIPTION="Bomberman clone with network game support"
+HOMEPAGE="https://www.bomberclone.de/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz";
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc64 ~x86"
+
+DEPEND=">=media-libs/libsdl-1.1.0[video]
+       media-libs/sdl-image[png]
+       media-libs/sdl-mixer[mod]"
+
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/"${PN}"-0.11.8-gcc52.patch
+       "${FILESDIR}"/"${PN}"-0.11.9-C23.patch
+)
+
+src_prepare() {
+       default
+
+       mv -v configure.{in,ac} || die
+       sed -i 's/configure\.in/configure.ac/g' configure.ac || die
+       eautoreconf
+}
+
+src_configure() {
+       LIBS="-lm" \
+       econf \
+               --disable-werror \
+               --without-x
+}
+
+src_install() {
+       emake \
+               DESTDIR="${D}" \
+               bomberclonedocdir=\${prefix}/share/doc/${PF} \
+               install
+
+       doicon -s 64 data/pixmaps/${PN}.png
+       make_desktop_entry ${PN} Bomberclone
+
+       # Delete useless documentation.
+       rm -v "${ED}"/usr/share/doc/${PF}/{COPYING,INSTALL,*.nsi} || die
+}
+
+pkg_postinst() { xdg_icon_cache_update; }
+pkg_postrm() { xdg_icon_cache_update; }

diff --git a/games-action/bomberclone/files/bomberclone-0.11.9-C23.patch 
b/games-action/bomberclone/files/bomberclone-0.11.9-C23.patch
new file mode 100644
index 000000000000..1ff7442a0819
--- /dev/null
+++ b/games-action/bomberclone/files/bomberclone-0.11.9-C23.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/966498
+Fixes compilation with C23 compilers
+--- a/include/bomberclone.h
++++ b/include/bomberclone.h
+@@ -123,8 +123,8 @@
+ extern void game_start();
+ extern void game_showresult ();
+ extern int game_check_endgame ();
+-extern void game_showresultnormal ();
+-extern void game_showresultteam ();
++extern void game_showresultnormal (int pos_x, int pos_y, int pos_w, int 
pos_h);
++extern void game_showresultteam (int pos_x, int pos_y, int pos_w, int pos_h);
+ extern void game_menu_create ();
+ extern void game_menu_loop (SDL_Event *event, int eventstate);
+ extern void game_resetdata ();

Reply via email to