# -*- 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
PortGroup           github 1.0

github.setup        glotzerlab gsd 1.7.0 v
name                py-gsd
categories-append   science
platforms           darwin
license             BSD

python.versions     27 36 37

maintainers         {gmail.com:giovanni.bussi @GiovanniBussi} openmaintainer

description         GSD (General Simulation Data) is a file format specification and a library to read and write it.
long_description    ${description} \
                    The package also contains a python module that reads and writes hoomd schema gsd files with an easy to use syntax.

homepage            https://gsd.readthedocs.io/

checksums           rmd160  d60cecfbffcb6c19382f814150e7c5795b876007 \
                    sha256  de0eb4b1de8b633ed3ac045301f0564e0e676e582358a8d63ab2e8409bc32c8a \
                    size    247106

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-cython \
                            port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-numpy

    depends_test-append     port:py${python.version}-nose

    if {${python.version} ne 27} {
        test.run            yes
        test.env            PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
        test.cmd            nosetests-${python.branch}
        test.target
    } else {
        test.run            no
    }

    livecheck.type      none
}