summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-06-20 18:07:36 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-06-20 18:07:36 +0000
commit548922def6e614a5a89aaf49ac95028d24a3a7b4 (patch)
tree534c4d92bfd34e15b3416ef524a95ee18251ed7a /games-simulation/singularity
parentstable for x86 (diff)
downloadgentoo-2-548922def6e614a5a89aaf49ac95028d24a3a7b4.tar.gz
gentoo-2-548922def6e614a5a89aaf49ac95028d24a3a7b4.tar.bz2
gentoo-2-548922def6e614a5a89aaf49ac95028d24a3a7b4.zip
old
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-simulation/singularity')
-rw-r--r--games-simulation/singularity/files/singularity-0.26a-musicdir.patch32
-rw-r--r--games-simulation/singularity/singularity-0.26a.ebuild40
2 files changed, 0 insertions, 72 deletions
diff --git a/games-simulation/singularity/files/singularity-0.26a-musicdir.patch b/games-simulation/singularity/files/singularity-0.26a-musicdir.patch
deleted file mode 100644
index 3a80f1e31d65..000000000000
--- a/games-simulation/singularity/files/singularity-0.26a-musicdir.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Index: code/g.py
-===================================================================
---- code/g.py (revision 406)
-+++ code/g.py (revision 407)
-@@ -142,14 +142,21 @@
- musicarray = []
- musicarraylen=0
- musicpath=path.join(data_loc, "..", "music")
-+ default_music_available = True
- if not path.isdir(musicpath):
-- makedirs(musicpath)
-- temp_ls = listdir(musicpath)
-- temp_ls_len = len(temp_ls)
-- for file_name in temp_ls:
-- if file_name[-3:] == "ogg" or file_name[-3:] == "mp3":
-- musicarray.append(path.join(musicpath, file_name))
-+ try:
-+ makedirs(musicpath)
-+ except:
-
-+ # We don't have permission to write here. Don't bother
-+ # trying to load music.
-+ default_music_available = False
-+
-+ if default_music_available:
-+ for file_name in listdir(musicpath):
-+ if file_name[-3:] == "ogg" or file_name[-3:] == "mp3":
-+ musicarray.append(path.join(musicpath, file_name))
-+
- #also, grab any user files
- musicpath=path.join(get_save_folder(True), "music")
- if not path.isdir(musicpath):
diff --git a/games-simulation/singularity/singularity-0.26a.ebuild b/games-simulation/singularity/singularity-0.26a.ebuild
deleted file mode 100644
index 6234b30d64ab..000000000000
--- a/games-simulation/singularity/singularity-0.26a.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/singularity/singularity-0.26a.ebuild,v 1.4 2008/02/14 03:58:08 mr_bones_ Exp $
-
-inherit eutils games
-
-MUSIC=endgame-${PN}-music-005
-
-DESCRIPTION="A simulation of a true AI. Go from computer to computer, pursued by the entire world. Keep hidden, and you might have a chance."
-HOMEPAGE="http://www.emhsoft.com/singularity/"
-SRC_URI="http://www.emhsoft.com/singularity/${PN}_${PV}.tar.gz
- music? ( http://endgame-singularity.googlecode.com/files/${MUSIC}.zip )"
-
-LICENSE="GPL-2 CCPL-Attribution-ShareAlike-2.5"
-SLOT="0"
-KEYWORDS="~amd64 x86"
-IUSE="music"
-
-RDEPEND="dev-python/pygame"
-DEPEND="${RDEPEND}
- app-arch/unzip"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- rm code/*.pyc data/*.html # Remove unecessary files
- epatch "${FILESDIR}/${P}-musicdir.patch"
-}
-
-src_install() {
- insinto "${GAMES_DATADIR}/${PN}"
- doins -r code data || die "doins failed"
- if use music ; then
- doins -r ../${MUSIC}/music || die "doins failed"
- fi
- games_make_wrapper singularity "python ./singularity.py" "${GAMES_DATADIR}/${PN}/code"
- dodoc README.txt TODO Changelog AUTHORS
- prepgamesdirs
-}