# -*- 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-blockdiag
version             2.0.1
revision            0
categories-append   graphics
platforms           darwin
license             Apache-2
supported_archs     noarch

python.versions     27 35 36 37 38

maintainers         {stromnov @stromnov} openmaintainer

description         blockdiag generates block-diagram image from text
long_description    ${description}

homepage            http://blockdiag.com/

checksums           rmd160  be072c6735233c7c336577cc35bd3ae8626d6483 \
                    sha256  16a69dd9f3b44c9e0869999ce82aa968586698febc86ece9ca0c902dba772397 \
                    size    2694776

if {${name} ne ${subport}} {

    if {${python.version} <= 35} {
        version             1.5.4
        revision            1
        distname            ${python.rootname}-${version}
        checksums           rmd160  e4de1dd2967a05818307253e62725783ebcec1a3 \
                            sha256  929125db1cb59145e09dc561021389c7ca71108ef4e4c51a12728eea5b75fccc \
                            size    2693073
    }

    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-funcparserlib \
                        port:py${python.version}-Pillow \
                        port:py${python.version}-webcolors

    livecheck.type      none
}
