From 5e7551573baae3b8530295e07cf19afd5a9f2705 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 5 Jan 2023 07:38:33 +0000 Subject: games-arcade/yarsrevenge: fix configure w/ clang 16 Closes: https://bugs.gentoo.org/879689 Signed-off-by: Sam James --- .../files/yarsrevenge-0.99-configure-clang16.patch | 14 ++++++++++ .../yarsrevenge/yarsrevenge-0.99-r1.ebuild | 30 --------------------- .../yarsrevenge/yarsrevenge-0.99-r2.ebuild | 31 ++++++++++++++++++++++ 3 files changed, 45 insertions(+), 30 deletions(-) create mode 100644 games-arcade/yarsrevenge/files/yarsrevenge-0.99-configure-clang16.patch delete mode 100644 games-arcade/yarsrevenge/yarsrevenge-0.99-r1.ebuild create mode 100644 games-arcade/yarsrevenge/yarsrevenge-0.99-r2.ebuild (limited to 'games-arcade/yarsrevenge') diff --git a/games-arcade/yarsrevenge/files/yarsrevenge-0.99-configure-clang16.patch b/games-arcade/yarsrevenge/files/yarsrevenge-0.99-configure-clang16.patch new file mode 100644 index 000000000000..eae341836880 --- /dev/null +++ b/games-arcade/yarsrevenge/files/yarsrevenge-0.99-configure-clang16.patch @@ -0,0 +1,14 @@ +autoreconf fails and it's a trivial fix to the generated configure, so let's +just patch that instead. This is fixed in autoconf itself in newer versions. + +https://bugs.gentoo.org/879689 +--- a/configure ++++ b/configure +@@ -6289,6 +6289,7 @@ cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + #include ++#include + #if ((' ' & 0x0FF) == 0x020) + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) diff --git a/games-arcade/yarsrevenge/yarsrevenge-0.99-r1.ebuild b/games-arcade/yarsrevenge/yarsrevenge-0.99-r1.ebuild deleted file mode 100644 index 6ec048d1f79f..000000000000 --- a/games-arcade/yarsrevenge/yarsrevenge-0.99-r1.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit desktop - -DESCRIPTION="Remake of the Atari 2600 classic Yar's Revenge" -HOMEPAGE="http://freshmeat.net/projects/yarsrevenge/" -SRC_URI="http://www.autismuk.freeserve.co.uk/yar-${PV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="media-libs/libsdl[sound,joystick,video]" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/yar-${PV}" - -PATCHES=( - "${FILESDIR}"/${PV}-math.patch - "${FILESDIR}"/${P}-gcc43.patch - "${FILESDIR}"/${P}-gcc44.patch -) - -src_install() { - default - make_desktop_entry "${PN}" "Yar's Revenge" -} diff --git a/games-arcade/yarsrevenge/yarsrevenge-0.99-r2.ebuild b/games-arcade/yarsrevenge/yarsrevenge-0.99-r2.ebuild new file mode 100644 index 000000000000..cc35efd61d0e --- /dev/null +++ b/games-arcade/yarsrevenge/yarsrevenge-0.99-r2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop + +DESCRIPTION="Remake of the Atari 2600 classic Yar's Revenge" +HOMEPAGE="http://freshmeat.net/projects/yarsrevenge/" +SRC_URI="http://www.autismuk.freeserve.co.uk/yar-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="media-libs/libsdl[sound,joystick,video]" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/yar-${PV}" + +PATCHES=( + "${FILESDIR}"/${PV}-math.patch + "${FILESDIR}"/${P}-gcc43.patch + "${FILESDIR}"/${P}-gcc44.patch + "${FILESDIR}"/${P}-configure-clang16.patch +) + +src_install() { + default + make_desktop_entry "${PN}" "Yar's Revenge" +} -- cgit v1.2.3-65-gdbad