# -*- 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-editdistance
version             0.8.1
revision            0

categories-append   textproc
license             MIT
maintainers         nomaintainer

description         Fast implementation of the edit distance (Levenshtein distance).
long_description    {*}${description} This library simply implements \
                    Levenshtein distance with C++ and Cython. The \
                    algorithm used in this library is proposed by \
                    Heikki Hyyrö, \"Explaining and extending the \
                    bit-parallel approximate string matching algorithm \
                    of Myers\", (2001).

homepage            https://github.com/roy-ht/editdistance

checksums           rmd160  3e503afef611a61f1286ca224716573ce2739114 \
                    sha256  d1cdf80a5d5014b0c9126a69a42ce55a457b457f6986ff69ca98e4fe4d2d8fed \
                    size    50006

python.versions     311 312 313 314 315
python.pep517_backend pdm

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-cython

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