# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-imagesize
version             1.1.0
categories-append   devel graphics
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         get size from image file headers
long_description \
   This module analyzes jpeg/jpeg2000/png/gif image headers and returns the \
   image size.

homepage            https://github.com/shibukawa/imagesize_py
master_sites        pypi:i/imagesize/

checksums           rmd160  266d0cb2befd5bb93c980a7bb672cd99e41ad6b9 \
                    sha256  f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5 \
                    size    1275201

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

python.versions     27 34 35 36 37

if {$subport ne $name} {
    depends_build    port:py${python.version}-setuptools
    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README.rst \
           ${destroot}${prefix}/share/doc/${subport}
    }
}