summaryrefslogtreecommitdiff
blob: e7a524724d21b33a2a6e04034362053e382ba554 (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
36
37
38
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/hexamine/hexamine-0.2.1.ebuild,v 1.1 2006/07/06 00:27:28 mr_bones_ Exp $

inherit games

DESCRIPTION="Hexagonal Minesweeper"
HOMEPAGE="http://sourceforge.net/projects/hexamine"
SRC_URI="mirror://sourceforge/hexamine/${P}.tar.gz"

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

RDEPEND="media-libs/libsdl
	dev-python/pygame"

S=${WORKDIR}/${PN}

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Modify game data directory
	sed -i \
		-e "s:\`dirname \$0\`:${GAMES_DATADIR}/${PN}:" \
		-e "s:\./hexamine:exec python &:" \
		hexamine || die "sed failed"
}

src_install() {
	dogamesbin hexamine || die "dogamesbin failed"
	insinto "${GAMES_DATADIR}/${PN}"
	doins -r hexamine.* skins || die "doins failed"
	dodoc ABOUT README
	prepgamesdirs
}