# -*- 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-imageio
version             2.9.0
revision            0
categories-append   graphics
platforms           darwin
license             BSD

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Easy interface to read and write a wide range of image data.
long_description    ${description}

homepage            https://imageio.github.io/

checksums           rmd160  b92ba421826947c4603186572eda219fd9aae02d \
                    sha256  52ddbaeca2dccf53ba2d6dec5676ca7bc3b2403ef8b37f7da78b7654bb3e10f0 \
                    size    3341646

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-numpy \
                        port:py${python.version}-Pillow

    if {${python.version} <= 35} {
        version             2.6.1
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  40a9608dea5cd995a9c935f3c48837ea7b4e6ab2 \
                            sha256  f44eb231b9df485874f2ffd22dfd0c3c711e7de076516b9374edea5c65bc67ae \
                            size    3353198

        if {${python.version} eq 27} {
            depends_lib-append  port:py${python.version}-enum34 \
                                port:py${python.version}-futures
        }
    }

    livecheck.type          none
}
