gentoo-overlay/games-arcade/pycadia/pycadia-0.5.1.ebuild

45 lines
1.1 KiB
Bash

# 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.15 2011/10/19 21:38:02 mr_bones_ Exp $
EAPI=2
inherit eutils games
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"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86 ~x86-fbsd"
IUSE=""
DEPEND=">=dev-python/pygame-1.5.5
dev-python/pygtk:2"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
{
echo "#!/bin/sh"
echo "cd ${GAMES_DATADIR}/${PN}"
echo "exec python ./pycadia.py \"\${@}\""
} > "${T}/pycadia"
}
src_install() {
dogamesbin "${T}/pycadia" || die
insinto "${GAMES_DATADIR}/${PN}"
doins -r {glade,pixmaps,sounds} *.py pycadia.conf || die
exeinto "${GAMES_DATADIR}/${PN}"
doexe pycadia.py spacewarpy.py vektoroids.py || die
newicon pixmaps/pysteroids.png ${PN}.png
make_desktop_entry ${PN} Pycadia
dodoc doc/{TODO,CHANGELOG,README}
prepgamesdirs
}