# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= brainworkshop PORTVERSION= 4.4 PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Brain%20Workshop%20${PORTVERSION} MAINTAINER= amdmi3@FreeBSD.org COMMENT= Free open-source version of the Dual N-Back mental exercise RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyglet/__init__.py:${PORTSDIR}/graphics/py-pyglet USE_ZIP= yes NO_BUILD= yes USE_DOS2UNIX= brainworkshop.pyw USE_PYTHON= yes WRKSRC= ${WRKDIR}/${PORTNAME} PORTSCOUT= skipv:4.22 DESKTOP_ENTRIES="Brain Workshop" \ "Dual N-Back mental exercise" \ "${DATADIR}/brain.png" \ "brainworkshop" \ "Game;LogicGame;" \ false post-patch: @${REINPLACE_CMD} -e '/^FOLDER_RES = / s|res|${DATADIR}|; \ /^FOLDER_DATA = / s|.data.|os.environ["HOME"]+"/.brainworkshop"|' \ ${WRKSRC}/brainworkshop.pyw do-install: ${INSTALL_SCRIPT} ${WRKSRC}/brainworkshop.pyw ${PREFIX}/bin/${PORTNAME} ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/res/* ${DATADIR}/ .include