svn commit: r336048 - in head/games/mopesnake: . files
Rusmir Dusko
nemysis at FreeBSD.org
Tue Dec 10 06:33:47 UTC 2013
Author: nemysis
Date: Tue Dec 10 06:33:45 2013
New Revision: 336048
URL: http://svnweb.freebsd.org/changeset/ports/336048
Log:
- Change master sites, icon(s)
- Change maintainer email to @FreeBSD.org
- Add DOCS Option
- Change desktop entry
- Support STAGEDIR
- Remove NO_BUILD=yes, change pkg-plist
- Change files/mopesnake.in
- Change pkg-message
Approved by: pawel / wg (mentors, implicit)
Modified:
head/games/mopesnake/Makefile
head/games/mopesnake/distinfo (contents, props changed)
head/games/mopesnake/files/mopesnake.in
head/games/mopesnake/pkg-descr (contents, props changed)
head/games/mopesnake/pkg-plist
Modified: head/games/mopesnake/Makefile
==============================================================================
--- head/games/mopesnake/Makefile Tue Dec 10 04:57:35 2013 (r336047)
+++ head/games/mopesnake/Makefile Tue Dec 10 06:33:45 2013 (r336048)
@@ -5,47 +5,61 @@ PORTNAME= mopesnake
PORTVERSION= 0.5
PORTREVISION= 3
CATEGORIES= games python
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
-DISTNAME= ${PORTNAME}-pc-${DISTVERSION}
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
+ SF/nemysisfreebsdp/games/:icons
+DISTFILES= ${PORTNAME}-pc-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-pc-${DISTVERSION}${EXTRACT_SUFX}
-MAINTAINER= nemysis at gmx.ch
+MAINTAINER= nemysis at FreeBSD.org
COMMENT= Classic snake game in which you attempt to eat all the pain
LICENSE= GPLv2
RUN_DEPENDS= ${PYGAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}-pc-${DISTVERSION}
+
USE_ZIP= yes
USE_PYTHON= yes
-NO_BUILD= yes
PORTDOCS= TODO.txt index.html
-SUB_FILES= ${PORTNAME}
+OPTIONS_DEFINE= DOCS
-DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "${COMMENT}" \
- "${PREFIX}/share/pixmaps/${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" false
+SUB_FILES= ${PORTNAME}
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
@${FIND} ${WRKSRC} -name "*.bak" -delete
+do-build:
+ @${PYTHON_CMD} -m compileall ${WRKSRC}
+ @${PYTHON_CMD} -O -m compileall ${WRKSRC}
+
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/
- ${MKDIR} ${DATADIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR})
- ${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
- ${INSTALL_DATA} ${WRKSRC}/version ${DATADIR}
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
-.endif
+ @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
+ ${WRKDIR}/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+.for d in *.py *.pyc *.pyo
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+.for d in images mopelib music sounds
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+ ${INSTALL_DATA} ${WRKSRC}/version ${STAGEDIR}${DATADIR}
+
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/games/mopesnake/distinfo
==============================================================================
--- head/games/mopesnake/distinfo Tue Dec 10 04:57:35 2013 (r336047)
+++ head/games/mopesnake/distinfo Tue Dec 10 06:33:45 2013 (r336048)
@@ -1,2 +1,4 @@
SHA256 (mopesnake-pc-0.5.zip) = 1bc270e7dc63ad40bb2280ac5d3dec8527b2d902b272f2b42bfd35d265d339d4
SIZE (mopesnake-pc-0.5.zip) = 1426226
+SHA256 (mopesnake.png) = f7d568382857a7e5a10ca01369d8f2c660f523d277239ba468be7fd81cceb028
+SIZE (mopesnake.png) = 1305
Modified: head/games/mopesnake/files/mopesnake.in
==============================================================================
--- head/games/mopesnake/files/mopesnake.in Tue Dec 10 04:57:35 2013 (r336047)
+++ head/games/mopesnake/files/mopesnake.in Tue Dec 10 06:33:45 2013 (r336048)
@@ -4,4 +4,4 @@
#
cd "%%DATADIR%%"
-exec /usr/bin/env python ./mopesnake.py "${@}"
+exec %%PYTHON_CMD%% ./mopesnake.py "${@}"
Modified: head/games/mopesnake/pkg-descr
==============================================================================
--- head/games/mopesnake/pkg-descr Tue Dec 10 04:57:35 2013 (r336047)
+++ head/games/mopesnake/pkg-descr Tue Dec 10 06:33:45 2013 (r336048)
@@ -1,8 +1,8 @@
Master Of Pain (Eating) - Snake
Is a classic snake game in which you attempt to eat all the pain in the world,
-bravely accepting the inevitable consequences for your waistline. mop(e)snake
+bravely accepting the inevitable consequences for your waistline. mop(e)snake
features an innovative single-finger control method, as well as the normal
-four-directional control system familiar to fans of snake. The game doesn't
+four-directional control system familiar to fans of snake. The game doesn't
feature any of the extra features, bonuses, wrap-around levels and other
featuritis that ruins most versions of snake.
Modified: head/games/mopesnake/pkg-plist
==============================================================================
--- head/games/mopesnake/pkg-plist Tue Dec 10 04:57:35 2013 (r336047)
+++ head/games/mopesnake/pkg-plist Tue Dec 10 06:33:45 2013 (r336048)
@@ -4,8 +4,14 @@ bin/mopesnake
%%DATADIR%%/images/title.png
%%DATADIR%%/images/tryad.png
%%DATADIR%%/mopelib/__init__.py
+%%DATADIR%%/mopelib/__init__.pyc
+%%DATADIR%%/mopelib/__init__.pyo
%%DATADIR%%/mopelib/mopelib.py
+%%DATADIR%%/mopelib/mopelib.pyc
+%%DATADIR%%/mopelib/mopelib.pyo
%%DATADIR%%/mopesnake.py
+%%DATADIR%%/mopesnake.pyc
+%%DATADIR%%/mopesnake.pyo
%%DATADIR%%/music/the_final_rewind_loop.ogg
%%DATADIR%%/sounds/aaa1.wav
%%DATADIR%%/sounds/aah2.wav
More information about the svn-ports-head
mailing list