# -*- 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 105214 2013-04-13 14:16:50Z hum@macports.org $

PortSystem          1.0

name                marisa-trie
version             0.2.4
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  00897f9381b89d08c5190fef8730c9a40aa126a3 \
                    sha256  67a7a4f70d3cc7b0a85eb08f10bc3eaf6763419f0c031f278c1f919121729fb3

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}
