@@ -, +, @@ --- games-action/xbomber/files/xbomber-101-gcc4.patch | 4 +- .../xbomber/files/xbomber-101-ldflags.patch | 4 +- .../xbomber/files/xbomber-101-va_list.patch | 4 +- games-action/xbomber/xbomber-101-r1.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 games-action/xbomber/xbomber-101-r1.ebuild --- a/games-action/xbomber/files/xbomber-101-gcc4.patch +++ a/games-action/xbomber/files/xbomber-101-gcc4.patch @@ -1,5 +1,5 @@ --- a/games-action/xbomber/files/xbomber-101-ldflags.patch 2006-01-28 12:06:34.000000000 -0700 +++ a/games-action/xbomber/files/xbomber-101-ldflags.patch 2006-01-28 12:06:46.000000000 -0700 @@ -1,5 +1,5 @@ --- a/games-action/xbomber/files/xbomber-101-va_list.patch 2010-10-19 09:17:43.000000000 +0200 +++ a/games-action/xbomber/files/xbomber-101-va_list.patch 2010-10-19 09:18:12.000000000 +0200 @@ -1,5 +1,5 @@ --- a/games-action/xbomber/xbomber-101-r1.ebuild 2005-11-06 16:50:04.000000000 +0100 +++ a/games-action/xbomber/xbomber-101-r1.ebuild 2005-11-06 16:47:35.000000000 +0100 @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Bomberman clone w/multiplayer support" +HOMEPAGE="http://www.xdr.com/dash/bomber.html" +SRC_URI="http://www.xdr.com/dash/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="x11-libs/libX11" +RDEPEND=${DEPEND} + +PATCHES=( + "${FILESDIR}"/${P}-va_list.patch + "${FILESDIR}"/${P}-gcc4.patch + "${FILESDIR}"/${P}-ldflags.patch +) + +src_prepare() { + sed -i \ + -e "/^CC/d" \ + -e 's/gcc/$(CC)/g' \ + -e "s:X386:X11R6:" \ + Makefile || die + sed -i \ + -e "s:data/%s:/usr/share/${PN}/%s:" bomber.c || die + sed -i \ + -e "s:=\"data\":=\"/usr/share/${PN}\":" sound.c || die + # ${P}-ldflags.patch depends on the munged Makefile + default +} + +src_compile() { + if tc-is-clang ; then + # Fatal on clang + append-cflags -Wno-return-type + fi + + default +} + +src_install() { + dobin matcher bomber + insinto /usr/share/${PN} + doins -r data/* + dodoc README Changelog +} --