Bug: https://bugs.gentoo.org/show_bug.cgi?id=600894
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/5263
--- /dev/null
+Bug: https://bugs.gentoo.org/600894
+
+--- a/insaneodyssey/io.cpp
++++ b/insaneodyssey/io.cpp
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <cmath>
+
+ #include <SDL/SDL.h>
+
+@@ -894,7 +895,7 @@
+ else
+ {
+ if ( jumping )
+- yspeed = -jumpheight - abs(xspeed)/4;
++ yspeed = -jumpheight - std::abs(xspeed)/4;
+ }
+
+ short TempX = (x + width/2) / TILESIZE;
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
"${FILESDIR}"/${P}-datafiles.patch > "${T}"/datafiles.patch \
|| die
epatch "${T}"/datafiles.patch
+
+ epatch "${FILESDIR}"/${P}-gcc6.patch
+
sed -i \
-e "/lvl/s:^:${GAMES_DATADIR}/${PN}/:" \
-e "s:night:${GAMES_DATADIR}/${PN}/night:" \