diff options
author | Wen Heping <wen@FreeBSD.org> | 2015-09-05 15:34:42 +0000 |
---|---|---|
committer | Wen Heping <wen@FreeBSD.org> | 2015-09-05 15:34:42 +0000 |
commit | 8501a3020cca9635ce9a09d713a37acfe337e27d (patch) | |
tree | 8a2407ea6d936c9d6918451c302044cba9892d40 /science | |
parent | f3433caacf0331a8c39c8a9e4722d37d90a39e58 (diff) | |
download | ports-8501a3020cca9635ce9a09d713a37acfe337e27d.tar.gz ports-8501a3020cca9635ce9a09d713a37acfe337e27d.zip |
Notes
Diffstat (limited to 'science')
-rw-r--r-- | science/psychopy/Makefile | 31 | ||||
-rw-r--r-- | science/psychopy/distinfo | 4 |
2 files changed, 27 insertions, 8 deletions
diff --git a/science/psychopy/Makefile b/science/psychopy/Makefile index 7d1b63b6ea23..d68cd50cfa86 100644 --- a/science/psychopy/Makefile +++ b/science/psychopy/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= psychopy -PORTVERSION= 1.82.01 +PORTVERSION= 1.82.02 CATEGORIES= science python MASTER_SITES= SF/psychpy/PsychoPy DISTNAME= PsychoPy-${PORTVERSION} @@ -14,16 +14,16 @@ LICENSE= GPLv3 # (or later) RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \ ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow \ - ${PYTHON_PKGNAMEPREFIX}pyglet>=1.1.2:${PORTSDIR}/graphics/py-pyglet \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=0.90.1:${PORTSDIR}/math/py-matplotlib \ + ${PYTHON_PKGNAMEPREFIX}pyglet>=1.1.2:${PORTSDIR}/graphics/py-pyglet \ ${PYTHON_PKGNAMEPREFIX}pandas>0:${PORTSDIR}/math/py-pandas \ ${PYTHON_PKGNAMEPREFIX}scipy>=0.6.0:${PORTSDIR}/science/py-scipy \ - ${LOCALBASE}/share/fonts/dejavu/DejaVuSerif.ttf:${PORTSDIR}/x11-fonts/dejavu \ + dejavu>0:${PORTSDIR}/x11-fonts/dejavu \ ${PYNUMPY} NO_ARCH= yes -USES= python zip +USES= fortran python zip USE_PYTHON= autoplist distutils USE_WX= 2.8 WX_COMPS= python @@ -38,9 +38,28 @@ DESKTOP_ENTRIES="PsychoPy" \ "" \ "" +.include <bsd.port.options.mk> + +post-build: + @${ECHO_CMD} -n > ${WRKDIR}/psychopy + @${ECHO_CMD} "#!${SH}" \ + >> ${WRKDIR}/psychopy +.if ${OPSYS} == FreeBSD + @${ECHO_CMD} "LD_LIBRARY_PATH=${LOCALBASE}/lib/${FC:S/fortran/cc/}:\$$LD_LIBRARY_PATH" \ + >> ${WRKDIR}/psychopy + @${ECHO_CMD} "export LD_LIBRARY_PATH" \ + >> ${WRKDIR}/psychopy +.endif + @${ECHO_CMD} \ + >> ${WRKDIR}/psychopy + @${ECHO_CMD} "${PYTHON_CMD} ${LOCALBASE}/bin/psychopyApp.py" \ + >> ${WRKDIR}/psychopy + post-install: - ${LN} -sf ${LOCALBASE}/share/fonts/dejavu/DejaVuSerif.ttf \ + (cd ${WRKDIR} && ${INSTALL_SCRIPT} psychopy \ + ${STAGEDIR}${PREFIX}/bin) + @${RM} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psychopy/app/Resources/DejaVuSerif.ttf + @${LN} -sf ${LOCALBASE}/share/fonts/dejavu/DejaVuSerif.ttf \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psychopy/app/Resources - ${LN} -sf psychopyApp.py ${STAGEDIR}${PREFIX}/bin/psychopy .include <bsd.port.mk> diff --git a/science/psychopy/distinfo b/science/psychopy/distinfo index 6935aa19415e..4d9c23f0fa54 100644 --- a/science/psychopy/distinfo +++ b/science/psychopy/distinfo @@ -1,2 +1,2 @@ -SHA256 (PsychoPy-1.82.01.zip) = c8b4ee362b113c502b7abd5284adfb31da20844ea1bee35cd7f9b13fc8e9f3b7 -SIZE (PsychoPy-1.82.01.zip) = 11565042 +SHA256 (PsychoPy-1.82.02.zip) = 100d432aca6df578a7b5a05142adca2fda5eb78e2847d06b83ae273cf7d9e715 +SIZE (PsychoPy-1.82.02.zip) = 11569884 |