# -*- 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        mdtraj mdtraj 1.9.4
name                py-mdtraj
homepage            http://www.mdtraj.org
platforms           darwin
license             LGPL-2.1+
maintainers         {gmail.com:giovanni.bussi @GiovanniBussi} openmaintainer

description         A modern, open library for the analysis of molecular dynamics trajectories
long_description    Read, write and analyze MD trajectories with only a few lines of Python code. \
                    For details, see the website at mdtraj.org. MDTraj is research software. \
                    If you make use of MDTraj in scientific publications, please cite it.

supported_archs     i386 x86_64

checksums           rmd160  9c35bfe8c0f3e7270be6bd8cba1b113570e9a838 \
                    sha256  59536069ce8f3aecbfccfe5cbe5ad6d0e33d656fcf15d8e43fda86650697b348 \
                    size    21474623

python.versions     27 36 37 38

if {${name} ne ${subport}} {

    depends_build-append    port:py${python.version}-cython

    depends_lib-append      port:py${python.version}-astor \
                            port:py${python.version}-numpy \
                            port:py${python.version}-pandas \
                            port:py${python.version}-parsing \
                            port:py${python.version}-setuptools \
                            port:py${python.version}-scipy \
                            port:py${python.version}-tables

# tests cannot be implemented since they require too many packages
# not available on MacPorts
}

foreach {old new} {34 36 35 36} {
    subport py${old}-${python.rootname} "
        replaced_by py${new}-${python.rootname}
        PortGroup obsolete 1.0
    "
}
