diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-05-02 05:48:33 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-05-02 05:48:33 +0800 |
commit | 5d8ca464084f8971b4536f2afd7698dbd113be4e (patch) | |
tree | bc171ad4b19db079919a166506b3da9e3d9dd80a | |
parent | 3bd486f96950d9c4aae4893a2f436bac6a338912 (diff) | |
download | freebsd-ports-gnome-5d8ca464084f8971b4536f2afd7698dbd113be4e.tar.gz freebsd-ports-gnome-5d8ca464084f8971b4536f2afd7698dbd113be4e.tar.zst freebsd-ports-gnome-5d8ca464084f8971b4536f2afd7698dbd113be4e.zip |
- 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
-rw-r--r-- | games/super_mario_bros_python/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/games/super_mario_bros_python/Makefile b/games/super_mario_bros_python/Makefile index 6f0ad84001a6..1255b1ba0d1d 100644 --- a/games/super_mario_bros_python/Makefile +++ b/games/super_mario_bros_python/Makefile @@ -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. Python" "" ${PORTNAME} \ "${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 \ |