# -*- 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

name                cedar
version             2022-03-18
categories          textproc
maintainers         nomaintainer

description         C++ implementation of efficiently-updatable double-array library

long_description    Cedar implements a double-array trie. It offers fast \
                    update/lookup for skewed (or ordered) queries\; it is meant \
                    for skewed update/lookup with real-world data, e.g., words \
                    in natural language text or mining conjunctive features in \
                    a linear classifier. Even if keys are uniformly, randomly \
                    queried, its update/lookup is still faster than std::map \
                    and comparable to std::unordered_map.

homepage            http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/cedar/
platforms           darwin
license             {GPL-2 LGPL-2.1 BSD}

master_sites        ${homepage}
checksums           rmd160  3ce42e893340303e5aa2a9e9ebde9a3343f97bab \
                    sha256  5f0674365e0b2c470f08623660ea93e258b3c511c793716b02089c9c4dc7a7aa \
                    size    136279

post-destroot {
    # install additional documents.
    set dest_doc ${destroot}${prefix}/share/doc/${name}
    file mkdir ${dest_doc}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS BSD GPL LGPL THANKS \
        ${dest_doc}
}

livecheck.type      regex
livecheck.regex     ${name}-(\\d+-\\d+-\\d+)${extract.suffix}
