mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- 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)
This commit is contained in:
parent
767e421d1a
commit
d4eede78a1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336048
@ -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@gmx.ch
|
||||
MAINTAINER= nemysis@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
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
SUB_FILES= ${PORTNAME}
|
||||
|
||||
DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "${COMMENT}" \
|
||||
"${PREFIX}/share/pixmaps/${PORTNAME}" \
|
||||
"${PORTNAME}" "Game;ArcadeGame;" false
|
||||
|
||||
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-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}
|
||||
do-build:
|
||||
@${PYTHON_CMD} -m compileall ${WRKSRC}
|
||||
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
|
||||
.endif
|
||||
do-install:
|
||||
@${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>
|
||||
|
@ -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
|
||||
|
@ -4,4 +4,4 @@
|
||||
#
|
||||
|
||||
cd "%%DATADIR%%"
|
||||
exec /usr/bin/env python ./mopesnake.py "${@}"
|
||||
exec %%PYTHON_CMD%% ./mopesnake.py "${@}"
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user