# -*- 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
PortGroup           github 1.0

github.setup        blambright qstylizer 0.1.10
github.tarball_from archive
revision            0
name                py-qstylizer

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Qt stylesheet generation utility for PyQt/PySide
long_description    ${description}

checksums           rmd160  3f17a3c98207283ee303e3170900020e33af2e64 \
                    sha256  a5d561ef757d1751766674fba977e339cb4028b057a350969224403f286c4751 \
                    size    20683

python.versions     36 37 38 39

if {${name} ne ${subport}} {
    # workaround for missing version information in metadata
    build.env-append    PBR_VERSION=${version}
    destroot.env-append PBR_VERSION=${version}

    depends_build-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-pbr

    depends_build-append \
                    port:py${python.version}-inflection \
                    port:py${python.version}-tinycss \

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

    livecheck.type  none
}
