Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 588772 | Differences between
and this patch

Collapse All | Expand All

(-)xbomber-101.ebuild (-13 / +26 lines)
Lines 1-9 Link Here
1
# Copyright 1999-2015 Gentoo Foundation
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
3
# $Id$
4
4
5
EAPI=5
5
EAPI=6
6
inherit eutils games
6
7
inherit flag-o-matic toolchain-funcs
7
8
8
DESCRIPTION="Bomberman clone w/multiplayer support"
9
DESCRIPTION="Bomberman clone w/multiplayer support"
9
HOMEPAGE="http://www.xdr.com/dash/bomber.html"
10
HOMEPAGE="http://www.xdr.com/dash/bomber.html"
Lines 11-22 Link Here
11
12
12
LICENSE="GPL-2"
13
LICENSE="GPL-2"
13
SLOT="0"
14
SLOT="0"
14
KEYWORDS="amd64 ~ppc x86"
15
KEYWORDS="~amd64 ~ppc ~x86"
15
IUSE=""
16
IUSE=""
16
17
17
DEPEND="x11-libs/libX11"
18
DEPEND="x11-libs/libX11"
18
RDEPEND=${DEPEND}
19
RDEPEND=${DEPEND}
19
20
21
PATCHES=(
22
		"${FILESDIR}"/${P}-va_list.patch
23
		"${FILESDIR}"/${P}-gcc4.patch
24
		"${FILESDIR}"/${P}-ldflags.patch
25
)
26
20
src_prepare() {
27
src_prepare() {
21
	sed -i \
28
	sed -i \
22
		-e "/^CC/d" \
29
		-e "/^CC/d" \
Lines 24-42 Link Here
24
		-e "s:X386:X11R6:" \
31
		-e "s:X386:X11R6:" \
25
		Makefile || die
32
		Makefile || die
26
	sed -i \
33
	sed -i \
27
		-e "s:data/%s:${GAMES_DATADIR}/${PN}/%s:" bomber.c || die
34
		-e "s:data/%s:/usr/share/${PN}/%s:" bomber.c || die
28
	sed -i \
35
	sed -i \
29
		-e "s:=\"data\":=\"${GAMES_DATADIR}/${PN}\":" sound.c || die
36
		-e "s:=\"data\":=\"/usr/share/${PN}\":" sound.c || die
30
	epatch \
37
	# ${P}-ldflags.patch depends on the munged Makefile
31
		"${FILESDIR}"/${P}-va_list.patch \
38
	default
32
		"${FILESDIR}"/${P}-gcc4.patch \
39
}
33
		"${FILESDIR}"/${P}-ldflags.patch
40
41
src_compile() {
42
	if tc-is-clang ; then
43
		# Fatal on clang
44
		append-cflags -Wno-return-type
45
	fi
46
47
	default
34
}
48
}
35
49
36
src_install() {
50
src_install() {
37
	dogamesbin matcher bomber
51
	dobin matcher bomber
38
	insinto "${GAMES_DATADIR}"/${PN}
52
	insinto /usr/share/${PN}
39
	doins -r data/*
53
	doins -r data/*
40
	dodoc README Changelog
54
	dodoc README Changelog
41
	prepgamesdirs
42
}
55
}

Return to bug 588772