games-arcade/cdogs-sdl: build with gcc5 (bug #571112)
authorMichael Sterrett <mr_bones_@gentoo.org>
Thu, 31 Mar 2016 17:31:24 +0000 (13:31 -0400)
committerMichael Sterrett <mr_bones_@gentoo.org>
Thu, 31 Mar 2016 17:31:24 +0000 (13:31 -0400)
Package-Manager: portage-2.2.26

games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild

index f0534386f851fb62f2db08ddd87e27bd0b269294..1ff6623e8acb0ff82d87996f5485c1526b18dd34 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
 
 CDOGS_DATA="cdogs-data-2007-07-06"
 DESCRIPTION="A port of the old DOS arcade game C-Dogs"
@@ -32,10 +32,9 @@ src_prepare() {
                -e "/^CF_OPT/d" \
                -e "/^CC/d" \
                Makefile || die
-       sed -i \
-               -e "/\bopen(/s/)/, 0666)/" \
-               files.c || die
+       sed -i -e "/\bopen(/s/)/, 0666)/" files.c || die
        epatch "${FILESDIR}"/${P}-64bit.patch
+       append-cflags -std=gnu89 # build with gcc5 (bug #571112)
 }
 
 src_compile() {