# -*- 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 105591 2013-04-26 15:40:22Z hum@macports.org $

PortSystem          1.0

name                cedar
version             2013-04-23
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  4e6fc6186163b759b2adb4850878c9a22a361fb1 \
                    sha256  5e86e6d611d720825bb85bf2832140c1377e5b263dc3635787dbca026bc48e15

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

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