# -*- 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.3
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  cd077a7db93f8c3f14d0a8ac3037a45b5eeea701 \
                    sha256  9b217c302dbb9ce2ee88c2b06d80f950685a63eda867cfe52c2b647d33abae82 \
                    size    19504401

python.versions     27 36 37

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 \
                            port:py${python.version}-pandas \
                            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
    "
}