# -*- 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.7 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

checksums           rmd160  b358de804e66a737293065beb18bd04693fef2d9 \
                    sha256  4d38d8cf2b8847330e4c3250bfcb13b3f9cfa6ba78f08fa48f3cbdce32fbac31 \
                    size    16007

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     39 310 311

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}
    }
}
