# -*- 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-lap
version             0.5.12
revision            1

license             BSD
maintainers         nomaintainer

description         Linear Assignment Problem solver (LAPJV/LAPMOD).
long_description    {*}${description}

homepage            https://github.com/gatagat/lap

checksums           rmd160  68eae252fb55f2833a652c47c17698ea3b94b611 \
                    sha256  570b414ea7ae6c04bd49d0ec8cdac1dc5634737755784d44e37f9f668bab44fd \
                    size    1520169

python.versions     313

if {${name} ne ${subport}} {
    patchfiles      patch-cython-setup.py.diff

    post-patch {
        reinplace "s|@@CYTHON_BIN@@|cython-${python.branch}|g" ${worksrcpath}/setup.py
    }

    depends_build-append \
                    port:py${python.version}-cython

    depends_lib-append \
                    port:py${python.version}-numpy
}
