games-puzzle/anagramarama: EAPI 8, fix C23 compat

Closes: https://bugs.gentoo.org/944388
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-04-24 19:39:17 +01:00
parent d2dd8889e4
commit c3448f3a9c
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 25 additions and 7 deletions

View File

@ -1,13 +1,14 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit desktop toolchain-funcs vcs-clean
DESCRIPTION="Create as many words as you can before the time runs out"
HOMEPAGE="http://www.coralquest.com/anagramarama/"
SRC_URI="http://www.omega.clara.net/anagramarama/dist/${P}.tar.gz"
S="${WORKDIR}/${PN}"
LICENSE="GPL-2"
SLOT="0"
@ -16,16 +17,18 @@ KEYWORDS="~amd64 ~x86"
DEPEND="
>=media-libs/libsdl-1.2
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2"
RDEPEND="${DEPEND}
sys-apps/miscfiles"
>=media-libs/sdl-image-1.2
"
RDEPEND="
${DEPEND}
sys-apps/miscfiles
"
BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${PN}"
PATCHES=(
"${FILESDIR}"/${P}-fhs.patch
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-c23.patch
)
src_prepare() {

View File

@ -0,0 +1,15 @@
https://bugs.gentoo.org/944388
The comment for clearSoundBuffer() makes clear it uses the global soundCache,
as do the other functions that operate on it.
--- a/src/ag.c
+++ b/src/ag.c
@@ -1772,7 +1772,7 @@ struct sprite* letters = NULL;
// tidy up and exit
free(rootWord);
Mix_CloseAudio();
- clearSoundBuffer(&soundCache);
+ clearSoundBuffer();
//trashDLBTree();
destroyLetters(&letters);
SDL_FreeSurface(screen);