- Bump portrevision

- Trim master sites, add icon
- Trim to use default permissions for licenses, if not defined
- Trim dependency for ${PYGAME}
- Trim docs, not install COPYING INSTALL into DOCSDIR and mute dir install
- Add Desktop entry file
- Trim files/patch-Makefile for right installation
- Trim pkg-plist, share/games/monsterz --> DATADIR

Approved by:	wxs (mentor)
This commit is contained in:
Rusmir Dusko 2013-08-19 16:37:37 +00:00
parent d521cad834
commit 20e736bcd5
4 changed files with 65 additions and 45 deletions

View File

@ -3,9 +3,13 @@
PORTNAME= monsterz PORTNAME= monsterz
PORTVERSION= 0.7.1 PORTVERSION= 0.7.1
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES= games CATEGORIES= games
MASTER_SITES= http://sam.zoy.org/monsterz/ MASTER_SITES= http://sam.zoy.org/monsterz/ \
SF/nemysisfreebsdp/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= thierry@FreeBSD.org MAINTAINER= thierry@FreeBSD.org
COMMENT= Monsterz - arcade puzzle game COMMENT= Monsterz - arcade puzzle game
@ -13,26 +17,34 @@ COMMENT= Monsterz - arcade puzzle game
LICENSE= WTFPL LICENSE= WTFPL
LICENSE_NAME= Do What The [expletive] You Want To Public License, Version 2 LICENSE_NAME= Do What The [expletive] You Want To Public License, Version 2
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game RUN_DEPENDS= ${PYGAME}
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_PYTHON= yes USE_PYTHON= yes
MAKE_ENV= prefix=${PREFIX} MAKE_ENV= prefix=${PREFIX}
PORTDOCS= AUTHORS README TODO
SCOREDIR= /var/games SCOREDIR= /var/games
PLIST_SUB= SCOREDIR=${SCOREDIR} PLIST_SUB= SCOREDIR=${SCOREDIR}
PORTDOCS= AUTHORS COPYING INSTALL README TODO DESKTOP_ENTRIES="Monsterz" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" false
.include <bsd.port.options.mk>
post-install: post-install:
${STRIP_CMD} ${PREFIX}/games/monsterz .for d in graphics sound
${LN} -sf ${PREFIX}/games/monsterz ${PREFIX}/bin @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz .endfor
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
.if !defined(NOPORTDOCS) @${PYTHON_CMD} -m compileall ${DATADIR}
${MKDIR} ${DOCSDIR} @${PYTHON_CMD} -O -m compileall ${DATADIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif .endif

View File

@ -1,2 +1,4 @@
SHA256 (monsterz-0.7.1.tar.gz) = 50828b8fa26d107bcc2bd134328f83c905b9f5e124846bdf239daf0eed34973d SHA256 (monsterz-0.7.1.tar.gz) = 50828b8fa26d107bcc2bd134328f83c905b9f5e124846bdf239daf0eed34973d
SIZE (monsterz-0.7.1.tar.gz) = 1879537 SIZE (monsterz-0.7.1.tar.gz) = 1879537
SHA256 (monsterz.png) = 64f9533f252db001bdaec34e1c4432a6d236a8084899d0adc22ad90d01eedae1
SIZE (monsterz.png) = 4849

View File

@ -1,12 +1,18 @@
--- Makefile.orig 2007-12-17 23:05:00.000000000 +0100 --- Makefile.orig 2007-12-17 23:05:00.000000000 +0100
+++ Makefile 2013-05-25 16:56:29.000000000 +0200 +++ Makefile 2013-08-19 08:57:30.000000000 +0200
@@ -1,5 +1,5 @@ @@ -1,8 +1,8 @@
-prefix = /usr/local -prefix = /usr/local
+prefix?= /usr/local -gamesdir = ${prefix}/games
gamesdir = ${prefix}/games -datadir = ${prefix}/share
datadir = ${prefix}/share -pkgdatadir = $(datadir)/games/monsterz
pkgdatadir = $(datadir)/games/monsterz +prefix? = /usr/local
+gamesdir = ${prefix}/bin
+datadir = ${prefix}/share/monsterz
+pkgdatadir = $(datadir)
scoredir = /var/games
scorefile = $(scoredir)/monsterz
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
all: monsterz all: monsterz

View File

@ -1,30 +1,30 @@
bin/monsterz bin/monsterz
games/monsterz %%DATADIR%%/graphics/background.png
share/games/monsterz/graphics/background.png %%DATADIR%%/graphics/bigtiles.png
share/games/monsterz/graphics/bigtiles.png %%DATADIR%%/graphics/board.png
share/games/monsterz/graphics/board.png %%DATADIR%%/graphics/graphics.svg
share/games/monsterz/graphics/icon.png %%DATADIR%%/graphics/icon.png
share/games/monsterz/graphics/logo.png %%DATADIR%%/graphics/logo.png
share/games/monsterz/graphics/tiles.png %%DATADIR%%/graphics/pattern.png
share/games/monsterz/monsterz.py %%DATADIR%%/graphics/tiles.png
share/games/monsterz/monsterz.pyc %%DATADIR%%/monsterz.py
share/games/monsterz/monsterz.pyo %%DATADIR%%/monsterz.pyc
share/games/monsterz/sound/applause.wav %%DATADIR%%/monsterz.pyo
share/games/monsterz/sound/boing.wav %%DATADIR%%/sound/applause.wav
share/games/monsterz/sound/click.wav %%DATADIR%%/sound/boing.wav
share/games/monsterz/sound/ding.wav %%DATADIR%%/sound/click.wav
share/games/monsterz/sound/duh.wav %%DATADIR%%/sound/ding.wav
share/games/monsterz/sound/grunt.wav %%DATADIR%%/sound/duh.wav
share/games/monsterz/sound/laugh.wav %%DATADIR%%/sound/grunt.wav
share/games/monsterz/sound/music.s3m %%DATADIR%%/sound/laugh.wav
share/games/monsterz/sound/pop.wav %%DATADIR%%/sound/music.s3m
share/games/monsterz/sound/warning.wav %%DATADIR%%/sound/pop.wav
share/games/monsterz/sound/whip.wav %%DATADIR%%/sound/warning.wav
@dirrm share/games/monsterz/sound %%DATADIR%%/sound/whip.wav
@dirrm share/games/monsterz/graphics share/pixmaps/monsterz.png
@dirrm share/games/monsterz @dirrm %%DATADIR%%/sound
@dirrmtry share/games @dirrm %%DATADIR%%/graphics
@dirrmtry games @dirrm %%DATADIR%%
@exec if [ ! -e %%SCOREDIR%% ] ; then mkdir -p -m 775 %%SCOREDIR%% ; fi @exec if [ ! -e %%SCOREDIR%% ] ; then mkdir -p -m 775 %%SCOREDIR%% ; fi
@exec [ -e %%SCOREDIR%%/monsterz ] || touch %%SCOREDIR%%/monsterz && chmod g+w %%SCOREDIR%%/monsterz && chown root:games %%SCOREDIR%%/monsterz @exec [ -e %%SCOREDIR%%/monsterz ] || touch %%SCOREDIR%%/monsterz && chmod 664 %%SCOREDIR%%/monsterz && chgrp games %%SCOREDIR%%/monsterz
@unexec if [ ! -s %%SCOREDIR%%/monsterz ] ; then rm -f %%SCOREDIR%%/monsterz && rm -r %%SCOREDIR%% || true ; fi @unexec if [ ! -s %%SCOREDIR%%/monsterz ] ; then rm -f %%SCOREDIR%%/monsterz && rm -r %%SCOREDIR%% || true ; fi