commit: 015f3412a0e7534a2ea1410cc278d148c104029e Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com> AuthorDate: Sun Sep 3 18:33:34 2023 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Mon Sep 4 07:09:20 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=015f3412
media-sound/sidplay: Fix C++17 does not allow register storage class Closes: https://bugs.gentoo.org/897796 Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32588 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> .../sidplay-2.0.9-drop-register-keyword.patch | 16 +++++++++++++++ media-sound/sidplay/sidplay-2.0.9-r2.ebuild | 23 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/media-sound/sidplay/files/sidplay-2.0.9-drop-register-keyword.patch b/media-sound/sidplay/files/sidplay-2.0.9-drop-register-keyword.patch new file mode 100644 index 000000000000..91c01de93b37 --- /dev/null +++ b/media-sound/sidplay/files/sidplay-2.0.9-drop-register-keyword.patch @@ -0,0 +1,16 @@ +Bug; https://bugs.gentoo.org/897796 +--- a/src/keyboard.cpp ++++ b/src/keyboard.cpp +@@ -129,9 +129,9 @@ static char keytable[] = + */ + static int keyboard_search (char *cmd) + { +- register char *p; +- register char *q; +- register int a; ++ char *p; ++ char *q; ++ int a; + + for (p = keytable, q = cmd;; p++, q++) + { diff --git a/media-sound/sidplay/sidplay-2.0.9-r2.ebuild b/media-sound/sidplay/sidplay-2.0.9-r2.ebuild new file mode 100644 index 000000000000..b4c1c91d75cd --- /dev/null +++ b/media-sound/sidplay/sidplay-2.0.9-r2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="C64 SID player" +HOMEPAGE="https://sidplay2.sourceforge.net/" +SRC_URI="mirror://sourceforge/sidplay2/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="" + +BDEPEND="virtual/pkgconfig" +DEPEND="media-libs/libsidplay:2" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-gcc43.patch" + "${FILESDIR}/${P}-gcc44.patch" + "${FILESDIR}/${P}-drop-register-keyword.patch" +)