summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2005-08-05 19:18:24 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2005-08-05 19:18:24 +0000
commit2b390ff8e00e227c42c4fdb967b891a548e0f759 (patch)
treec8010c7ea29886c93f469a8f9c8318b754109110 /games-arcade
parentAdded make.defualts in preparation for inheritence change. (diff)
downloadhistorical-2b390ff8e00e227c42c4fdb967b891a548e0f759.tar.gz
historical-2b390ff8e00e227c42c4fdb967b891a548e0f759.tar.bz2
historical-2b390ff8e00e227c42c4fdb967b891a548e0f759.zip
check for gnome use flag in pygtk (bug #101464)
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/pycadia/ChangeLog7
-rw-r--r--games-arcade/pycadia/Manifest4
-rw-r--r--games-arcade/pycadia/pycadia-0.5.1.ebuild40
3 files changed, 33 insertions, 18 deletions
diff --git a/games-arcade/pycadia/ChangeLog b/games-arcade/pycadia/ChangeLog
index 3ec5f6ee0462..893709659847 100644
--- a/games-arcade/pycadia/ChangeLog
+++ b/games-arcade/pycadia/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-arcade/pycadia
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/pycadia/ChangeLog,v 1.4 2004/11/08 01:43:41 josejx Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/pycadia/ChangeLog,v 1.5 2005/08/05 19:18:24 mr_bones_ Exp $
+
+ 05 Aug 2005; Michael Sterrett <mr_bones_@gentoo.org> pycadia-0.5.1.ebuild:
+ check for gnome use flag in pygtk (bug #101464)
08 Nov 2004; Joseph Jezak <josejx@gentoo.org> pycadia-0.5.1.ebuild:
Marked ppc stable.
diff --git a/games-arcade/pycadia/Manifest b/games-arcade/pycadia/Manifest
index fe64f8dca727..c19caa3cd53f 100644
--- a/games-arcade/pycadia/Manifest
+++ b/games-arcade/pycadia/Manifest
@@ -1,4 +1,4 @@
-MD5 2d3e1ae1c8ddaf9736cd290a8018426b ChangeLog 559
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
-MD5 753574b6bd49a541380fbf481a6d61cc pycadia-0.5.1.ebuild 1068
+MD5 5529ce6ca3a5377c69fdbe749c1f2ce3 pycadia-0.5.1.ebuild 1324
+MD5 1cc865c2065c88148813a4036be524da ChangeLog 690
MD5 b8aa1949d2d82a82360c47ad93e11853 files/digest-pycadia-0.5.1 66
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
}