# -*- 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-yt
version             3.5.1
revision            0

categories-append   science
platforms           darwin
license             BSD
maintainers         nomaintainer

description         An analysis and visualization toolkit for volumetric data
long_description    The yt project aims to produce an integrated \
                    science environment for collaboratively asking and \
                    answering astrophysical questions. To do so, it \
                    will encompass the creation of initial conditions, \
                    the execution of simulations, and the detailed \
                    exploration and visualization of the resultant \
                    data. It will also provide a standard framework \
                    based on physical quantities interoperability \
                    between codes.

homepage            https://yt-project.org/
master_sites        pypi:y/yt/
distname            yt-${version}

checksums           rmd160  5ef74df974375ed57ac0442c64c0c4c95c29a25f \
                    sha256  c8ef8eceb934dc189d63dc336109fad3002140a9a32b19f38d1812d5d5a30d71 \
                    size    10455625

python.versions     27 35 36 37 38

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

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

    depends_run-append \
                    port:py${python.version}-matplotlib \
                    port:py${python.version}-ipython \
                    port:py${python.version}-sympy

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md COPYING.txt \
           CITATION CREDITS CONTRIBUTING.rst ${destroot}${docdir}
    }

    livecheck.type  none
}
