2014-05-01 12:12:33 +02:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2012-07-19 21:56:48 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pycadia
|
|
|
|
PORTVERSION= 0.5.1
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 6
|
2012-10-06 07:37:29 +02:00
|
|
|
CATEGORIES= games python
|
2014-05-01 12:12:33 +02:00
|
|
|
MASTER_SITES= GENTOO/distfiles \
|
2013-12-08 15:58:36 +01:00
|
|
|
SF/nemysisfreebsdp/games/
|
2012-10-06 07:37:29 +02:00
|
|
|
DIST_SUBDIR= python
|
2012-07-19 21:56:48 +02:00
|
|
|
|
2014-10-31 17:11:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-07-19 21:56:48 +02:00
|
|
|
COMMENT= Home to vector gaming, Python style
|
|
|
|
|
2014-10-05 16:00:26 +02:00
|
|
|
LICENSE= GPLv2 # or later
|
|
|
|
LICENSE_FILE= ${WRKSRC}/doc/COPYING
|
2012-07-19 21:56:48 +02:00
|
|
|
|
2012-10-06 07:37:29 +02:00
|
|
|
RUN_DEPENDS= ${PYGAME}
|
2012-07-19 21:56:48 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2014-10-05 16:00:26 +02:00
|
|
|
USES= python:2
|
2012-10-06 07:37:29 +02:00
|
|
|
USE_GNOME= pygtk2 libgnomeui
|
|
|
|
|
2014-05-01 12:12:33 +02:00
|
|
|
PORTDOCS= CHANGELOG README gravity.txt
|
2013-12-08 15:58:36 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Pycadia" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
2012-10-06 07:37:29 +02:00
|
|
|
|
|
|
|
SUB_FILES= ${PORTNAME}.sh
|
|
|
|
|
2013-12-08 15:58:36 +01:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${PYTHON_CMD} -m compileall ${WRKSRC}
|
|
|
|
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
|
2012-07-19 21:56:48 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-12-08 15:58:36 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
|
|
|
|
${WRKDIR}/${PORTNAME}.sh
|
2014-05-01 12:12:33 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
2013-12-08 15:58:36 +01:00
|
|
|
|
|
|
|
.for d in glade pixmaps sounds
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
|
|
|
.endfor
|
2014-05-01 12:12:33 +02:00
|
|
|
.for f in *.py *.pyc *.pyo
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
|
2013-12-08 15:58:36 +01:00
|
|
|
.endfor
|
2012-07-19 21:56:48 +02:00
|
|
|
|
2014-05-01 12:12:33 +02:00
|
|
|
@(cd ${STAGEDIR}${DATADIR} && ${CHMOD} 555 \
|
|
|
|
${PORTNAME}.py spacewarpy.py vektoroids.py)
|
2013-12-08 15:58:36 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf ${STAGEDIR}${DATADIR}
|
2012-10-06 07:37:29 +02:00
|
|
|
|
2013-12-08 15:58:36 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pixmaps/pysteroids.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
2012-07-19 21:56:48 +02:00
|
|
|
|
2013-12-08 15:58:36 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
2012-07-19 21:56:48 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|