# -*- 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.1
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  a5a3a5ca0f221c43a8feddc66a864e080588e1c0 \
                    sha256  c27d413caf13c19acb85d75da4752673f1f38267f9eb6ba81b3b5aa99c2d207c \
                    size    27052

python.versions     310 311 312

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