commit:     197e7f499b0c12b494d5a0e1bfb95c17c78746dc
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sun Apr 27 22:14:36 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 27 22:52:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=197e7f49

games-board/biloba: update EAPI 7 -> 8, fix build with gcc 15

Closes: https://bugs.gentoo.org/944258
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/41801
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-board/biloba/biloba-0.9.3-r3.ebuild          | 41 ++++++++++++++++++++++
 games-board/biloba/files/biloba-0.9.3-gcc-15.patch | 30 ++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/games-board/biloba/biloba-0.9.3-r3.ebuild 
b/games-board/biloba/biloba-0.9.3-r3.ebuild
new file mode 100644
index 000000000000..004056f31d67
--- /dev/null
+++ b/games-board/biloba/biloba-0.9.3-r3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop xdg
+
+DESCRIPTION="Board game, up to 4 players, with AI and network"
+HOMEPAGE="https://biloba.sourceforge.net/";
+SRC_URI="https://downloads.sourceforge.net/biloba/${P}.tar.gz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="media-libs/libsdl:0[X,video,sound]
+       media-libs/sdl-image[png]
+       media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       # X11 headers are checked but not used, everything is done through SDL
+       "${FILESDIR}"/${P}-not-windows.patch
+       "${FILESDIR}"/${P}-no-X11-dep.patch
+       "${FILESDIR}/${P}-gcc-10.patch"
+       "${FILESDIR}/${P}-gcc-15.patch"
+)
+
+src_prepare() {
+       default
+
+       # "missing" file is old, and warns about --run not being supported
+       rm missing || die
+       eautoreconf
+}
+
+src_install() {
+       default
+       newicon -s 64 biloba_icon.png ${PN}.png
+       make_desktop_entry biloba Biloba
+}

diff --git a/games-board/biloba/files/biloba-0.9.3-gcc-15.patch 
b/games-board/biloba/files/biloba-0.9.3-gcc-15.patch
new file mode 100644
index 000000000000..18bcf9c92355
--- /dev/null
+++ b/games-board/biloba/files/biloba-0.9.3-gcc-15.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/944258
+
+--- a/src/utils.c
++++ b/src/utils.c
+@@ -396,9 +396,9 @@ static int is_inited = FALSE;
+  *
+  * @param bool        Whether the game is inited
+  */
+-void game_init(int bool)
++void game_init(int boo)
+ {
+-      is_inited = bool;
++      is_inited = boo;
+ }
+ 
+ /**
+--- a/src/utils.h
++++ b/src/utils.h
+@@ -95,9 +95,9 @@ int get_y(int y);
+ void put_image(SDL_Surface *surface, int x, int y);
+ 
+ int should_quit(void);
+-void game_init(int bool);
++void game_init(int boo);
+ int game_inited(void);
+-void game_suspend(int bool);
++void game_suspend(int boo);
+ int game_suspended(void);
+ int game_num_players(void);
+ int game_num_net_players(void);

Reply via email to