# -*- 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-pyregion
version             2.0
categories-append   science
platforms           darwin
license             MIT
maintainers         nomaintainer

description         pyregion is a Python module to parse ds9 region files
long_description    ${description}

homepage            https://github.com/astropy/pyregion
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  fb1bf3b692c799a05b39ba3b284af731502b8df0 \
                    sha256  a8ac5f764b53ec332f6bc43f6f2193ca13e8b7d5a3fb2e20ced6b2ea42a9d094 \
                    size    1104111

python.versions     27 35 36 37

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

    depends_run-append  port:py${python.version}-matplotlib \
                        port:py${python.version}-parsing \
                        port:py${python.version}-astropy

    livecheck.type  none
}
