aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Bauer <samuel.bauer@yahoo.fr>2023-07-13 23:43:31 +0200
committerSamuel Bauer <samuel.bauer@yahoo.fr>2023-07-13 23:43:31 +0200
commit25e2524453f91567cabbccd8261fc90ec89b0425 (patch)
tree79fbfde4dc4f53c6a211147bfa8194567a91c66d /games-puzzle
parentmedia-sound/qpwgraph: version bump (diff)
downloadguru-25e2524453f91567cabbccd8261fc90ec89b0425.tar.gz
guru-25e2524453f91567cabbccd8261fc90ec89b0425.tar.bz2
guru-25e2524453f91567cabbccd8261fc90ec89b0425.zip
games-puzzle/atris: modernize autotools and do not use implicit
Signed-off-by: Samuel Bauer <samuel.bauer@yahoo.fr>
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/atris/atris-1.0.7.ebuild8
-rw-r--r--games-puzzle/atris/files/atris-1.0.7-no-implicit.patch11
2 files changed, 18 insertions, 1 deletions
diff --git a/games-puzzle/atris/atris-1.0.7.ebuild b/games-puzzle/atris/atris-1.0.7.ebuild
index dc61f8b20..1d21cf591 100644
--- a/games-puzzle/atris/atris-1.0.7.ebuild
+++ b/games-puzzle/atris/atris-1.0.7.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit desktop
+inherit autotools desktop
DESCRIPTION="Alizarin tetris"
HOMEPAGE="https://www.wkiri.com/projects/atris/"
@@ -26,8 +26,14 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-path-and-fullscreen.patch
+ "${FILESDIR}"/${P}-no-implicit.patch
)
+src_prepare() {
+ default
+ eautoreconf
+}
+
src_install() {
dobin atris
insinto /usr/share/${PN}
diff --git a/games-puzzle/atris/files/atris-1.0.7-no-implicit.patch b/games-puzzle/atris/files/atris-1.0.7-no-implicit.patch
new file mode 100644
index 000000000..68c796f2b
--- /dev/null
+++ b/games-puzzle/atris/files/atris-1.0.7-no-implicit.patch
@@ -0,0 +1,11 @@
+--- a/configure.in
++++ b/configure.in
+@@ -69,7 +69,7 @@
+ :,
+ AC_MSG_ERROR([*** SDL version $SDL_VERSION not found! Get it from http://www.libsdl.org ])
+ )
+-CFLAGS="$CFLAGS -Wall -Wimplicit -Wsign-compare -Wpointer-arith $SDL_CFLAGS -DATRIS_LIBDIR=\\\"$GAME_INSTALLDIR\\\""
++CFLAGS="$CFLAGS -Wall -Wsign-compare -Wpointer-arith $SDL_CFLAGS -DATRIS_LIBDIR=\\\"$GAME_INSTALLDIR\\\""
+ LIBS="$LIBS $SDL_LIBS"
+
+ # Finally create all the generated files