summaryrefslogtreecommitdiff
blob: fd60bc53fdc1cc5a425aa9ec7de8cae06fff4780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/xblast/xblast-2.9.22.ebuild,v 1.5 2005/02/02 07:30:51 mr_bones_ Exp $

inherit games

DESCRIPTION="Bomberman clone w/network support for up to 6 players"
HOMEPAGE="http://xblast.sourceforge.net/"
SRC_URI="mirror://sourceforge/xblast/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~amd64"
IUSE=""

DEPEND="virtual/x11
	media-libs/libpng"

src_compile() {
	export MY_DATADIR="${GAMES_DATADIR}/${PN}"
	egamesconf \
		--enable-sound \
		--with-otherdatadir="${MY_DATADIR}" \
		|| die
	emake || die "emake failed"
}

src_install() {
	egamesinstall game_datadir="${D}${MY_DATADIR}" || die
	dodoc AUTHORS ChangeLog NEWS README
	find "${D}${MY_DATADIR}" \( -name "*akefile*" -o -name "*~" \) \
		-exec rm -f \{\} \;
	find "${D}${MY_DATADIR}" -type f -exec chmod a-x \{\} \;
	prepgamesdirs
}