# -*- 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-ds-store
version             1.3.2
distname            ds_store-${version}

categories-append   devel
license             {MIT PSF}
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
description         Manipulate Finder .DS_Store files from Python
long_description    ds_store lets you examine and modify .DS_Store files from Python code\; since it is written in pure Python, it is portable and will run on any platform, not just Mac OS X.

homepage            https://ds-store.readthedocs.io/en/latest/

checksums           rmd160  880deec424f4ceb705a3311f7154777956c531e4 \
                    sha256  e4da49df901123481a85b9250945f2aac054a0f0c29352cd2cc858c536cdd364 \
                    size    26574

patchfiles-append   patch-pyproject.patch

python.versions     310 311 312 313 314

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

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} \
        ${destroot}${prefix}/share/examples/${subport}
        xinstall -m 644 -W ${worksrcpath} LICENSE README.rst \
        ${destroot}${prefix}/share/doc/${subport}
    }
}
