# -*- 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-applaunchservices
version             0.3.0
revision            0

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

description         Simple package for registering an app with apple Launch Services to handle UTI and URL
long_description    {*}${description}

homepage            https://github.com/impact27/applaunchservices

checksums           rmd160  5dc74e6c9910587b3d1939c569729972fe6bbd54 \
                    sha256  1cc6ad5c6c88457230b3cc3d1f76c39c00dcd2597af9c6ee592dce5e67eb2cad \
                    size    4673

python.versions     310 311 312 313 314

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

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