summaryrefslogtreecommitdiff
blob: e7198ffb645012fc3eff4cab8e537cd3e219f219 (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
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/pydance/pydance-0.8.1-r1.ebuild,v 1.1 2003/10/13 18:57:33 vapier Exp $

inherit games

DESCRIPTION="Dance Dance Revolution!  You need this game more than Frozen Bubble"
HOMEPAGE="http://www.icculus.org/pyddr/"
SRC_URI="http://www.icculus.org/pyddr/${P}.tar.gz"

LICENSE="X11"
SLOT="0"
KEYWORDS="x86"

RDEPEND="dev-python/pygame
	media-libs/libvorbis
	media-libs/sdl-mixer"
PDEPEND="games-arcade/pydance-songs"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i \
		"s:/etc/:${GAMES_SYSCONFDIR}/:" \
		constants.py docs/man/pydance.6
}

src_install() {
	local dir=${GAMES_DATADIR}/${PN}
	insinto ${dir}
	doins *.py
	cp -R {sound,images,utils,themes} ${D}/${dir}/

	insinto ${GAMES_SYSCONFDIR}
	newins pydance.posix.cfg pydance.cfg

	dogamesbin ${FILESDIR}/pydance
	dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/pydance

	dodoc BUGS CREDITS ChangeLog HACKING README TODO
	dohtml docs/README.html
	doman docs/man/*
}

pkg_postinst() {
	games_pkg_postinst
	einfo "Emerge the games-arcade/ddrmat package to install"
	einfo "the ddrmat kernel module, which allows you to use"
	einfo "a DDR mat with pydance."
}