# -*- 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-logical-unification
version             0.4.7
revision            0

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

description         Logical unification in Python
long_description    {*}${description}

homepage            https//github.com/pythological/unification/

distname            logical_unification-${version}

checksums           rmd160  dbbc4290aa4d5806525af1721c108b37c8ea496e \
                    sha256  3d73b263a870827b3f52d89c94f3336afd7fcaecf1e0c67fa18e73025399775c \
                    size    13513

python.versions     39 310 311 312 313

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

    depends_lib-append \
                    port:py${python.version}-toolz \
                    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.txt ${destroot}${docdir}
    }
}
