public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-simulation/senken/, games-simulation/senken/files/
@ 2023-03-05  3:16 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-03-05  3:16 UTC (permalink / raw
  To: gentoo-commits

commit:     b355649c4c23392040d456a20f17d1b56a78312b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  5 02:59:25 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  5 02:59:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b355649c

games-simulation/senken: fix implicit func decls

Closes: https://bugs.gentoo.org/899022
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../senken-0.3.0-implicit-function-decl.patch      | 29 ++++++++++++++++++++++
 ...nken-0.3.0-r1.ebuild => senken-0.3.0-r2.ebuild} | 23 ++++++++++++-----
 2 files changed, 46 insertions(+), 6 deletions(-)

diff --git a/games-simulation/senken/files/senken-0.3.0-implicit-function-decl.patch b/games-simulation/senken/files/senken-0.3.0-implicit-function-decl.patch
new file mode 100644
index 000000000000..f4792cfb0649
--- /dev/null
+++ b/games-simulation/senken/files/senken-0.3.0-implicit-function-decl.patch
@@ -0,0 +1,29 @@
+--- a/src/callbacks.c
++++ b/src/callbacks.c
+@@ -47,6 +47,7 @@
+ #include "client.h"
+ #include "landvalue.h"
+ #include "gtkhelp_reports.h"
++#include "support.h"
+ 
+ #include "sdlwin.h"
+ #include "utils.h"
+--- a/src/gtkhelp_reports.c
++++ b/src/gtkhelp_reports.c
+@@ -5,6 +5,7 @@
+ #include "player.h"
+ #include "client.h"
+ #include "gtkhelp_reports.h"
++#include "support.h"
+ 
+ /**** HELPERS ****/
+ 
+--- a/src/gtkhelp_reports.h
++++ b/src/gtkhelp_reports.h
+@@ -17,4 +17,6 @@ extern void update_population_report(GtkWidget *window, client_t *client);
+ extern void setup_info_treeview(GtkWidget *window);
+ extern void update_info_report(GtkWidget *window, client_t *client, int mapx, int mapy);
+ 
++extern void update_info_window(GtkWidget *window, client_t *client, int mapx, int mapy);
++
+ #endif /* GTKHELP_REPORTS */

diff --git a/games-simulation/senken/senken-0.3.0-r1.ebuild b/games-simulation/senken/senken-0.3.0-r2.ebuild
similarity index 73%
rename from games-simulation/senken/senken-0.3.0-r1.ebuild
rename to games-simulation/senken/senken-0.3.0-r2.ebuild
index 206d6b75324d..a9c9fdf39deb 100644
--- a/games-simulation/senken/senken-0.3.0-r1.ebuild
+++ b/games-simulation/senken/senken-0.3.0-r2.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
-DESCRIPTION="city simulation game"
+inherit autotools
+
+DESCRIPTION="City simulation game"
 HOMEPAGE="https://savannah.nongnu.org/projects/senken/"
 SRC_URI="mirror://gentoo/${P}.tar.gz"
 
@@ -16,13 +18,17 @@ RDEPEND="
 	>=media-libs/libsdl-1.2.4
 	media-libs/sdl-image
 	x11-libs/gtk+:2
-	nls? ( virtual/libintl )"
-DEPEND="${RDEPEND}
-	nls? ( sys-devel/gettext )"
+	nls? ( virtual/libintl )
+"
+DEPEND="
+	${RDEPEND}
+	nls? ( sys-devel/gettext )
+"
 
 PATCHES=(
 	"${FILESDIR}"/${P}-as-needed.patch
 	"${FILESDIR}"/${P}-warnings.patch
+	"${FILESDIR}"/${P}-implicit-function-decl.patch
 )
 
 src_prepare() {
@@ -31,7 +37,12 @@ src_prepare() {
 	sed -i \
 		-e "s:/usr/local/share:/usr/share:" \
 		lib/utils.h || die
+
+	# Clang 16, bug #899022
+	sed -i -e "s:configure.in:configure.ac:" Makefile.in || die
+	eautoconf
 }
+
 src_configure() {
 	econf $(use_enable nls)
 }


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

only message in thread, other threads:[~2023-03-05  3:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-05  3:16 [gentoo-commits] repo/gentoo:master commit in: games-simulation/senken/, games-simulation/senken/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