svn commit: r352768 - head/games/super_mario_bros_python
Rusmir Dusko
nemysis at FreeBSD.org
Thu May 1 21:48:34 UTC 2014
Author: nemysis
Date: Thu May 1 21:48:33 2014
New Revision: 352768
URL: http://svnweb.freebsd.org/changeset/ports/352768
QAT: https://qat.redports.org/buildarchive/r352768/
Log:
- Add USES shebangfix and SHEBANG_FILES
- Fix the usage of 'perl' to get rid of the implicit lang/perl dependency,
change REINPLACE
- Change install, cosmetical changes
Modified:
head/games/super_mario_bros_python/Makefile
Modified: head/games/super_mario_bros_python/Makefile
==============================================================================
--- head/games/super_mario_bros_python/Makefile Thu May 1 21:46:14 2014 (r352767)
+++ head/games/super_mario_bros_python/Makefile Thu May 1 21:48:33 2014 (r352768)
@@ -21,11 +21,13 @@ RUN_DEPENDS= ${PYGAME}
WRKSRC= ${WRKDIR}/Super-Mario-Bros-Python-v${DISTVERSION}release
-USES= zip
+USES= shebangfix zip
+SHEBANG_FILES= gamelib/*.py
+python_OLD_CMD?= /usr/bin/env python
+python_CMD?= ${PYTHON_CMD}
USE_PYTHON= 2
PORTDOCS= changelog.txt readme.txt
-
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME}
@@ -34,7 +36,9 @@ DESKTOP_ENTRIES="Super Mario Bros. Pytho
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
- @${REINPLACE_CMD} -i '' -e '1d' ${WRKSRC}/start.py
+ @${REINPLACE_CMD} -i '' -e '1d' \
+ -e 's|#! /usr/bin/env python|#!${PYTHON_CMD}|' \
+ ${WRKSRC}/start.py
@${FIND} ${WRKSRC} -name "*.py~" -delete -or -name "*.sav~" -delete
do-build:
@@ -49,9 +53,8 @@ do-install:
.for d in data gamelib
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
-
-.for d in *.py *.pyc *.pyo
- @(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR})
+.for f in *.py *.pyc *.pyo
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
More information about the svn-ports-all
mailing list