games-puzzle/brainparty: Fix GCC-6 build
authorPeter-Levine <plevine457@gmail.com>
Fri, 24 Mar 2017 16:52:45 +0000 (12:52 -0400)
committerDavid Seifert <soap@gentoo.org>
Sat, 25 Mar 2017 12:47:30 +0000 (13:47 +0100)
Bug: https://bugs.gentoo.org/show_bug.cgi?id=612654
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4220

games-puzzle/brainparty/brainparty-0.61.ebuild
games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch [new file with mode: 0644]

index 3271d1a09dcc3b99c6314d643017b7e151cd859c..9cc441ad80e82e67b7a7444d1701fbfe5484365f 100644 (file)
@@ -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
@@ -34,7 +34,8 @@ src_prepare() {
                main.cpp || die
        epatch \
                "${FILESDIR}"/${P}-savegame.patch \
-               "${FILESDIR}"/${P}-gcc49.patch
+               "${FILESDIR}"/${P}-gcc49.patch \
+               "${FILESDIR}"/${P}-gnu_cxx-hash.patch
 
 }
 
diff --git a/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch b/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch
new file mode 100644 (file)
index 0000000..8d93346
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/WordList.h
++++ b/WordList.h
+@@ -35,7 +35,7 @@
+       };
+ }
+ 
+-typedef hash_set<string, hash<string> > string_hash_set;
++typedef hash_set<string, __gnu_cxx::hash<string> > string_hash_set;
+ 
+ class WordList {
+ private: