summaryrefslogtreecommitdiff
blob: 9b0f44313774ae85d8bfb31af438a607108d70a2 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xbomb/xbomb-2.1.ebuild,v 1.1 2003/09/10 06:36:00 vapier Exp $

inherit games

DESCRIPTION="Minesweeper clone with hexagonal, rectangular and triangular grid"
SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/games/strategy/${P}.tgz"
HOMEPAGE="http://www.gedanken.demon.co.uk/xbomb/"

LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="0"

DEPEND="virtual/x11"

src_unpack() {
	unpack ${A}
	patch -p0 < ${FILESDIR}/${P}.diff || die
}

src_compile() {
	emake CFLAGS="${CFLAGS}" || die
}

src_install() {
	cp Makefile Makefile.old
	sed -e "s:/usr/bin:${GAMES_BINDIR}:" Makefile.old > Makefile
	make DESTDIR=${D} install || die

	prepall
	prepgamesdirs
}