aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-06-14 09:00:58 +0800
committerdanilo <danilo@FreeBSD.org>2014-06-14 09:00:58 +0800
commitb64d7ee8ecf139198ec950e3d93be56428d53a5b (patch)
tree3fc8b24b6b90a8ff0257cc678a2c2ad01cc36e33 /games
parent66d86ed9981752dd1ce60bba30cc7208aeb16acd (diff)
downloadfreebsd-ports-gnome-b64d7ee8ecf139198ec950e3d93be56428d53a5b.tar.gz
freebsd-ports-gnome-b64d7ee8ecf139198ec950e3d93be56428d53a5b.tar.zst
freebsd-ports-gnome-b64d7ee8ecf139198ec950e3d93be56428d53a5b.zip
- Update MAINTAINER email
- Add LICENSE - Add stage support - Add a desktop entry - Improve WWW PR: ports/191000 Submitted by: Benjamin Lutz <mail@maxlor.com>
Diffstat (limited to 'games')
-rw-r--r--games/solarwolf/Makefile29
-rw-r--r--games/solarwolf/pkg-descr2
-rw-r--r--games/solarwolf/pkg-plist25
3 files changed, 25 insertions, 31 deletions
diff --git a/games/solarwolf/Makefile b/games/solarwolf/Makefile
index f437c0529d1e..a031a9df2137 100644
--- a/games/solarwolf/Makefile
+++ b/games/solarwolf/Makefile
@@ -3,33 +3,32 @@
PORTNAME= solarwolf
PORTVERSION= 1.5
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= http://www.pygame.org/shredwheat/solarwolf/
-MAINTAINER= benlutz@datacomm.ch
+MAINTAINER= mail@maxlor.com
COMMENT= Action/arcade game originally based of SolarFox on the Atari 2600
+LICENSE= LGPL21
+
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
-USE_PYTHON= yes
-MAN6= solarwolf.6
+USE_PYTHON= 2
-NO_STAGE= yes
-post-extract:
- ${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755
- ${CHMOD} 755 ${WRKSRC}/solarwolf.py
+DESKTOP_ENTRIES= "SolarWolf" "${COMMENT}" "solarwolf" \
+ "solarwolf" "Game;ArcadeGame;" false
do-build:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
- @${MKDIR} ${PREFIX}/share/solarwolf
- (cd ${WRKSRC}; tar -cf - --exclude ".xvpics" .) | \
- (cd ${PREFIX}/share/solarwolf; tar --unlink -xf -)
- @printf "#!/bin/sh\ncd ${PREFIX}/share/solarwolf && \
- exec ${PYTHON_CMD} ${PREFIX}/share/solarwolf/solarwolf.py\n" > ${WRKDIR}/solarwolf.sh
- @${INSTALL_SCRIPT} ${WRKDIR}/solarwolf.sh ${PREFIX}/bin/solarwolf
- @${GUNZIP_CMD} -c ${WRKSRC}/dist/${MAN6}.gz > ${MAN6PREFIX}/man/man6/${MAN6}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/solarwolf
+ (cd ${WRKSRC}; tar -cf - --exclude ".xvpics" --exclude "dist" .) | \
+ (cd ${STAGEDIR}${PREFIX}/share/solarwolf; tar --unlink -xf -)
+ ${PRINTF} "#!/bin/sh\nexec ${PYTHON_CMD} ${PREFIX}/share/solarwolf/solarwolf.py\n" \
+ > ${STAGEDIR}${PREFIX}/bin/solarwolf
+ ${CP} ${WRKSRC}/dist/solarwolf.6.gz ${STAGEDIR}${MAN6PREFIX}/man/man6/
+ ${CP} ${WRKSRC}/dist/solarwolf.png ${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>
diff --git a/games/solarwolf/pkg-descr b/games/solarwolf/pkg-descr
index 0b3a9ddb5270..0a30543591a7 100644
--- a/games/solarwolf/pkg-descr
+++ b/games/solarwolf/pkg-descr
@@ -9,4 +9,4 @@ supports input from keyboard or joystick.
The game is originally based of SolarFox on the Atari 2600.
-WWW: http://www.pygame.org/shredwheat/solarwolf/
+WWW: http://www.pygame.org/shredwheat/solarwolf/
diff --git a/games/solarwolf/pkg-plist b/games/solarwolf/pkg-plist
index 3a8baba88c6e..656ee7a20f7a 100644
--- a/games/solarwolf/pkg-plist
+++ b/games/solarwolf/pkg-plist
@@ -1,4 +1,8 @@
+@mode 555
bin/solarwolf
+@mode
+man/man6/solarwolf.6.gz
+share/pixmaps/solarwolf.png
%%DATADIR%%/code/allmodules.py
%%DATADIR%%/code/allmodules.pyc
%%DATADIR%%/code/game.py
@@ -162,22 +166,13 @@ bin/solarwolf
%%DATADIR%%/data/solarwolf.pal
%%DATADIR%%/data/spikeball.png
%%DATADIR%%/data/star.gif
-%%DATADIR%%/dist/SolarWolf Website.url
-%%DATADIR%%/dist/box.ico
-%%DATADIR%%/dist/solarwolf.6.gz
-%%DATADIR%%/dist/solarwolf.desktop
-%%DATADIR%%/dist/solarwolf.iss
-%%DATADIR%%/dist/solarwolf.png
-%%DATADIR%%/dist/solarwolf.xpm
-%%DATADIR%%/dist/wolf2exe.py
-%%DATADIR%%/dist/wolf2exe.pyc
%%DATADIR%%/lgpl.txt
%%DATADIR%%/readme.txt
%%DATADIR%%/solarwolf.py
%%DATADIR%%/solarwolf.pyc
-@dirrm %%DATADIR%%/dist
-@dirrm %%DATADIR%%/data/music
-@dirrm %%DATADIR%%/data/audio
-@dirrm %%DATADIR%%/data
-@dirrm %%DATADIR%%/code
-@dirrm %%DATADIR%%
+@mode 755
+@dirrmtry %%DATADIR%%/code
+@dirrmtry %%DATADIR%%/data/audio
+@dirrmtry %%DATADIR%%/data/music
+@dirrmtry %%DATADIR%%/data
+@dirrmtry %%DATADIR%%