svn commit: r335241 - in head/games/tuxfighter: . files
Rusmir Dusko
nemysis at FreeBSD.org
Fri Nov 29 22:26:26 UTC 2013
Author: nemysis
Date: Fri Nov 29 22:26:25 2013
New Revision: 335241
URL: http://svnweb.freebsd.org/changeset/ports/335241
Log:
- Change Makefile header
- Change master sites
- Change maintainer email to @FreeBSD.org
- Support STAGEDIR
- Add build
- Change files/tuxfighter.in
- Change pkg-message
- Change pkg-plist, remove mtree
Approved by: pawel / wg (mentors, implicit)
Modified:
head/games/tuxfighter/Makefile
head/games/tuxfighter/files/tuxfighter.in (contents, props changed)
head/games/tuxfighter/pkg-message (contents, props changed)
head/games/tuxfighter/pkg-plist (contents, props changed)
Modified: head/games/tuxfighter/Makefile
==============================================================================
--- head/games/tuxfighter/Makefile Fri Nov 29 22:09:32 2013 (r335240)
+++ head/games/tuxfighter/Makefile Fri Nov 29 22:26:25 2013 (r335241)
@@ -1,4 +1,4 @@
-# Created by: nemysis at gmx.ch
+# Created by: nemysis <nemysis at gmx.ch>
# $FreeBSD$
PORTNAME= tuxfighter
@@ -6,12 +6,12 @@ PORTVERSION= 54
PORTREVISION= 2
CATEGORIES= games python
MASTER_SITES= SF/pygamebook/TuxFighter/TuxFighter${PORTVERSION}_source/ \
- SF/nemysisfreebsdp/:icons
+ SF/nemysisfreebsdp/games/:icons
DISTFILES= TuxFighter${DISTVERSION}.tar.gz \
${PORTNAME}_icons.tar.gz:icons
DIST_SUBDIR= python
-MAINTAINER= nemysis at gmx.ch
+MAINTAINER= nemysis at FreeBSD.org
COMMENT= Little Asteroids-like Shooter game
LICENSE= GPLv2
@@ -22,7 +22,6 @@ WRKSRC= ${WRKDIR}
FETCH_ARGS?= -Fpr
USE_PYTHON= yes
-NO_BUILD= yes
PORTDOCS= readme_TuxFighter54.txt
@@ -34,27 +33,33 @@ SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="TuxFighter" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+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}/*.py ${DATADIR}
- cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}
+ @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
+ ${WRKDIR}/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+
+.for d in *.py *.pyc *.pyo
+ @(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
post-install:
.for s in ${ICON_SIZES}
- ${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
- ${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
- ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
+ ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/games/tuxfighter/files/tuxfighter.in
==============================================================================
--- head/games/tuxfighter/files/tuxfighter.in Fri Nov 29 22:09:32 2013 (r335240)
+++ head/games/tuxfighter/files/tuxfighter.in Fri Nov 29 22:26:25 2013 (r335241)
@@ -4,4 +4,4 @@
#
cd "%%DATADIR%%"
-exec ./TuxFighter54.py "${@}"
+exec %%PYTHON_CMD%% ./TuxFighter54.py "${@}"
Modified: head/games/tuxfighter/pkg-message
==============================================================================
--- head/games/tuxfighter/pkg-message Fri Nov 29 22:09:32 2013 (r335240)
+++ head/games/tuxfighter/pkg-message Fri Nov 29 22:26:25 2013 (r335241)
@@ -1,4 +1,5 @@
========================================================================
+
Tuxfighter has been installed.
Python errors will result in the first run of this game.
@@ -8,4 +9,5 @@ This issue is currently being resolved w
All options are in the config file if you've made changes in the GUI.
~/.TuxFighter/TuxFighter.ini
+
========================================================================
Modified: head/games/tuxfighter/pkg-plist
==============================================================================
--- head/games/tuxfighter/pkg-plist Fri Nov 29 22:09:32 2013 (r335240)
+++ head/games/tuxfighter/pkg-plist Fri Nov 29 22:26:25 2013 (r335241)
@@ -5,7 +5,11 @@ share/icons/hicolor/72x72/apps/tuxfighte
share/icons/hicolor/96x96/apps/tuxfighter.png
share/pixmaps/tuxfighter.png
%%DATADIR%%/TuxFighter54.py
+%%DATADIR%%/TuxFighter54.pyc
+%%DATADIR%%/TuxFighter54.pyo
%%DATADIR%%/TuxFighter_modding.py
+%%DATADIR%%/TuxFighter_modding.pyc
+%%DATADIR%%/TuxFighter_modding.pyo
%%DATADIR%%/data/babytux1.png
%%DATADIR%%/data/babytux2.png
%%DATADIR%%/data/babytux3.png
@@ -56,13 +60,3 @@ share/pixmaps/tuxfighter.png
%%DATADIR%%/data/winlogoh3.png
@dirrm %%DATADIR%%/data
@dirrm %%DATADIR%%
- at dirrmtry share/icons/hicolor/96x96/apps
- at dirrmtry share/icons/hicolor/96x96
- at dirrmtry share/icons/hicolor/72x72/apps
- at dirrmtry share/icons/hicolor/72x72
- at dirrmtry share/icons/hicolor/64x64/apps
- at dirrmtry share/icons/hicolor/64x64
- at dirrmtry share/icons/hicolor/48x48/apps
- at dirrmtry share/icons/hicolor/48x48
- at dirrmtry share/icons/hicolor
- at dirrmtry share/icons
More information about the svn-ports-head
mailing list