-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
rm -rf sdlx/gfx
epatch "${FILESDIR}"/${P}-scons-blows.patch \
"${FILESDIR}"/${P}-gcc46.patch \
- "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-gcc6.patch
}
src_compile() {
--- /dev/null
+Bug: https://bugs.gentoo.org/609692
+
+--- a/mrt/timespy.cpp
++++ b/mrt/timespy.cpp
+@@ -43,7 +43,7 @@
+ throw_io(("gettimeofday"));
+ }
+
+-TimeSpy::~TimeSpy() {
++TimeSpy::~TimeSpy() DTOR_NOEXCEPT {
+ struct timeval now;
+ if (gettimeofday(&now, NULL) == -1)
+ throw_io(("gettimeofday"));
+--- a/mrt/timespy.h
++++ b/mrt/timespy.h
+@@ -37,11 +37,17 @@
+ #include "fmt.h"
+ #include "export_mrt.h"
+
++#if __cplusplus >= 201103L
++#define DTOR_NOEXCEPT noexcept(false)
++#else
++#define DTOR_NOEXCEPT
++#endif
++
+ namespace mrt {
+ class MRTAPI TimeSpy {
+ public:
+ TimeSpy(const std::string &message);
+- ~TimeSpy();
++ ~TimeSpy() DTOR_NOEXCEPT;
+ private:
+ TimeSpy(const TimeSpy&);
+ const TimeSpy& operator=(const TimeSpy&);