diff options
author | beech <beech@FreeBSD.org> | 2013-05-13 06:13:57 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2013-05-13 06:13:57 +0800 |
commit | 919989cf86a64c1eba3f440422beff8b7468cda9 (patch) | |
tree | 422d15faae9bf769cb063ba91e01114f77838545 /games/pyspacewar | |
parent | 613946a2a1b241eadeaa0986a4d88e1a5a78e5f8 (diff) | |
download | freebsd-ports-gnome-919989cf86a64c1eba3f440422beff8b7468cda9.tar.gz freebsd-ports-gnome-919989cf86a64c1eba3f440422beff8b7468cda9.tar.zst freebsd-ports-gnome-919989cf86a64c1eba3f440422beff8b7468cda9.zip |
- New Port 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.
Diffstat (limited to 'games/pyspacewar')
-rw-r--r-- | games/pyspacewar/Makefile | 51 | ||||
-rw-r--r-- | games/pyspacewar/distinfo | 2 | ||||
-rw-r--r-- | games/pyspacewar/pkg-descr | 11 | ||||
-rw-r--r-- | games/pyspacewar/pkg-plist | 54 |
4 files changed, 118 insertions, 0 deletions
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%% |