# -*- 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-scikit-image
version             0.18.1
revision            0
categories-append   science
platforms           darwin
license             BSD

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Image processing algorithms for SciPy.

long_description    Image processing algorithms for SciPy, including IO, \
                    morphology, filtering, warping, color manipulation, \
                    object detection, etc.

homepage            https://scikit-image.org/

checksums           rmd160  b880d4ca8d86eb7ee7ce8bb9f5aeb8941fb8fee1 \
                    sha256  fbb618ca911867bce45574c1639618cdfb5d94e207432b19bc19563d80d2f171 \
                    size    29663758

if {${name} ne ${subport}} {
    compiler.openmp_version 2.5

    if {${python.version} < 36} {
        version             0.14.2
        revision            2
        distname            ${python.rootname}-${version}
        checksums           rmd160  2126c9e2d11c46e3cabb73656bc048cc27d2c960 \
                            sha256  1afd0b84eefd77afd1071c5c1c402553d67be2d7db8950b32d6f773f25850c1f \
                            size    27785514

        depends_lib-append  port:py${python.version}-six

        depends_run-append  port:py${python.version}-dask \
                            port:py${python.version}-toolz \
                            port:py${python.version}-cloudpickle
    } elseif {${python.version} == 36} {
        version             0.16.2
        revision            1
        epoch               1
        distname            ${python.rootname}-${version}
        checksums           rmd160  4315f53c8b32c3dffe58bf054a458cf9e21379c9 \
                            sha256  dd7fbd32da74d4e9967dc15845f731f16e7966cee61f5dc0e12e2abb1305068c \
                            size    28945695
    } else {
        depends_run-append  port:py${python.version}-tifffile
    }

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

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

    depends_run-append  port:py${python.version}-matplotlib \
                        port:py${python.version}-networkx \
                        port:py${python.version}-Pillow \
                        port:py${python.version}-imageio \
                        port:py${python.version}-pywavelets

    use_parallel_build  no

    livecheck.type      none
}
