# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-psychopy
version             1.78.01
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

set gproject        PsychoPy

description         ${gproject} is an open-source package for creating \
                    psychology stimuli in Python
long_description    ${description} (A real and free alternative to Matlab). \
                    PsychoPy combines the graphical strengths of OpenGL with \
                    the easy Python syntax to give psychophysics a free and \
                    simple stimulus presentation and control package.

homepage            http://www.psychopy.org
master_sites        googlecode:psychopy
distname            ${gproject}-${version}
use_zip             yes

checksums           md5     effb51feeb9c2602583740b52bcbca75 \
                    rmd160  b786bf29f9223c059c1b550042152c3a76bdbeb6 \
                    sha256  33caca5f9947e6d4686d056876107053dbc72b0e3768eead53330a1741b61a23

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-matplotlib \
                            port:py${python.version}-scipy \
                            port:py${python.version}-pyglet \
                            path:${python.pkgd}/PIL:py${python.version}-Pillow

    livecheck.type  none
} else {
    livecheck.regex ${gproject}-(\[0-9.\]+)\\.zip
}