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.ebuild40
1 files changed, 26 insertions, 14 deletions
diff --git a/games-arcade/pycadia/pycadia-0.5.1.ebuild b/games-arcade/pycadia/pycadia-0.5.1.ebuild
index 3e68d4d41cbb..2f354e32112c 100644
--- a/games-arcade/pycadia/pycadia-0.5.1.ebuild
+++ b/games-arcade/pycadia/pycadia-0.5.1.ebuild
@@ -1,37 +1,49 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 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.6 2004/11/08 01:43:41 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/pycadia/pycadia-0.5.1.ebuild,v 1.7 2005/08/05 19:18:24 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 ~amd64 ppc"
LICENSE="GPL-2"
SLOT="0"
+KEYWORDS="~amd64 ppc x86"
IUSE=""
DEPEND=">=dev-python/pygame-1.5.5
>=dev-python/pygtk-1.99.16"
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ # bug #101464
+ if ! built_with_use dev-python/pygtk gnome ; then
+ einfo "${PN} needs gnome support in dev-python/pygtk"
+ die "Please emerge dev-python/pygtk with USE=gnome"
+ fi
+ games_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ echo "#!/bin/sh" > "${T}/pycadia"
+ echo "cd ${GAMES_DATADIR}/${PN}" >> "${T}/pycadia"
+ echo "exec python ./pycadia.py \"\${@}\"" >> "${T}/pycadia"
+}
+
src_install() {
- local dir="${GAMES_DATADIR}/${PN}"
+ dogamesbin "${T}/pycadia" || die "dogamesbin failed"
- insinto "${dir}"
+ insinto "${GAMES_DATADIR}/${PN}"
doins *.py pycadia.conf || die "doins failed"
+ doins -r {glade,pixmaps,sounds} || die "doins failed"
- exeinto "${dir}"
+ exeinto "${GAMES_DATADIR}/${PN}"
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"
+ dodoc doc/TODO doc/CHANGELOG doc/README
prepgamesdirs
}