# -*- 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-gsd
version             4.2.0
revision            0

categories-append   science
license             BSD
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  e6e3b764ab7804da3d5ea15ce46d9be2bc35bde9 \
                    sha256  eb197abd735e98817bcdc1ee34e4968231d572da48c097b3ccf316be828cf86a \
                    size    193260

python.versions     313

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

    depends_lib-append \
                    port:py${python.version}-numpy

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
    test.dir        ${destroot}${python.pkgd}/gsd/test
}
