# -*- 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             5.0.1
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  d18345369f6c58563f4ff837e9196049b7e0b8f9 \
                    sha256  c072d1ee934864d618039f3e7448bc79f31fe1a0f1fabfdb9cd4143a7ab2376b \
                    size    202182

python.versions     313 314

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
}
