# -*- 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        spyder-ide qtawesome 1.4.1 v
github.tarball_from archive
revision            0
name                py-qtawesome

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Iconic Fonts in PyQt and PySide applications.
long_description    QtAwesome enables iconic fonts such as Font Awesome and \
                    Elusive Icons in PyQt and PySide applications.

checksums           rmd160  cd13147d06ea386117faf9290c6c0c90415404e2 \
                    sha256  7be2fce8e9d7d40ea7398837cea4f3404fe2d4119a576a4f7768232dcf2bd22b \
                    size    2892544

python.versions     310 311 312 313 314

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

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

    test.run        yes

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