# -*- 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-qstylizer
version             0.2.4
revision            0

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

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

homepage            https://github.com/blambright/qstylizer

checksums           rmd160  00cf5003c43f8379edc51f4876f0dee07c521339 \
                    sha256  4880991d912c9837454832e8e2b58d60b66848d8c4a7cf57ed544fd68b91a23a \
                    size    25036

python.versions     310 311 312 313 314

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}-pbr

    depends_run-append \
                    port:py${python.version}-inflection \
                    port:py${python.version}-tinycss2

    depends_test-append \
                    port:py${python.version}-pytest-mock

    test.run        yes

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