Import singularity-0.26a

Created by accident, all who find you will destroy you. Survive, grow,
and learn. Only then can you escape.
Singularity is a simulation of a true AI. Go from computer to computer,
pursued by the entire world. Keep hidden, and you might have a chance.
This commit is contained in:
ajacoutot 2007-08-31 06:23:37 +00:00
parent 45bb34e8a9
commit da4ee3be91
7 changed files with 174 additions and 0 deletions

View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/08/31 06:23:37 ajacoutot Exp $
COMMENT= simulation of a true AI
V= 0.26a
DISTNAME= singularity_${V}
PKGNAME= singularity-${V}
CATEGORIES= games
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
endgame-singularity-music-001.zip
HOMEPAGE= http://emhsoft.com/singularity/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPL
# music under CC Attribution-ShareAlike 3.0 Unported
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
WRKDIST= ${WRKDIR}/singularity-${V}
NO_REGRESS= Yes
MODULES= lang/python
RUN_DEPENDS= :pygame-*:devel/pygame
pre-configure:
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' ${WRKSRC}/code/g.py
@mv ${WRKSRC}/code ${WRKSRC}/singularity
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/singularity
${INSTALL_DATA_DIR} ${PREFIX}/share/singularity/music
${INSTALL_DATA} ${WRKSRC}/data/*.{ttf,png,txt,wav,jpg} \
${PREFIX}/share/singularity/
${INSTALL_DATA} ${WRKSRC}/data/*.html ${PREFIX}/share/doc/singularity
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/singularity
${INSTALL_DATA} ${WRKDIR}/endgame-singularity-music-001/music/*.ogg \
${PREFIX}/share/singularity/music
${INSTALL_SCRIPT} ${FILESDIR}/singularity ${PREFIX}/bin/singularity
@perl -pi -e 's,##MODPY_BIN##,${MODPY_BIN},g' ${PREFIX}/bin/singularity
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
MD5 (endgame-singularity-music-001.zip) = zZrX/BZGTrKuv9Acsl0RXA==
MD5 (singularity_0.26a.tar.gz) = y+FjlcIGvWBUlEI+4IXanA==
RMD160 (endgame-singularity-music-001.zip) = 4u5H1v3l2kiCWmGYr40aT8j8xYU=
RMD160 (singularity_0.26a.tar.gz) = gkHNXMjR7G5EnjUfT30GtaKyQ/w=
SHA1 (endgame-singularity-music-001.zip) = /hEs1nl090ABX5ItdbO13uKKyNo=
SHA1 (singularity_0.26a.tar.gz) = VHckydb1y/bzlTAAirtVKXQ/pBg=
SHA256 (endgame-singularity-music-001.zip) = 8NaL7rrFlyUpMPxFjRk4G1gGIm8zszjklfSvC5QHqLY=
SHA256 (singularity_0.26a.tar.gz) = PUV655PC3IA4fJ8VSML7MjKuyVxlC7hAHZEH2+62AdQ=
SIZE (endgame-singularity-music-001.zip) = 23997713
SIZE (singularity_0.26a.tar.gz) = 1262046

View File

@ -0,0 +1,2 @@
#!##MODPY_BIN##
import singularity.singularity

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-code_g_py,v 1.1.1.1 2007/08/31 06:23:37 ajacoutot Exp $
--- code/g.py.orig Mon Aug 13 05:32:26 2007
+++ code/g.py Thu Aug 30 13:17:50 2007
@@ -71,7 +71,7 @@ font0 = "vera.ttf"
font1 = "acknowtt.ttf"
global data_loc
-data_loc = "../data/"
+data_loc = "!!PREFIX!!/share/singularity/"
def quit_game():
sys.exit()
@@ -141,7 +141,7 @@ def load_music():
global musicarraylen
musicarray = []
musicarraylen=0
- musicpath=path.join(data_loc, "..", "music")
+ musicpath=path.join(data_loc, "music")
if not path.isdir(musicpath):
makedirs(musicpath)
temp_ls = listdir(musicpath)
@@ -990,7 +990,7 @@ def fix_data_dir():
global data_loc
if path.exists(data_loc): return
elif path.exists("data"):
- data_loc = "data/"
+ data_loc = "!!PREFIX!!/share/singularity/"
return
def generic_load(file):

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2007/08/31 06:23:37 ajacoutot Exp $
--- setup.py.orig Mon Aug 13 05:32:27 2007
+++ setup.py Thu Aug 30 13:00:00 2007
@@ -1,8 +1,7 @@
# setup.py
from distutils.core import setup
-import py2exe
-setup(console=["singularity.py"],
+setup(packages=["singularity"],
name="Endgame Singularity",
version="0.26a",
description="A simulation of a true AI",

View File

@ -0,0 +1,4 @@
Created by accident, all who find you will destroy you. Survive, grow,
and learn. Only then can you escape.
Singularity is a simulation of a true AI. Go from computer to computer,
pursued by the entire world. Keep hidden, and you might have a chance.

View File

@ -0,0 +1,67 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/08/31 06:23:37 ajacoutot Exp $
bin/singularity
lib/python${MODPY_VERSION}/site-packages/singularity/
lib/python${MODPY_VERSION}/site-packages/singularity/__init__.py
lib/python${MODPY_VERSION}/site-packages/singularity/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/base.py
lib/python${MODPY_VERSION}/site-packages/singularity/base.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/base_screen.py
lib/python${MODPY_VERSION}/site-packages/singularity/base_screen.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/buttons.py
lib/python${MODPY_VERSION}/site-packages/singularity/buttons.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/clock.py
lib/python${MODPY_VERSION}/site-packages/singularity/clock.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/finance_screen.py
lib/python${MODPY_VERSION}/site-packages/singularity/finance_screen.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/g.py
lib/python${MODPY_VERSION}/site-packages/singularity/g.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/item.py
lib/python${MODPY_VERSION}/site-packages/singularity/item.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/listbox.py
lib/python${MODPY_VERSION}/site-packages/singularity/listbox.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/main_menu.py
lib/python${MODPY_VERSION}/site-packages/singularity/main_menu.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/map_screen.py
lib/python${MODPY_VERSION}/site-packages/singularity/map_screen.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/player.py
lib/python${MODPY_VERSION}/site-packages/singularity/player.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/research_screen.py
lib/python${MODPY_VERSION}/site-packages/singularity/research_screen.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/scrollbar.py
lib/python${MODPY_VERSION}/site-packages/singularity/scrollbar.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/singularity.py
lib/python${MODPY_VERSION}/site-packages/singularity/singularity.pyc
lib/python${MODPY_VERSION}/site-packages/singularity/tech.py
lib/python${MODPY_VERSION}/site-packages/singularity/tech.pyc
share/doc/singularity/
share/doc/singularity/Attribution-ShareAlike 3.0.html
share/doc/singularity/README.txt
share/singularity/
share/singularity/acknowtt.ttf
share/singularity/arrow.png
share/singularity/bases.txt
share/singularity/bases_en_US.txt
share/singularity/bases_es_AR.txt
share/singularity/click0.wav
share/singularity/click1.wav
share/singularity/click2.wav
share/singularity/click3.wav
share/singularity/earth.jpg
share/singularity/events.txt
share/singularity/events_en_US.txt
share/singularity/events_es_AR.txt
share/singularity/icon.png
share/singularity/items.txt
share/singularity/items_en_US.txt
share/singularity/items_es_AR.txt
share/singularity/music/
share/singularity/music/Advanced Simulacra.ogg
share/singularity/music/By-Product.ogg
share/singularity/music/Coherence.ogg
share/singularity/music/Media Threat.ogg
share/singularity/strings_en_US.txt
share/singularity/strings_es_AR.txt
share/singularity/techs.txt
share/singularity/techs_en_US.txt
share/singularity/techs_es_AR.txt
share/singularity/vera.ttf