Date: Mon, 19 Aug 2013 16:37:37 +0000 (UTC) From: Rusmir Dusko <nemysis@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r325004 - in head/games/monsterz: . files Message-ID: <201308191637.r7JGbbRZ037997@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nemysis Date: Mon Aug 19 16:37:37 2013 New Revision: 325004 URL: http://svnweb.freebsd.org/changeset/ports/325004 Log: - 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) Modified: head/games/monsterz/Makefile head/games/monsterz/distinfo head/games/monsterz/files/patch-Makefile head/games/monsterz/pkg-plist Modified: head/games/monsterz/Makefile ============================================================================== --- head/games/monsterz/Makefile Mon Aug 19 16:31:07 2013 (r325003) +++ head/games/monsterz/Makefile Mon Aug 19 16:37:37 2013 (r325004) @@ -3,9 +3,13 @@ PORTNAME= monsterz PORTVERSION= 0.7.1 -PORTREVISION= 5 +PORTREVISION= 6 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 COMMENT= Monsterz - arcade puzzle game @@ -13,26 +17,34 @@ COMMENT= Monsterz - arcade puzzle game LICENSE= WTFPL LICENSE_NAME= Do What The [expletive] You Want To Public License, Version 2 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:= ${BUILD_DEPENDS} +RUN_DEPENDS= ${PYGAME} USE_PYTHON= yes MAKE_ENV= prefix=${PREFIX} +PORTDOCS= AUTHORS README TODO + SCOREDIR= /var/games 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: - ${STRIP_CMD} ${PREFIX}/games/monsterz - ${LN} -sf ${PREFIX}/games/monsterz ${PREFIX}/bin - @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz - @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} +.for d in graphics sound + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) +.endfor + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR} + @${PYTHON_CMD} -m compileall ${DATADIR} + @${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} .endif Modified: head/games/monsterz/distinfo ============================================================================== --- head/games/monsterz/distinfo Mon Aug 19 16:31:07 2013 (r325003) +++ head/games/monsterz/distinfo Mon Aug 19 16:37:37 2013 (r325004) @@ -1,2 +1,4 @@ SHA256 (monsterz-0.7.1.tar.gz) = 50828b8fa26d107bcc2bd134328f83c905b9f5e124846bdf239daf0eed34973d SIZE (monsterz-0.7.1.tar.gz) = 1879537 +SHA256 (monsterz.png) = 64f9533f252db001bdaec34e1c4432a6d236a8084899d0adc22ad90d01eedae1 +SIZE (monsterz.png) = 4849 Modified: head/games/monsterz/files/patch-Makefile ============================================================================== --- head/games/monsterz/files/patch-Makefile Mon Aug 19 16:31:07 2013 (r325003) +++ head/games/monsterz/files/patch-Makefile Mon Aug 19 16:37:37 2013 (r325004) @@ -1,12 +1,18 @@ --- Makefile.orig 2007-12-17 23:05:00.000000000 +0100 -+++ Makefile 2013-05-25 16:56:29.000000000 +0200 -@@ -1,5 +1,5 @@ ++++ Makefile 2013-08-19 08:57:30.000000000 +0200 +@@ -1,8 +1,8 @@ -prefix = /usr/local -+prefix?= /usr/local - gamesdir = ${prefix}/games - datadir = ${prefix}/share - pkgdatadir = $(datadir)/games/monsterz +-gamesdir = ${prefix}/games +-datadir = ${prefix}/share +-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 @@ all: monsterz Modified: head/games/monsterz/pkg-plist ============================================================================== --- head/games/monsterz/pkg-plist Mon Aug 19 16:31:07 2013 (r325003) +++ head/games/monsterz/pkg-plist Mon Aug 19 16:37:37 2013 (r325004) @@ -1,30 +1,30 @@ bin/monsterz -games/monsterz -share/games/monsterz/graphics/background.png -share/games/monsterz/graphics/bigtiles.png -share/games/monsterz/graphics/board.png -share/games/monsterz/graphics/icon.png -share/games/monsterz/graphics/logo.png -share/games/monsterz/graphics/tiles.png -share/games/monsterz/monsterz.py -share/games/monsterz/monsterz.pyc -share/games/monsterz/monsterz.pyo -share/games/monsterz/sound/applause.wav -share/games/monsterz/sound/boing.wav -share/games/monsterz/sound/click.wav -share/games/monsterz/sound/ding.wav -share/games/monsterz/sound/duh.wav -share/games/monsterz/sound/grunt.wav -share/games/monsterz/sound/laugh.wav -share/games/monsterz/sound/music.s3m -share/games/monsterz/sound/pop.wav -share/games/monsterz/sound/warning.wav -share/games/monsterz/sound/whip.wav -@dirrm share/games/monsterz/sound -@dirrm share/games/monsterz/graphics -@dirrm share/games/monsterz -@dirrmtry share/games -@dirrmtry games +%%DATADIR%%/graphics/background.png +%%DATADIR%%/graphics/bigtiles.png +%%DATADIR%%/graphics/board.png +%%DATADIR%%/graphics/graphics.svg +%%DATADIR%%/graphics/icon.png +%%DATADIR%%/graphics/logo.png +%%DATADIR%%/graphics/pattern.png +%%DATADIR%%/graphics/tiles.png +%%DATADIR%%/monsterz.py +%%DATADIR%%/monsterz.pyc +%%DATADIR%%/monsterz.pyo +%%DATADIR%%/sound/applause.wav +%%DATADIR%%/sound/boing.wav +%%DATADIR%%/sound/click.wav +%%DATADIR%%/sound/ding.wav +%%DATADIR%%/sound/duh.wav +%%DATADIR%%/sound/grunt.wav +%%DATADIR%%/sound/laugh.wav +%%DATADIR%%/sound/music.s3m +%%DATADIR%%/sound/pop.wav +%%DATADIR%%/sound/warning.wav +%%DATADIR%%/sound/whip.wav +share/pixmaps/monsterz.png +@dirrm %%DATADIR%%/sound +@dirrm %%DATADIR%%/graphics +@dirrm %%DATADIR%% @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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308191637.r7JGbbRZ037997>