svn commit: r408699 - head/games/monsterz
Thierry Thomas
thierry at FreeBSD.org
Thu Feb 11 21:17:41 UTC 2016
Author: thierry
Date: Thu Feb 11 21:17:39 2016
New Revision: 408699
URL: https://svnweb.freebsd.org/changeset/ports/408699
Log:
Modernize pkg-plist.
PR: ports/206743
Submitted by: pawel
Modified:
head/games/monsterz/Makefile
head/games/monsterz/pkg-plist
Modified: head/games/monsterz/Makefile
==============================================================================
--- head/games/monsterz/Makefile Thu Feb 11 20:00:35 2016 (r408698)
+++ head/games/monsterz/Makefile Thu Feb 11 21:17:39 2016 (r408699)
@@ -3,7 +3,7 @@
PORTNAME= monsterz
PORTVERSION= 0.7.1
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= http://sam.zoy.org/monsterz/ \
SF/nemysisfreebsdp/:icons
@@ -34,7 +34,9 @@ DESKTOP_ENTRIES="Monsterz" "${COMMENT}"
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
+pre-configure:
+ ${REINPLACE_CMD} '/test -f/ s|scorefile)|&.sample|g' \
+ ${WRKSRC}/Makefile
post-install:
.for d in graphics sound
@@ -48,9 +50,9 @@ post-install:
-f ${DATADIR:S;${PREFIX}/;;})
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/monsterz
-.if ${PORT_OPTIONS:MDOCS}
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
Modified: head/games/monsterz/pkg-plist
==============================================================================
--- head/games/monsterz/pkg-plist Thu Feb 11 20:00:35 2016 (r408698)
+++ head/games/monsterz/pkg-plist Thu Feb 11 21:17:39 2016 (r408699)
@@ -1,8 +1,4 @@
- at group games
- at mode 2555
-bin/monsterz
- at mode
- at group
+@(,games,2555) bin/monsterz
%%DATADIR%%/graphics/background.png
%%DATADIR%%/graphics/bigtiles.png
%%DATADIR%%/graphics/board.png
@@ -26,9 +22,5 @@ bin/monsterz
%%DATADIR%%/sound/warning.wav
%%DATADIR%%/sound/whip.wav
share/pixmaps/monsterz.png
- at dirrm %%DATADIR%%/sound
- at dirrm %%DATADIR%%/graphics
- at dirrm %%DATADIR%%
- at exec if [ ! -e %%SCOREDIR%% ] ; then mkdir -p -m 775 %%SCOREDIR%% ; fi
- at unexec if [ ! -s %%SCOREDIR%%/monsterz ] ; then rm -f %%SCOREDIR%%/monsterz && rm -r %%SCOREDIR%% || true ; fi
- at exec [ -e %%SCOREDIR%%/monsterz ] || touch %%SCOREDIR%%/monsterz && chmod 664 %%SCOREDIR%%/monsterz && chgrp games %%SCOREDIR%%/monsterz
+ at sample(,games,664) %%SCOREDIR%%/monsterz.sample
+ at dir(,,775) %%SCOREDIR%%
More information about the svn-ports-all
mailing list