aboutsummaryrefslogtreecommitdiff
path: root/games/pycadia/Makefile
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-12-08 14:58:36 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-12-08 14:58:36 +0000
commit5fd82c24ff66c1ca7a2a17bb827c97f4c7ba79e5 (patch)
tree12751f3c039193444746c50d18ab92e2bb55c587 /games/pycadia/Makefile
parent00ba2d7bbd31b41afdff87a3687ba633e078062b (diff)
downloadports-5fd82c24ff66c1ca7a2a17bb827c97f4c7ba79e5.tar.gz
ports-5fd82c24ff66c1ca7a2a17bb827c97f4c7ba79e5.zip
Notes
Diffstat (limited to 'games/pycadia/Makefile')
-rw-r--r--games/pycadia/Makefile54
1 files changed, 31 insertions, 23 deletions
diff --git a/games/pycadia/Makefile b/games/pycadia/Makefile
index e21fc4260452..35c93f0df974 100644
--- a/games/pycadia/Makefile
+++ b/games/pycadia/Makefile
@@ -1,15 +1,15 @@
-# Created by: nemysis@gmx.ch
+# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
PORTNAME= pycadia
PORTVERSION= 0.5.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games python
MASTER_SITES= ${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/} \
- SF/nemysisfreebsdp/
+ SF/nemysisfreebsdp/games/
DIST_SUBDIR= python
-MAINTAINER= nemysis@gmx.ch
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= Home to vector gaming, Python style
LICENSE= GPLv2
@@ -20,35 +20,43 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GNOME= pygtk2 libgnomeui
USE_PYTHON= yes
-NO_BUILD= yes
-PLIST_FILES= bin/${PORTNAME} \
- share/pixmaps/${PORTNAME}.png
-
-PORTDATA= *
PORTDOCS= CHANGELOG README TODO gravity.txt
-DESKTOP_ENTRIES="Pycadia" "${COMMENT}" "${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
+OPTIONS_DEFINE= DOCS
+
+DESKTOP_ENTRIES="Pycadia" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
SUB_FILES= ${PORTNAME}.sh
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+post-patch:
+ @${FIND} ${WRKSRC} -name "*.bak" -delete
+
+do-build:
+ @${PYTHON_CMD} -m compileall ${WRKSRC}
+ @${PYTHON_CMD} -O -m compileall ${WRKSRC}
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+ @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
+ ${WRKDIR}/${PORTNAME}.sh
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.for d in glade pixmaps sounds
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+.for d in *.py *.pyc *.pyo
+ @(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR})
+.endfor
- ${MKDIR} ${DATADIR}
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR})
- @(cd ${DATADIR} && ${CHMOD} 555 ${PORTNAME}.py spacewarpy.py vektoroids.py)
- ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf ${DATADIR}
+ @(cd ${STAGEDIR}${DATADIR} && ${CHMOD} 555 ${PORTNAME}.py spacewarpy.py vektoroids.py)
+ ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/logo1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+ ${INSTALL_DATA} ${WRKSRC}/pixmaps/pysteroids.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>