commit: 4a12fdba8af93bfbb41c9c27e4ab4359e564e803 Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com> AuthorDate: Tue Oct 17 17:31:34 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 7 01:20:35 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a12fdba
games-arcade/pengupop: Fix call to undeclared function swprintf Closes: https://bugs.gentoo.org/883463 Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com> Signed-off-by: Brahmajit Das <listout <AT> listout.xyz> Part-of: https://github.com/gentoo/gentoo/pull/33381 Closes: https://github.com/gentoo/gentoo/pull/33381 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/pengupop-2.2.5-clang16-fix.patch | 40 ++++++++++++++++++++++ games-arcade/pengupop/pengupop-2.2.5-r2.ebuild | 34 ++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/games-arcade/pengupop/files/pengupop-2.2.5-clang16-fix.patch b/games-arcade/pengupop/files/pengupop-2.2.5-clang16-fix.patch new file mode 100644 index 000000000000..6c35a230d987 --- /dev/null +++ b/games-arcade/pengupop/files/pengupop-2.2.5-clang16-fix.patch @@ -0,0 +1,40 @@ +Bug: https://bugs.gentoo.org/883463 +--- a/main.c ++++ b/main.c +@@ -48,6 +48,7 @@ + #include "common.h" + #include "packet.h" + #include "sound.h" ++#include "main.h" + + extern unsigned char saved_level; + extern unsigned char level; +@@ -74,9 +75,6 @@ static struct option long_options[] = + + extern void play_single_player(); + +-#ifndef swprintf +-int swprintf(wchar_t *wcs, size_t maxlen, const wchar_t *format, ...); +-#endif + #endif + + int hwalpha; +--- /dev/null ++++ b/main.h +@@ -0,0 +1,6 @@ ++#include <stdio.h> ++#include <wchar.h> ++#ifndef swprintf ++int swprintf(wchar_t *wcs, size_t maxlen, const wchar_t *format, ...); ++#endif ++void remove_bubble(struct player_state* p, int x, int y, int evil); +--- a/singleplayer.c ++++ b/singleplayer.c +@@ -24,6 +24,7 @@ + + #include "common.h" + #include "sound.h" ++#include "main.h" + + #ifndef WIN32 + #include <unistd.h> diff --git a/games-arcade/pengupop/pengupop-2.2.5-r2.ebuild b/games-arcade/pengupop/pengupop-2.2.5-r2.ebuild new file mode 100644 index 000000000000..2fda5bcfa7d3 --- /dev/null +++ b/games-arcade/pengupop/pengupop-2.2.5-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +inherit desktop + +DESCRIPTION="Networked Puzzle Bubble clone" +HOMEPAGE="http://freshmeat.net/projects/pengupop" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-libs/libsdl[sound,video] + virtual/zlib:=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.5-clang16-fix.patch +) + +src_compile() { + emake LIBS=-lm #497196 +} + +src_install() { + default + + doicon pengupop.png + make_desktop_entry ${PN} Pengupop +}
