summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-05 02:59:25 +0000
committerSam James <sam@gentoo.org>2023-03-05 02:59:38 +0000
commitb355649c4c23392040d456a20f17d1b56a78312b (patch)
tree19df0b28585e01894356b7eb5ed82bfdf12fd550
parentgames-simulation/lincity: fix configure w/ clang 16 (diff)
downloadgentoo-b355649c4c23392040d456a20f17d1b56a78312b.tar.gz
gentoo-b355649c4c23392040d456a20f17d1b56a78312b.tar.bz2
gentoo-b355649c4c23392040d456a20f17d1b56a78312b.zip
games-simulation/senken: fix implicit func decls
Closes: https://bugs.gentoo.org/899022 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--games-simulation/senken/files/senken-0.3.0-implicit-function-decl.patch29
-rw-r--r--games-simulation/senken/senken-0.3.0-r2.ebuild (renamed from games-simulation/senken/senken-0.3.0-r1.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
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)
}