games-boards/gnubg: fix building w/gcc-5 #551896
authorMike Frysinger <vapier@gentoo.org>
Wed, 7 Oct 2015 14:51:25 +0000 (10:51 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 7 Oct 2015 14:51:57 +0000 (10:51 -0400)
This is mostly a hack around broken gnubg headers, but it works, and
upstream has been notified of the problem, so let them sort it out.

games-board/gnubg/gnubg-1.05.000.ebuild

index 90c280ab76a5cad16a1fe5fd7bfda927ec54a8a2..1399aa905ca0ae03172e476620ce55b14ae49bd1 100644 (file)
@@ -55,6 +55,9 @@ src_prepare() {
                -e '/^gnubgiconsdir / s#=.*#= /usr/share#' \
                -e '/^gnubgpixmapsdir / s#=.*#= /usr/share/pixmaps#' \
                pixmaps/Makefile.in || die
+       sed -i \
+               -e '1i#include <config.h>' \
+               copying.c || die #551896
 }
 
 src_configure() {