svn commit: r314193 - in head/games/mopesnake: . files
Beech Rintoul
beech at FreeBSD.org
Thu Mar 14 23:31:15 UTC 2013
Author: beech
Date: Thu Mar 14 23:31:14 2013
New Revision: 314193
URL: http://svnweb.freebsd.org/changeset/ports/314193
Log:
- Add Desktop entries
- Add icons
- Add pkg-plist
- Bump portrevision
PR: ports/173436
Submitted by: nemysis <nemysis at gmx.ch> (maintainer)
Added:
head/games/mopesnake/pkg-plist (contents, props changed)
Modified:
head/games/mopesnake/Makefile
head/games/mopesnake/files/mopesnake.in
Modified: head/games/mopesnake/Makefile
==============================================================================
--- head/games/mopesnake/Makefile Thu Mar 14 23:17:26 2013 (r314192)
+++ head/games/mopesnake/Makefile Thu Mar 14 23:31:14 2013 (r314193)
@@ -1,9 +1,10 @@
+# Created by: nemysis <nemysis at gmx.ch>
# $FreeBSD$
PORTNAME= mopesnake
PORTVERSION= 0.5
-PORTREVISION= 1
-CATEGORIES= games
+PORTREVISION= 2
+CATEGORIES= games python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
DISTNAME= ${PORTNAME}-pc-${DISTVERSION}
@@ -18,43 +19,32 @@ USE_ZIP= yes
USE_PYTHON= yes
NO_BUILD= yes
-PLIST_FILES= bin/${PORTNAME} \
- share/pixmaps/${PORTNAME}.png
-
-PORTDATA= *
PORTDOCS= TODO.txt index.html
SUB_FILES= ${PORTNAME}
+DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "${COMMENT}" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" false
+
+.include <bsd.port.options.mk>
+
post-patch:
-# Fix path to python interpreter
@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
- @(cd ${WRKSRC} && ${RM} *.py.bak mopelib/*py.bak)
-
-.include <bsd.port.options.mk>
+ @${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
-# Scripts
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
-
-# Executable
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/
${MKDIR} ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
-
-# Data
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR})
-
-# Pixmaps and version
${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
${INSTALL_DATA} ${WRKSRC}/version ${DATADIR}
-# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
-. for f in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
-. endfor
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
Modified: head/games/mopesnake/files/mopesnake.in
==============================================================================
--- head/games/mopesnake/files/mopesnake.in Thu Mar 14 23:17:26 2013 (r314192)
+++ head/games/mopesnake/files/mopesnake.in Thu Mar 14 23:31:14 2013 (r314193)
@@ -1,7 +1,7 @@
#!/bin/sh
#
# $FreeBSD$
+#
-echo "Master Of Pain (Eating) - Snake: Starting up..."
cd "%%DATADIR%%"
-./mopesnake.py
+exec /usr/bin/env python ./mopesnake.py "${@}"
Added: head/games/mopesnake/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/mopesnake/pkg-plist Thu Mar 14 23:31:14 2013 (r314193)
@@ -0,0 +1,25 @@
+bin/mopesnake
+%%DATADIR%%/images/hiscores.png
+%%DATADIR%%/images/instructions.png
+%%DATADIR%%/images/title.png
+%%DATADIR%%/images/tryad.png
+%%DATADIR%%/mopelib/__init__.py
+%%DATADIR%%/mopelib/mopelib.py
+%%DATADIR%%/mopesnake.py
+%%DATADIR%%/music/the_final_rewind_loop.ogg
+%%DATADIR%%/sounds/aaa1.wav
+%%DATADIR%%/sounds/aah2.wav
+%%DATADIR%%/sounds/aei1.wav
+%%DATADIR%%/sounds/eee1.wav
+%%DATADIR%%/sounds/mmm3.wav
+%%DATADIR%%/sounds/ooh1.wav
+%%DATADIR%%/sounds/oow1.wav
+%%DATADIR%%/sounds/ouch1.wav
+%%DATADIR%%/sounds/ow1.wav
+%%DATADIR%%/version
+share/pixmaps/mopesnake.png
+ at dirrm %%DATADIR%%/sounds
+ at dirrm %%DATADIR%%/music
+ at dirrm %%DATADIR%%/mopelib
+ at dirrm %%DATADIR%%/images
+ at dirrm %%DATADIR%%
More information about the svn-ports-head
mailing list