summaryrefslogtreecommitdiff
blob: 946ed9a2510117fcb06125648a046fae861c09c5 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/pycadia/pycadia-0.5.1.ebuild,v 1.1 2003/11/13 21:20:18 mr_bones_ Exp $

inherit games

S="${WORKDIR}/${PN}"
DESCRIPTION="Pycadia. Home to vector gaming, python style."
HOMEPAGE="http://www.anti-particle.com/pycadia.shtml"
SRC_URI="http://www.anti-particle.com/downloads/${P}.tar.gz"

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

DEPEND=">=dev-python/pygame-1.5.5
	>=dev-python/pygtk-1.99.16"

src_install() {
	local dir="${GAMES_DATADIR}/${PN}"

	insinto "${dir}"
	doins *.py pycadia.conf || die "doins failed"

	exeinto "${dir}"
	doexe pycadia.py spacewarpy.py vektoroids.py || die "doexe failed"

	cp -R {glade,pixmaps,sounds} "${D}/${dir}" || die "cp failed"

	echo "#!/bin/sh" > pycadia
	echo "cd ${dir}" >> pycadia
	echo "exec python ./pycadia.py \"\${@}\"" >> pycadia
	dogamesbin pycadia || die "dogamesbin failed"
	dodoc doc/TODO doc/CHANGELOG doc/README || die "dodoc failed"
	prepgamesdirs
}