summaryrefslogtreecommitdiff
path: root/games-simulation/senken
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-05 23:52:45 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-05 23:52:45 +0000
commit1c33e521c460dc40899ce7bc919602b842ce27e2 (patch)
tree580eefad4cce1e883e7504b93352a9029b53036d /games-simulation/senken
parent65e4244e411c4f65f55f2aa91f39e228f4c0680b (diff)
gentoo auto-resync : 05:03:2023 - 23:52:45
Diffstat (limited to 'games-simulation/senken')
-rw-r--r--games-simulation/senken/Manifest5
-rw-r--r--games-simulation/senken/files/senken-0.3.0-implicit-function-decl.patch29
-rw-r--r--games-simulation/senken/metadata.xml3
-rw-r--r--games-simulation/senken/senken-0.3.0-r2.ebuild (renamed from games-simulation/senken/senken-0.3.0-r1.ebuild)23
4 files changed, 52 insertions, 8 deletions
diff --git a/games-simulation/senken/Manifest b/games-simulation/senken/Manifest
index fba7775cc947..469d5760ac89 100644
--- a/games-simulation/senken/Manifest
+++ b/games-simulation/senken/Manifest
@@ -1,5 +1,6 @@
AUX senken-0.3.0-as-needed.patch 947 BLAKE2B 0de09e827bf94bd9a4e2f289a3a685dfcbfa8860e9f2d3f343fb29ff4e345984b88f7c731add1f58a9a179061cee1e93ec3a4ec718e8c3f0dd80a4a4730e79c9 SHA512 6f1f5ae454b9f186624a2ac9d3d5d802c973fadcedf236d83b47020302645c197683ee8765c9b3536866d5281fd37ce94ebdafebde5b5653c1a2188a81fd6a44
+AUX senken-0.3.0-implicit-function-decl.patch 809 BLAKE2B 1f56ca0c90e329c0c54908b7a2f9ccd5cd3585bd46ed246fdfcd20e9ac1e64200703b91c518f99d2f34ded79f2d86eebb8da182ee73db0fe9916d53bb878087b SHA512 f61a5bb885ea93db74b4c5e1285fcf0aea21e68c5a616237cb58ceee5f57beb5d62f97d3c3ff06d777ff4552b0c9377cf32f943877dc5d36feea8708e282006d
AUX senken-0.3.0-warnings.patch 1099 BLAKE2B 845bca95ba6ef003a751a096e3895386efe7920ac707249c229cfdd5593dd23c44adb96f985890a353233c7fd38f5f705b21a1e31b53b3dc6ae21523a01b2adf SHA512 5e48805adcec08e8deab671df7bf5a8303c29d8d2679bf9ce6608674d225e5acafc3f0f66b07c0362f9da735263773259db8f77dfe7028f268dbe13ce67e6b10
DIST senken-0.3.0.tar.gz 1391010 BLAKE2B ac55f61c6a1c86ca3a891190f562e91aaed56f19f08dffe2a17016dd8ef5e35a3e1c6188b402506d063c4ee812a43f63bfd45b58e102c4a1199a733ab336a8dc SHA512 df0c15cabf667fb7b56db40baf03fcae6695aa9ec0e42a7db682ff20877a5b89ee67e7799e762b4a78cf0f3fdee7f001419091f0683df74ba1bbe6b9501f0272
-EBUILD senken-0.3.0-r1.ebuild 1042 BLAKE2B 7ecaf1e570aafe0330125f839c32cea6e19a101b36a6154394850d113aa402dbffbe4eba54a3248da82de8d6a53a36132175bcb736a038edf6cae7052310404b SHA512 787ba69b0fd4fae23977c2b2668c1bd07a2536dca0d4fa53926e8f4a8f052bb6ee9902cdea117c9befbbff27c8e76096589389af623b38a20515af9b98ef24d0
-MISC metadata.xml 250 BLAKE2B 8d44bd4c6e7d6491273e2015e36ddac74af7b94a124fd240ff030e16430f5c85e53ab812f0e3e94bb2e6d138f39b512bbe01ff98b0081cacc21a02d648ec7643 SHA512 80ac07a3cac10ad2e72e9989a130b7d2073934fe92914a9db2af4d0e769d4bf537770f8faba0654bbd64a7e85ee38cf1f9d03b4b9cd322864b1b2bb35087d610
+EBUILD senken-0.3.0-r2.ebuild 1213 BLAKE2B ea6a965e73b92b72178e2da5fb7420bce4f04b19bf48903fbf646dc41d99996adb517038104d3bb38f377ed1c44d1560dcea06c3045708200ccb2a98042c0c2c SHA512 db17a525be4d7bcce6e1d648fa8a73fe5754da20011b3495320ee1f0bf235f7131207b9f358f5c81572cdc9c54c4dd714f0532114a33661a0b25e201a083d0ae
+MISC metadata.xml 326 BLAKE2B ccc701ef796e6e50f0c8fffd0a28d9c651d11b81d18b16360b51e2777cb3ad4fc79a4193913cf46ebfb9cf10001972ef45c09916d2bb503bc721bf096c05a17f SHA512 69b3861fe88897ca4332c8212472ad9c0df93aaba22fd77bf41776f6f830d0813b98eb822f5335c3b79752db4965b257e40f048b87814a52a2e40e75e6133093
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/metadata.xml b/games-simulation/senken/metadata.xml
index 1c3ba213c494..36d202f38fa2 100644
--- a/games-simulation/senken/metadata.xml
+++ b/games-simulation/senken/metadata.xml
@@ -5,4 +5,7 @@
<email>games@gentoo.org</email>
<name>Gentoo Games Project</name>
</maintainer>
+<upstream>
+<remote-id type="savannah-nongnu">senken</remote-id>
+</upstream>
</pkgmetadata>
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)
}