# -*- 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.2.0
revision            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  ecc5e8725ead3d02dbd7b5a1ede428519ecdf3cf \
                    sha256  b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1 \
                    size    1274955

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

python.versions     27 35 36 37 38 39

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

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} README.rst \
           ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}
