summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/pycadia/pycadia-0.5.1.ebuild')
-rw-r--r--games-arcade/pycadia/pycadia-0.5.1.ebuild26
1 files changed, 15 insertions, 11 deletions
diff --git a/games-arcade/pycadia/pycadia-0.5.1.ebuild b/games-arcade/pycadia/pycadia-0.5.1.ebuild
index c5497fae1634..95a740f56226 100644
--- a/games-arcade/pycadia/pycadia-0.5.1.ebuild
+++ b/games-arcade/pycadia/pycadia-0.5.1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 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.14 2009/01/19 19:03:34 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/pycadia/pycadia-0.5.1.ebuild,v 1.15 2011/10/19 21:38:02 mr_bones_ Exp $
-EAPI=1
+EAPI=2
inherit eutils games
DESCRIPTION="Pycadia. Home to vector gaming, python style."
@@ -21,21 +21,25 @@ S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
- echo "#!/bin/sh" > "${T}/pycadia"
- echo "cd ${GAMES_DATADIR}/${PN}" >> "${T}/pycadia"
- echo "exec python ./pycadia.py \"\${@}\"" >> "${T}/pycadia"
+ {
+ echo "#!/bin/sh"
+ echo "cd ${GAMES_DATADIR}/${PN}"
+ echo "exec python ./pycadia.py \"\${@}\""
+ } > "${T}/pycadia"
}
src_install() {
- dogamesbin "${T}/pycadia" || die "dogamesbin failed"
+ dogamesbin "${T}/pycadia" || die
insinto "${GAMES_DATADIR}/${PN}"
- doins *.py pycadia.conf || die "doins failed"
- doins -r {glade,pixmaps,sounds} || die "doins failed"
+ doins -r {glade,pixmaps,sounds} *.py pycadia.conf || die
exeinto "${GAMES_DATADIR}/${PN}"
- doexe pycadia.py spacewarpy.py vektoroids.py || die "doexe failed"
+ doexe pycadia.py spacewarpy.py vektoroids.py || die
- dodoc doc/TODO doc/CHANGELOG doc/README
+ newicon pixmaps/pysteroids.png ${PN}.png
+ make_desktop_entry ${PN} Pycadia
+
+ dodoc doc/{TODO,CHANGELOG,README}
prepgamesdirs
}