aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/Makefile1
-rw-r--r--games/pyspacewar/Makefile51
-rw-r--r--games/pyspacewar/distinfo2
-rw-r--r--games/pyspacewar/pkg-descr11
-rw-r--r--games/pyspacewar/pkg-plist54
5 files changed, 119 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 9ac1c878477f..83a457df9ce9 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -770,6 +770,7 @@
SUBDIR += pysol-cardsets
SUBDIR += pysol-music
SUBDIR += pysolfc
+ SUBDIR += pyspacewar
SUBDIR += pysycache
SUBDIR += pysycache-lang
SUBDIR += pysycache-themes
diff --git a/games/pyspacewar/Makefile b/games/pyspacewar/Makefile
new file mode 100644
index 000000000000..dc3d2a1a13fc
--- /dev/null
+++ b/games/pyspacewar/Makefile
@@ -0,0 +1,51 @@
+# Created by: nemysis <nemysis@gmx.ch>
+# $FreeBSD$
+
+PORTNAME= pyspacewar
+PORTVERSION= 0.9.7
+CATEGORIES= games python
+MASTER_SITES= http://mg.pov.lt/${PORTNAME}/\
+ LOCAL/beech
+DIST_SUBDIR= python
+
+MAINTAINER= nemysis@gmx.ch
+COMMENT= Two ships duel in a gravity field
+
+LICENSE= GPLv2
+
+RUN_DEPENDS= ${PYGAME}
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+NO_BUILD= yes
+
+PORTDOCS= NEWS.txt README.txt TODO.txt performance-notes.txt
+
+INSTALLS_ICONS= yes
+ICON_SIZES= 16x16 22x22 32x32 48x48
+
+DESKTOP_ENTRIES="PySpaceWar" "${COMMENT}" ${PORTNAME} \
+ "${PORTNAME}" "Game;ArcadeGame;" false
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.for s in 16 22 32 48
+ @cd ${WRKSRC}/src/pyspacewar/icons && \
+ ${MV} ${PORTNAME}${s}.png ${PORTNAME}_${s}x${s}.png
+.endfor
+
+post-install:
+.for s in ${ICON_SIZES}
+ @${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
+ ${INSTALL_DATA} ${WRKSRC}/src/pyspacewar/icons/${PORTNAME}_${s}.png \
+ ${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+.endfor
+ @${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
+
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/pyspacewar/distinfo b/games/pyspacewar/distinfo
new file mode 100644
index 000000000000..10ce47d7417a
--- /dev/null
+++ b/games/pyspacewar/distinfo
@@ -0,0 +1,2 @@
+SHA256 (python/pyspacewar-0.9.7.tar.gz) = 964d59ff8d42a6ba235ea1f616c576757ba3c232e349af78869e024b963c8b15
+SIZE (python/pyspacewar-0.9.7.tar.gz) = 229319
diff --git a/games/pyspacewar/pkg-descr b/games/pyspacewar/pkg-descr
new file mode 100644
index 000000000000..451f930f5b4a
--- /dev/null
+++ b/games/pyspacewar/pkg-descr
@@ -0,0 +1,11 @@
+PySpaceWar
+
+Two ships duel in a gravity field. Gravity doesn't affect the ships
+themselves (which have spanking new anti-gravity devices), but it affects
+missiles launced by the ships.
+
+You can play against the computer, or two players can play with one keyboard.
+There is also a Gravity Wars mode, where the two ships do not move, and the
+players repeatedly specify the direction and velocity of their missiles.
+
+WWW: http://mg.pov.lt/pyspacewar/
diff --git a/games/pyspacewar/pkg-plist b/games/pyspacewar/pkg-plist
new file mode 100644
index 000000000000..957b79655a30
--- /dev/null
+++ b/games/pyspacewar/pkg-plist
@@ -0,0 +1,54 @@
+bin/pyspacewar
+%%PYTHON_SITELIBDIR%%/pyspacewar/__init__.py
+%%PYTHON_SITELIBDIR%%/pyspacewar/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pyspacewar/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pyspacewar/ai.py
+%%PYTHON_SITELIBDIR%%/pyspacewar/ai.pyc
+%%PYTHON_SITELIBDIR%%/pyspacewar/ai.pyo
+%%PYTHON_SITELIBDIR%%/pyspacewar/game.py
+%%PYTHON_SITELIBDIR%%/pyspacewar/game.pyc
+%%PYTHON_SITELIBDIR%%/pyspacewar/game.pyo
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/README.txt
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/background.jpg
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_D3.png
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_E0.png
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_G0.png
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_G2.png
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_I0.png
+%%PYTHON_SITELIBDIR%%/pyspacewar/images/title.png
+%%PYTHON_SITELIBDIR%%/pyspacewar/main.py
+%%PYTHON_SITELIBDIR%%/pyspacewar/main.pyc
+%%PYTHON_SITELIBDIR%%/pyspacewar/main.pyo
+%%PYTHON_SITELIBDIR%%/pyspacewar/music/README.txt
+%%PYTHON_SITELIBDIR%%/pyspacewar/music/music.ini
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Grenade2.au
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Grenade2.wav
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Gun_Silencer.wav
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Pink_Noise1.au
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Pink_Noise1.wav
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/README.txt
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/bomb.wav
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/briefcs1.wav
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/coin2.wav
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/electricshock.wav
+%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/sounds.ini
+%%PYTHON_SITELIBDIR%%/pyspacewar/ui.py
+%%PYTHON_SITELIBDIR%%/pyspacewar/ui.pyc
+%%PYTHON_SITELIBDIR%%/pyspacewar/ui.pyo
+%%PYTHON_SITELIBDIR%%/pyspacewar/version.py
+%%PYTHON_SITELIBDIR%%/pyspacewar/version.pyc
+%%PYTHON_SITELIBDIR%%/pyspacewar/version.pyo
+%%PYTHON_SITELIBDIR%%/pyspacewar/world.py
+%%PYTHON_SITELIBDIR%%/pyspacewar/world.pyc
+%%PYTHON_SITELIBDIR%%/pyspacewar/world.pyo
+share/icons/hicolor/16x16/apps/pyspacewar.png
+share/icons/hicolor/22x22/apps/pyspacewar.png
+share/icons/hicolor/32x32/apps/pyspacewar.png
+share/icons/hicolor/48x48/apps/pyspacewar.png
+share/pixmaps/pyspacewar.png
+@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/sounds
+@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/music
+@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/images
+@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar
+@dirrmtry %%PYTHON_SITELIBDIR%%
+@dirrmtry %%PYTHON_LIBDIR%%