# -*- 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.5.0
revision            0
categories-append   graphics
platforms           darwin
license             BSD

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

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

homepage            http://imageio.github.io/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  80d65d195bdec0c506b08b1258bdf930c4460fb9 \
                    sha256  42e65aadfc3d57a1043615c92bdf6319b67589e49a0aae2b985b82144aceacad \
                    size    3349024

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} eq 27} {
        depends_lib-append  port:py${python.version}-enum34 \
                            port:py${python.version}-futures
    }

    livecheck.type          none
}