games-action/koth: build with gcc5 (bug #570730)
authorMichael Sterrett <mr_bones_@gentoo.org>
Thu, 31 Mar 2016 08:46:18 +0000 (04:46 -0400)
committerMichael Sterrett <mr_bones_@gentoo.org>
Thu, 31 Mar 2016 08:46:34 +0000 (04:46 -0400)
Package-Manager: portage-2.2.26

games-action/koth/koth-0.8.0.ebuild

index 0bbe48f16ffaee588c95f36b0ac34a90d9d0e0b8..eea7122cf3dae328924cf94464db346318cda9a4 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
-inherit eutils games
+inherit eutils flag-o-matic games
 
 DESCRIPTION="Multiplayer, networked game of little tanks with really big weapons"
 HOMEPAGE="http://www.nongnu.org/koth/"
@@ -23,6 +23,7 @@ src_prepare() {
        epatch "${FILESDIR}"/${P}-gcc-3.4.patch
        sed -i "s:/etc/koth:${GAMES_SYSCONFDIR}:" cfgfile.h || die
        sed -i 's:(uint16):(uint16_t):' gfx.c gfx.h || die
+       append-cflags -std=gnu89 # build with gcc5 (bug #570730)
 }
 
 src_install() {