diff options
| author | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-01-14 20:28:49 +0000 |
|---|---|---|
| committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-01-14 20:28:49 +0000 |
| commit | b0ce8cd00d0c8ba7deaaa326132f7717aab704b2 (patch) | |
| tree | 091fb3e8b746edc8927785ce6ff39b991fbc332d | |
| parent | - Fix build with clang (diff) | |
- Change Desktop entry file
- Break lines around 80 characters
- Fix the usage of 'python' to get rid of the implicit lang/python dependency
| -rw-r--r-- | games/duckmaze/Makefile | 16 | ||||
| -rw-r--r-- | games/duckmaze/files/duckmaze.sh.in | 2 |
2 files changed, 12 insertions, 6 deletions
diff --git a/games/duckmaze/Makefile b/games/duckmaze/Makefile index f8fb9d3363be..16ec0cbc15e8 100644 --- a/games/duckmaze/Makefile +++ b/games/duckmaze/Makefile @@ -28,8 +28,8 @@ PORTDOCS= TODO.txt index.html style.css SUB_FILES= ${PORTNAME}.sh -DESKTOP_ENTRIES="duckmaze" "${COMMENT}" "${PORTNAME}" \ - "${PORTNAME}" "Game;ArcadeGame;" false +DESKTOP_ENTRIES="duckmaze" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" "" post-extract: ${MV} ${WRKSRC}/doc/*.png ${WRKSRC}/images/ @@ -39,15 +39,21 @@ do-build: @${PYTHON_CMD} -O -m compileall ${WRKSRC} do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} "images levels mopelib music sounds" ${STAGEDIR}${DATADIR}) + @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \ + ${WRKDIR}/${PORTNAME}.sh + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} +.for d in images levels mopelib music sounds + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) +.endfor .for d in *.py *.pyc *.pyo ${INSTALL_SCRIPT} ${WRKSRC}/${d} ${STAGEDIR}${DATADIR} .endfor .for d in duckmazerc.txt version ${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DATADIR} .endfor - ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/ + ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} diff --git a/games/duckmaze/files/duckmaze.sh.in b/games/duckmaze/files/duckmaze.sh.in index 4490dfa4e793..8df266e1aa83 100644 --- a/games/duckmaze/files/duckmaze.sh.in +++ b/games/duckmaze/files/duckmaze.sh.in @@ -4,4 +4,4 @@ # cd "%%DATADIR%%" -exec /usr/bin/env python ./duckmaze.py +exec %%PYTHON_CMD%% ./duckmaze.py "${@}" |
