# -*- 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           github 1.0
PortGroup           python 1.0

epoch               1
# Don't upgrade past py-spaCy's highest supported version.
github.setup        explosion catalogue 2.0.10 v
github.tarball_from archive
revision            0

checksums           rmd160  d58489f70dcb99f202cf60d6aef18f12d0141b20 \
                    sha256  e1a6ba957daf33383d47d72a513af8c774b925e1f18b07355d92dae6fef4919a \
                    size    16549

name                py-${github.project}
categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         Super lightweight function registries for your library
long_description    catalogue is a tiny, zero-dependencies library\
                    that makes it easy to add function (or object)\
                    registries to your code. Function registries are\
                    helpful when you have objects that need to be both\
                    easily serializable and fully\
                    customizable. Instead of passing a function into\
                    your object, you pass in an identifier name, which\
                    the object can use to lookup the function from the\
                    registry. This makes the object easy to serialize,\
                    because the name is a simple string. If you\
                    instead saved the function, you'd have to use\
                    Pickle for serialization, which has many drawbacks.

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    test.run        yes

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