aboutsummaryrefslogtreecommitdiffstats
path: root/games/bombz
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-10-14 21:48:33 +0800
committernemysis <nemysis@FreeBSD.org>2013-10-14 21:48:33 +0800
commit000429d4d7f020ce1e068316ab97bd0222a7faf8 (patch)
tree97f856d34322494bd7c6d5578dcc370c4c2e877c /games/bombz
parent67c5e4a5f85212b1cd4866cd8836697691336590 (diff)
downloadfreebsd-ports-gnome-000429d4d7f020ce1e068316ab97bd0222a7faf8.tar.gz
freebsd-ports-gnome-000429d4d7f020ce1e068316ab97bd0222a7faf8.tar.zst
freebsd-ports-gnome-000429d4d7f020ce1e068316ab97bd0222a7faf8.zip
Bombz is a simple 2D puzzle game. It doesn't really have a plot. The object is
to blow up all the bombs on each level then escape off the edge of the screen. To blow up a bomb, push it to where you want to cause an explosion, then collect a match (originally a detonator in the Archimedes version) and touch the bomb again and quickly get out of the way. A bomb destroys everything surrounding it except the metallic walls; if it blows up another bomb, that takes out everything around it too so you can set off chain reactions. WWW: http://bombz.sourceforge.net/ PR: ports/171576 Submitted by: nemysis (self) Approved by: wg/pawel (mentors)
Diffstat (limited to 'games/bombz')
-rw-r--r--games/bombz/Makefile60
-rw-r--r--games/bombz/distinfo4
-rw-r--r--games/bombz/files/bombz.in7
-rw-r--r--games/bombz/pkg-descr9
-rw-r--r--games/bombz/pkg-plist160
5 files changed, 240 insertions, 0 deletions
diff --git a/games/bombz/Makefile b/games/bombz/Makefile
new file mode 100644
index 000000000000..d5947aa288a8
--- /dev/null
+++ b/games/bombz/Makefile
@@ -0,0 +1,60 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= bombz
+PORTVERSION= 0.2
+CATEGORIES= games python
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/ \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+DIST_SUBDIR= python
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= nemysis@FreeBSD.org
+COMMENT= Simple 2D puzzle game with bombs
+
+LICENSE= GPLv2
+
+RUN_DEPENDS= ${PYGAME}
+
+WRKSRC= ${WRKDIR}/Bombz
+
+USE_ZIP= yes
+USE_SDL= sdl image mixer
+INSTALLS_ICONS= yes
+USE_DOS2UNIX= *.txt
+USE_PYTHON= yes
+
+PORTDOCS= ChangeLog readme.txt
+
+SUB_FILES= ${PORTNAME}
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -i '' '/words = name.split()/,/self.name = name/s/^/#/' \
+ ${WRKSRC}/bombz/joy.py
+
+do-build:
+ @${PYTHON_CMD} -m compileall ${WRKSRC}
+ @${PYTHON_CMD} -O -m compileall ${WRKSRC}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+.for d in bombz levels pngs sounds FreeSans.ttf
+ @(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+.for d in *.py *.pyc *.pyo
+ @(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/applications/
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/games/bombz/distinfo b/games/bombz/distinfo
new file mode 100644
index 000000000000..8223d73c43dd
--- /dev/null
+++ b/games/bombz/distinfo
@@ -0,0 +1,4 @@
+SHA256 (python/bombz-0.2.zip) = 95d6d8c54296bfddfaec2a156690fc1ac242f7e18d99ae742709aec1389ad096
+SIZE (python/bombz-0.2.zip) = 1287231
+SHA256 (python/bombz.png) = 9b4734eba37d17bb7e9b3ca38e3690d018860b9ff4a45e7eaace63f6e9c3b978
+SIZE (python/bombz.png) = 1423
diff --git a/games/bombz/files/bombz.in b/games/bombz/files/bombz.in
new file mode 100644
index 000000000000..5187527e69ea
--- /dev/null
+++ b/games/bombz/files/bombz.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec ./bombz.py "${@}"
diff --git a/games/bombz/pkg-descr b/games/bombz/pkg-descr
new file mode 100644
index 000000000000..f32f1f71449b
--- /dev/null
+++ b/games/bombz/pkg-descr
@@ -0,0 +1,9 @@
+Bombz is a simple 2D puzzle game. It doesn't really have a plot. The object is
+to blow up all the bombs on each level then escape off the edge of the screen.
+To blow up a bomb, push it to where you want to cause an explosion, then collect
+a match (originally a detonator in the Archimedes version) and touch the bomb
+again and quickly get out of the way. A bomb destroys everything surrounding it
+except the metallic walls; if it blows up another bomb, that takes out
+everything around it too so you can set off chain reactions.
+
+WWW: http://bombz.sourceforge.net/
diff --git a/games/bombz/pkg-plist b/games/bombz/pkg-plist
new file mode 100644
index 000000000000..caa1f0028942
--- /dev/null
+++ b/games/bombz/pkg-plist
@@ -0,0 +1,160 @@
+bin/bombz
+share/applications/bombz.desktop
+%%DATADIR%%/FreeSans.ttf
+%%DATADIR%%/bombz.py
+%%DATADIR%%/bombz.pyc
+%%DATADIR%%/bombz.pyo
+%%DATADIR%%/bombz/__init__.py
+%%DATADIR%%/bombz/__init__.pyc
+%%DATADIR%%/bombz/__init__.pyo
+%%DATADIR%%/bombz/appdir.py
+%%DATADIR%%/bombz/appdir.pyc
+%%DATADIR%%/bombz/appdir.pyo
+%%DATADIR%%/bombz/bitmaps.py
+%%DATADIR%%/bombz/bitmaps.pyc
+%%DATADIR%%/bombz/bitmaps.pyo
+%%DATADIR%%/bombz/board.py
+%%DATADIR%%/bombz/board.pyc
+%%DATADIR%%/bombz/board.pyo
+%%DATADIR%%/bombz/controls.py
+%%DATADIR%%/bombz/controls.pyc
+%%DATADIR%%/bombz/controls.pyo
+%%DATADIR%%/bombz/customevents.py
+%%DATADIR%%/bombz/customevents.pyc
+%%DATADIR%%/bombz/customevents.pyo
+%%DATADIR%%/bombz/gamefont.py
+%%DATADIR%%/bombz/gamefont.pyc
+%%DATADIR%%/bombz/gamefont.pyo
+%%DATADIR%%/bombz/joy.py
+%%DATADIR%%/bombz/joy.pyc
+%%DATADIR%%/bombz/joy.pyo
+%%DATADIR%%/bombz/joymenu.py
+%%DATADIR%%/bombz/joymenu.pyc
+%%DATADIR%%/bombz/joymenu.pyo
+%%DATADIR%%/bombz/key.py
+%%DATADIR%%/bombz/key.pyc
+%%DATADIR%%/bombz/key.pyo
+%%DATADIR%%/bombz/keymenu.py
+%%DATADIR%%/bombz/keymenu.pyc
+%%DATADIR%%/bombz/keymenu.pyo
+%%DATADIR%%/bombz/levels.py
+%%DATADIR%%/bombz/levels.pyc
+%%DATADIR%%/bombz/levels.pyo
+%%DATADIR%%/bombz/menu.py
+%%DATADIR%%/bombz/menu.pyc
+%%DATADIR%%/bombz/menu.pyo
+%%DATADIR%%/bombz/options.py
+%%DATADIR%%/bombz/options.pyc
+%%DATADIR%%/bombz/options.pyo
+%%DATADIR%%/bombz/optsmenu.py
+%%DATADIR%%/bombz/optsmenu.pyc
+%%DATADIR%%/bombz/optsmenu.pyo
+%%DATADIR%%/bombz/particles.py
+%%DATADIR%%/bombz/particles.pyc
+%%DATADIR%%/bombz/particles.pyo
+%%DATADIR%%/bombz/pusher.py
+%%DATADIR%%/bombz/pusher.pyc
+%%DATADIR%%/bombz/pusher.pyo
+%%DATADIR%%/bombz/sounds.py
+%%DATADIR%%/bombz/sounds.pyc
+%%DATADIR%%/bombz/sounds.pyo
+%%DATADIR%%/bombz/userdir.py
+%%DATADIR%%/bombz/userdir.pyc
+%%DATADIR%%/bombz/userdir.pyo
+%%DATADIR%%/levels/01
+%%DATADIR%%/levels/02
+%%DATADIR%%/levels/03
+%%DATADIR%%/levels/04
+%%DATADIR%%/levels/05
+%%DATADIR%%/levels/06
+%%DATADIR%%/levels/07
+%%DATADIR%%/levels/08
+%%DATADIR%%/levels/09
+%%DATADIR%%/levels/10
+%%DATADIR%%/levels/11
+%%DATADIR%%/levels/12
+%%DATADIR%%/levels/13
+%%DATADIR%%/levels/14
+%%DATADIR%%/levels/15
+%%DATADIR%%/levels/16
+%%DATADIR%%/levels/17
+%%DATADIR%%/levels/18
+%%DATADIR%%/levels/19
+%%DATADIR%%/levels/20
+%%DATADIR%%/levels/21
+%%DATADIR%%/levels/22
+%%DATADIR%%/levels/23
+%%DATADIR%%/levels/24
+%%DATADIR%%/levels/25
+%%DATADIR%%/levels/26
+%%DATADIR%%/levels/27
+%%DATADIR%%/levels/28
+%%DATADIR%%/levels/29
+%%DATADIR%%/levels/30
+%%DATADIR%%/levels/31
+%%DATADIR%%/levels/32
+%%DATADIR%%/levels/33
+%%DATADIR%%/levels/34
+%%DATADIR%%/levels/35
+%%DATADIR%%/levels/36
+%%DATADIR%%/levels/37
+%%DATADIR%%/levels/38
+%%DATADIR%%/levels/39
+%%DATADIR%%/levels/40
+%%DATADIR%%/levels/41
+%%DATADIR%%/levels/42
+%%DATADIR%%/pngs/biglogo.png
+%%DATADIR%%/pngs/blank.png
+%%DATADIR%%/pngs/bomb1.png
+%%DATADIR%%/pngs/bomb2.png
+%%DATADIR%%/pngs/chrome00.png
+%%DATADIR%%/pngs/chrome01.png
+%%DATADIR%%/pngs/chrome02.png
+%%DATADIR%%/pngs/chrome03.png
+%%DATADIR%%/pngs/chrome04.png
+%%DATADIR%%/pngs/chrome05.png
+%%DATADIR%%/pngs/chrome06.png
+%%DATADIR%%/pngs/chrome07.png
+%%DATADIR%%/pngs/chrome08.png
+%%DATADIR%%/pngs/chrome09.png
+%%DATADIR%%/pngs/chrome10.png
+%%DATADIR%%/pngs/chrome11.png
+%%DATADIR%%/pngs/chrome12.png
+%%DATADIR%%/pngs/chrome13.png
+%%DATADIR%%/pngs/chrome14.png
+%%DATADIR%%/pngs/chrome15.png
+%%DATADIR%%/pngs/earth0.png
+%%DATADIR%%/pngs/earth1.png
+%%DATADIR%%/pngs/earth2.png
+%%DATADIR%%/pngs/explo0.png
+%%DATADIR%%/pngs/explo1.png
+%%DATADIR%%/pngs/explo10.png
+%%DATADIR%%/pngs/explo11.png
+%%DATADIR%%/pngs/explo2.png
+%%DATADIR%%/pngs/explo3.png
+%%DATADIR%%/pngs/explo4.png
+%%DATADIR%%/pngs/explo5.png
+%%DATADIR%%/pngs/explo6.png
+%%DATADIR%%/pngs/explo7.png
+%%DATADIR%%/pngs/explo8.png
+%%DATADIR%%/pngs/explo9.png
+%%DATADIR%%/pngs/floor.png
+%%DATADIR%%/pngs/mandown.png
+%%DATADIR%%/pngs/manleft.png
+%%DATADIR%%/pngs/manright.png
+%%DATADIR%%/pngs/manup.png
+%%DATADIR%%/pngs/match.png
+%%DATADIR%%/pngs/picket.png
+%%DATADIR%%/sounds/bomb.wav
+%%DATADIR%%/sounds/credits.txt
+%%DATADIR%%/sounds/fuse.wav
+%%DATADIR%%/sounds/match.wav
+%%DATADIR%%/sounds/pip1.wav
+%%DATADIR%%/sounds/pip2.wav
+share/pixmaps/bombz.png
+@dirrm %%DATADIR%%/sounds
+@dirrm %%DATADIR%%/pngs
+@dirrm %%DATADIR%%/levels
+@dirrm %%DATADIR%%/bombz
+@dirrm %%DATADIR%%
+@dirrmtry share/applications