# -*- 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
# $Id: Portfile 119564 2014-04-30 14:41:48Z hum@macports.org $

PortSystem          1.0

name                cedar
version             2014-04-25
categories          textproc
maintainers         hum openmaintainer

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}

master_sites        ${homepage}
checksums           rmd160  4fd3274196a7366fdb7a9155392834f7dd6ad15b \
                    sha256  1aea6dc8c54f9fdea0a2ec02008ce93211c2502dacfee69b4c8bc7dd8facddfb

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

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