games-roguelike/powder: Fix building with GCC-6
authorPeter Levine <plevine457@gmail.com>
Sun, 15 Oct 2017 03:52:48 +0000 (23:52 -0400)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 22 Oct 2017 21:47:18 +0000 (23:47 +0200)
Closes: https://bugs.gentoo.org/598928
Closes: https://github.com/gentoo/gentoo/pull/5949
Package-Manager: Portage-2.3.10, Repoman-2.3.3

games-roguelike/powder/files/powder-117-gcc6.patch [new file with mode: 0644]
games-roguelike/powder/powder-117-r1.ebuild

diff --git a/games-roguelike/powder/files/powder-117-gcc6.patch b/games-roguelike/powder/files/powder-117-gcc6.patch
new file mode 100644 (file)
index 0000000..3a9b7f2
--- /dev/null
@@ -0,0 +1,20 @@
+Bug: https://bugs.gentoo.org/598928
+
+--- a/source.txt
++++ b/source.txt
+@@ -13400,13 +13400,13 @@
+ 
+ BRANCH MAIN
+ {
+-    symbol    '\\207'
++    symbol    static_cast<u8>('\\207')
+     welcome   "%U <return> to the main dungeon."
+ }
+ 
+ BRANCH TRIDUDE
+ {
+-    symbol    '\\211'
++    symbol    static_cast<u8>('\\211')
+     welcome   "%U <enter> a cave made of metal."
+ }
+ 
index b0199fe9fa0d9b902315c1b69dcf07cd986b04c3..e7c6acc40057c6a4e3691ab01776b38470f985d0 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,6 +20,8 @@ RDEPEND=${DEPEND}
 
 S=${WORKDIR}/${MY_P}
 
+PATCHES=( "${FILESDIR}"/${PN}-117-gcc6.patch )
+
 src_compile() {
        append-cxxflags -DCHANGE_WORK_DIRECTORY
        emake -C port/linux premake