ports/173436: [MAINTAINER] games/mopesnake: Makefile changed, added pkg-plist, Desktop entries, removed all notes
nemysis
nemysis at gmx.ch
Sat Feb 23 14:10:07 UTC 2013
The following reply was made to PR ports/173436; it has been noted by GNATS.
From: nemysis <nemysis at gmx.ch>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/173436: [MAINTAINER] games/mopesnake: Makefile changed,
added pkg-plist, Desktop entries, removed all notes
Date: Sat, 23 Feb 2013 15:00:37 +0100
--MP_//7y=p=fnU=mA0b=KphZubDF
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Please add in Makefile Header
# Created by: nemysis at gmx.ch
+DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "${COMMENT}" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
+ "${PORTNAME}" "Game;ArcadeGame;" false
--MP_//7y=p=fnU=mA0b=KphZubDF
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=mopesnake.diff
===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/games/mopesnake/Makefile ./Makefile
--- /usr/ports/games/mopesnake/Makefile 2013-01-14 17:55:40.000000000 +0100
+++ ./Makefile 2013-02-23 14:57:17.000000000 +0100
@@ -2,8 +2,8 @@
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 +18,32 @@
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}.png" \
+ "${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>
diff -ruN --exclude=CVS /usr/ports/games/mopesnake/files/mopesnake.in ./files/mopesnake.in
--- /usr/ports/games/mopesnake/files/mopesnake.in 2013-02-02 20:13:10.000000000 +0100
+++ ./files/mopesnake.in 2013-02-23 14:53:50.000000000 +0100
@@ -1,7 +1,7 @@
#!/bin/sh
#
# $FreeBSD: head/games/mopesnake/files/mopesnake.in 311381 2013-02-01 15:04:00Z ak $
+#
-echo "Master Of Pain (Eating) - Snake: Starting up..."
cd "%%DATADIR%%"
-./mopesnake.py
+exec /usr/bin/env python ./mopesnake.py "${@}"
diff -ruN --exclude=CVS /usr/ports/games/mopesnake/pkg-plist ./pkg-plist
--- /usr/ports/games/mopesnake/pkg-plist 1970-01-01 01:00:00.000000000 +0100
+++ ./pkg-plist 2012-11-07 01:05:56.000000000 +0100
@@ -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%%
===> Done
--MP_//7y=p=fnU=mA0b=KphZubDF--
More information about the freebsd-ports-bugs
mailing list