# -*- 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 90465 2012-03-06 14:15:40Z hum@macports.org $

PortSystem          1.0

name                marisa-trie
version             0.2.0
epoch               1
categories          textproc
maintainers         hum openmaintainer

description         a static and space-efficient trie data structure
long_description    Matching Algorithm with Recursively Implemented StorAge \
                    (MARISA) is a static and space-efficient trie data structure. \
                    And libmarisa is a C++ library to provide an implementation \
                    of MARISA. Also, the package of libmarisa contains a set of \
                    command line tools for building and operating a MARISA-based \
                    dictionary.

homepage            http://code.google.com/p/marisa-trie/
platforms           darwin
license             BSD

master_sites        googlecode
checksums           rmd160  8e750e4cb4d0fb9eb268cf1a64b28633c08e7aef \
                    sha256  b33f4ac88562d4bcd2c9cd90a73b5a33203cc10f0ce9c0e1c80ec2bc69e8b337

distname            marisa-${version}

test.run            yes
test.target         check

post-destroot {
    set docdir         ${prefix}/share/doc/${name}
    xinstall -m 755 -d ${destroot}${docdir}/docs
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING README \
        ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath}/docs \
        readme.en.html readme.ja.html style.css \
        ${destroot}${docdir}/docs
}

livecheck.regex     {/marisa-([0-9.-]+)\.tar\.gz}
