From 216f4e9e189526e11ddc9d0769ab55f5816be7f8 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 17 Oct 2012 08:05:17 +0000 Subject: Fix build with gcc-4.7 Bug #422555 (Portage version: 2.1.11.28/cvs/Linux i686, signed Manifest commit with key 0145142D) --- games-puzzle/xye/ChangeLog | 7 ++++++- games-puzzle/xye/files/xye-0.12.0-gcc47.patch | 22 ++++++++++++++++++++++ games-puzzle/xye/xye-0.12.0.ebuild | 9 +++++---- 3 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 games-puzzle/xye/files/xye-0.12.0-gcc47.patch (limited to 'games-puzzle/xye') diff --git a/games-puzzle/xye/ChangeLog b/games-puzzle/xye/ChangeLog index 56cf5fe52d82..82aee808deef 100644 --- a/games-puzzle/xye/ChangeLog +++ b/games-puzzle/xye/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-puzzle/xye # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xye/ChangeLog,v 1.30 2012/07/02 20:55:00 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xye/ChangeLog,v 1.31 2012/10/17 08:05:17 tupone Exp $ + + 17 Oct 2012; Tupone Alfredo xye-0.12.0.ebuild, + +files/xye-0.12.0-gcc47.patch: + Fix build with gcc-4.7 Bug #422555 by Diego + Moving to EAPI 4 02 Jul 2012; Michael Sterrett -xye-0.10.0.ebuild: old diff --git a/games-puzzle/xye/files/xye-0.12.0-gcc47.patch b/games-puzzle/xye/files/xye-0.12.0-gcc47.patch new file mode 100644 index 000000000000..f638968dd404 --- /dev/null +++ b/games-puzzle/xye/files/xye-0.12.0-gcc47.patch @@ -0,0 +1,22 @@ +--- src/editorsave.cpp.old 2012-10-17 09:47:46.413566575 +0200 ++++ src/editorsave.cpp 2012-10-17 09:48:17.314366174 +0200 +@@ -642,7 +642,8 @@ + file << "\n"; + file << "\n"<< stripXML(editorboard::filetitle) <<""<< stripXML(editorboard::author) <<"\n"<< stripXML(editorboard::description) <<"\n"; + +- for (int i=first; i\n"; + file << ""<< stripXML(board->title) <<"\n"; +--- src/gen.cpp.old 2012-10-17 09:41:40.825540267 +0200 ++++ src/gen.cpp 2012-10-17 09:41:57.087387319 +0200 +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + + const float F_RAND_MAX = (float)(RAND_MAX); + diff --git a/games-puzzle/xye/xye-0.12.0.ebuild b/games-puzzle/xye/xye-0.12.0.ebuild index 843f8f4fcd79..63d22777aea3 100644 --- a/games-puzzle/xye/xye-0.12.0.ebuild +++ b/games-puzzle/xye/xye-0.12.0.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xye/xye-0.12.0.ebuild,v 1.3 2012/01/21 16:33:05 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xye/xye-0.12.0.ebuild,v 1.4 2012/10/17 08:05:17 tupone Exp $ -EAPI=2 +EAPI=4 inherit autotools eutils games DESCRIPTION="Free version of the classic game Kye" @@ -20,14 +20,15 @@ DEPEND="media-libs/libsdl[video] media-fonts/dejavu" src_prepare() { + epatch "${FILESDIR}"/${P}-gcc47.patch sed -i -e '/^xye_LDFLAGS/d' Makefile.am || die eautoreconf } src_install() { - dogamesbin "${PN}" || die + dogamesbin "${PN}" insinto "${GAMES_DATADIR}/${PN}" - doins -r levels res || die + doins -r levels res rm -f "${D}${GAMES_DATADIR}/${PN}"/res/DejaVuSans* dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}/${PN}"/res/ dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}/${PN}"/res/ -- cgit v1.2.3-65-gdbad