# -*- 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-minikanren
version             1.0.5
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Relational programming in Python
long_description    {*}${description}

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

checksums           rmd160  b38cb8035dd677a6cbae2a9cb265d394ea82576e \
                    sha256  c030e3e9a3fa5f372f84b66966776a8dc63b16b98768b78be0401982b892e00d \
                    size    21699

python.versions     310 311 312 313 314

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}-cons \
                    port:py${python.version}-multipledispatch \
                    port:py${python.version}-etuples \
                    port:py${python.version}-logical-unification

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