# -*- 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.6
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/

checksums           rmd160  3d448b7e67ceecd3dcfe06b641714c8e2328cf6d \
                    sha256  908435123f8a106fa4dcf9bf1b75c7beb309fa2bbecf277868af8f1c212650a0 \
                    size    31679

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    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}
    }
}