# -*- 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-desktop-notifier
version             6.2.0
revision            0

categories-append   sysutils
license             MIT
supported_archs     noarch
platforms           {darwin any}
maintainers         nomaintainer

description         ${name} is a Python library for cross-platform desktop notifications
long_description    {*}${description}

homepage            https://github.com/samschott/desktop-notifier

distname            desktop_notifier-${version}

checksums           rmd160  521cb6bf85aea21c48d8ed84d19efa1cf03a5a4e \
                    sha256  528167b691ce40031fa92f67c9f452b7be29846613e19d11ec0c49cb5242d338 \
                    size    34487

python.versions     310 311 312 313 314

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

    if {${os.platform} eq "darwin"} {
        depends_lib-append \
                    port:py${python.version}-rubicon-objc
    } else {
        depends_lib-append \
                    port:py${python.version}-dbus-fast
    }
}
