summaryrefslogtreecommitdiff
blob: 754d1f78336a979b7c5a4600199ad5b7f1db10bf (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-2004 Gentoo Foundation
# 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.4 2004/06/24 22:10:32 agriffis 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 ~amd64"
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
}