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
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 02:35:33 +01:00
|
|
|
PORTREVISION= 11
|
2012-10-06 07:37:29 +02:00
|
|
|
CATEGORIES= games python
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= GENTOO \
|
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
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2014-10-05 16:00:26 +02:00
|
|
|
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}
|
|
|
|
|
2018-02-19 12:10:43 +01:00
|
|
|
USES= python:2.7 shebangfix
|
2012-10-06 07:37:29 +02:00
|
|
|
USE_GNOME= pygtk2 libgnomeui
|
2017-04-18 20:26:19 +02:00
|
|
|
SHEBANG_FILES= *.py
|
2017-04-21 13:10:02 +02:00
|
|
|
NO_ARCH= yes
|
2012-10-06 07:37:29 +02:00
|
|
|
|
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
|
|
|
|
2017-04-21 13:10:02 +02:00
|
|
|
do-install-DOCS-on:
|
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>
|