commit:     770384f01be77ea6c4d14c7a77c88b96c7fb4d60
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sun Sep 19 03:49:03 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 19 04:15:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=770384f0

games-emulation/libretro-dosbox: build with -std=gnu++11

The codebase is not yet compatible with any newer C++ dialect.

Closes: https://bugs.gentoo.org/787704
Bug: https://github.com/libretro/dosbox-libretro/issues/137
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../libretro-dosbox/libretro-dosbox-0.0.1_pre20180723.ebuild     | 9 +++++++--
 games-emulation/libretro-dosbox/libretro-dosbox-9999.ebuild      | 9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git 
a/games-emulation/libretro-dosbox/libretro-dosbox-0.0.1_pre20180723.ebuild 
b/games-emulation/libretro-dosbox/libretro-dosbox-0.0.1_pre20180723.ebuild
index 7e054e83e3a..0b886621f56 100644
--- a/games-emulation/libretro-dosbox/libretro-dosbox-0.0.1_pre20180723.ebuild
+++ b/games-emulation/libretro-dosbox/libretro-dosbox-0.0.1_pre20180723.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,8 +6,13 @@ EAPI=7
 LIBRETRO_REPO_NAME="libretro/dosbox-libretro"
 LIBRETRO_COMMIT_SHA="169d476437ec813b462a47254f24cf78473389c8"
 KEYWORDS="~amd64 ~x86"
-inherit libretro-core
+inherit flag-o-matic libretro-core
 
 DESCRIPTION="DOSBox libretro port"
 LICENSE="GPL-2+"
 SLOT="0"
+
+src_compile() {
+       append-cxxflags -std=gnu++11
+       default
+}

diff --git a/games-emulation/libretro-dosbox/libretro-dosbox-9999.ebuild 
b/games-emulation/libretro-dosbox/libretro-dosbox-9999.ebuild
index 5105cca887f..ad6cbe45346 100644
--- a/games-emulation/libretro-dosbox/libretro-dosbox-9999.ebuild
+++ b/games-emulation/libretro-dosbox/libretro-dosbox-9999.ebuild
@@ -1,11 +1,16 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 LIBRETRO_REPO_NAME="libretro/dosbox-libretro"
-inherit libretro-core
+inherit libretro-core flag-o-matic
 
 DESCRIPTION="DOSBox libretro port"
 LICENSE="GPL-2+"
 SLOT="0"
+
+src_compile() {
+       append-cxxflags -std=gnu++11
+       default
+}

Reply via email to