public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-arcade/retrobattle/, games-arcade/retrobattle/files/
@ 2017-04-16 18:57 David Seifert
  0 siblings, 0 replies; only message in thread
From: David Seifert @ 2017-04-16 18:57 UTC (permalink / raw
  To: gentoo-commits

commit:     b581f310212bf0254f21f4de3aa5b3c368ec9389
Author:     Peter-Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Fri Apr  7 20:51:24 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Apr 16 18:57:38 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b581f310

games-arcade/retrobattle: Fix building with GCC-6 (bug #614398)

Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4384

 .../retrobattle/files/retrobattle-1.0.0-gcc6.patch | 22 ++++++++++++++++++++++
 games-arcade/retrobattle/retrobattle-1.0.0.ebuild  |  4 ++--
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch
new file mode 100644
index 00000000000..19974e36ea5
--- /dev/null
+++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch
@@ -0,0 +1,22 @@
+--- a/src/GameLogic.h
++++ b/src/GameLogic.h
+@@ -52,8 +52,8 @@
+   /* Fixed interval time-based animation */
+   static const int maximumFrameRate = 60;
+   static const int minimumFrameRate = 15;
+-  static const float updateInterval = 1.0 / maximumFrameRate;
+-  static const float maxCyclesPerFrame = maximumFrameRate / minimumFrameRate;
++  static const float updateInterval;
++  static const float maxCyclesPerFrame;
+ 
+   float lastFrameTime;
+   float cyclesLeftOver;
+--- a/src/GameLogic.cc
++++ b/src/GameLogic.cc
+@@ -206,3 +206,6 @@
+ {
+   sprintf(buf, "%s/data/gfx/%s", datadir, file);
+ }
++
++const float GameLogic::updateInterval = 1.0 / maximumFrameRate;
++const float GameLogic::maxCyclesPerFrame = maximumFrameRate / minimumFrameRate;

diff --git a/games-arcade/retrobattle/retrobattle-1.0.0.ebuild b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild
index ad00348dd59..eed0252ed1e 100644
--- a/games-arcade/retrobattle/retrobattle-1.0.0.ebuild
+++ b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -22,7 +22,7 @@ RDEPEND="${DEPEND}"
 S=${WORKDIR}/${MY_P}/src
 
 src_prepare() {
-	epatch "${FILESDIR}"/${P}-{build,sound}.patch
+	epatch "${FILESDIR}"/${P}-{build,sound,gcc6}.patch
 }
 
 src_install() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-16 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-16 18:57 [gentoo-commits] repo/gentoo:master commit in: games-arcade/retrobattle/, games-arcade/retrobattle/files/ David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox