diff options
author | beech <beech@FreeBSD.org> | 2013-03-15 07:31:14 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2013-03-15 07:31:14 +0800 |
commit | 270d028d8e23bc7b38d46de63a1a2656714de5e1 (patch) | |
tree | 3ded923218cd744ec3a22788550c7240ebe724ec | |
parent | f70e49572354df1dcb3b90a8994c08605f9c3ebb (diff) | |
download | freebsd-ports-gnome-270d028d8e23bc7b38d46de63a1a2656714de5e1.tar.gz freebsd-ports-gnome-270d028d8e23bc7b38d46de63a1a2656714de5e1.tar.zst freebsd-ports-gnome-270d028d8e23bc7b38d46de63a1a2656714de5e1.zip |
- Add Desktop entries
- Add icons
- Add pkg-plist
- Bump portrevision
PR: ports/173436
Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
-rw-r--r-- | games/mopesnake/Makefile | 34 | ||||
-rw-r--r-- | games/mopesnake/files/mopesnake.in | 4 | ||||
-rw-r--r-- | games/mopesnake/pkg-plist | 25 |
3 files changed, 39 insertions, 24 deletions
diff --git a/games/mopesnake/Makefile b/games/mopesnake/Makefile index e216a26a9233..f7d3ed593910 100644 --- a/games/mopesnake/Makefile +++ b/games/mopesnake/Makefile @@ -1,9 +1,10 @@ +# Created by: nemysis <nemysis@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> diff --git a/games/mopesnake/files/mopesnake.in b/games/mopesnake/files/mopesnake.in index 33fdff836702..6d6c286d773e 100644 --- a/games/mopesnake/files/mopesnake.in +++ b/games/mopesnake/files/mopesnake.in @@ -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 "${@}" diff --git a/games/mopesnake/pkg-plist b/games/mopesnake/pkg-plist new file mode 100644 index 000000000000..f989b8d8786a --- /dev/null +++ b/games/mopesnake/pkg-plist @@ -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 +@dirrm %%DATADIR%%/sounds +@dirrm %%DATADIR%%/music +@dirrm %%DATADIR%%/mopelib +@dirrm %%DATADIR%%/images +@dirrm %%DATADIR%% |