mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
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:
parent
d2dd8889e4
commit
c3448f3a9c
@ -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() {
|
||||
15
games-puzzle/anagramarama/files/anagramarama-0.2-c23.patch
Normal file
15
games-puzzle/anagramarama/files/anagramarama-0.2-c23.patch
Normal 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);
|
||||
Loading…
x
Reference in New Issue
Block a user