# -*- 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
# $Id: Portfile 91925 2012-04-13 08:37:27Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-imread
version             0.2.1
revision            0
categories-append   graphics
license             MIT
platforms           darwin

maintainers         stromnov openmaintainer

description         Reads images into numpy arrays
long_description    ${description}

homepage            http://luispedro.org/software/imread/
master_sites        http://pypi.python.org/packages/source/i/imread/

distname            imread-${version}

checksums           rmd160  3c54bd9407937ccd37e36c80e547995b9f42cd8b \
                    sha256  d70141de40d8fe13d811a8581927bfe5dda2a38f67608d93eda0e573e07993d8

python.default_version  27
python.versions     26 27

if {$subport != $name} {
    depends_build-append    port:py${python.version}-distribute
    depends_lib-append      port:py${python.version}-numpy \
                            port:libpng \
                            port:jpeg \
                            port:tiff \
                            port:webp
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "imread-(\\d+(?:\\.\\d+)*)${extract.suffix}"
