# -*- 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-etuples
version             0.3.10
revision            0

supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python S-expression emulation using tuple-like objects.
long_description    {*}${description}

homepage            https://github.com/pythological/etuples

checksums           rmd160  46eed4c4b2b94bfe26eaab5a9a3d65e7e21a5c7c \
                    sha256  26fde81d7e822837146231bfce4d6ba67eab5d7ed55bc58ba7437c2568051167 \
                    size    21493

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib-append \
                    port:py${python.version}-cons \
                    port:py${python.version}-multipledispatch

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