# -*- 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
PortGroup           github 1.0

epoch               1
github.setup        s-yata marisa-trie 0.2.6 v
revision            0
checksums           rmd160  14b7fb6f5ec4f9234bcf6b7e771fe8e5e43b38c3 \
                    sha256  1063a27c789e75afa2ee6f1716cc6a5486631dcfcb7f4d56d6485d2462e566de \
                    size    168332

categories          textproc
maintainers         nomaintainer
# Hopefully this is correct. Check back here later to make sure:
# https://github.com/s-yata/marisa-trie/issues/54
license             {BSD LGPL-2.1+}

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.

worksrcdir          ${worksrcdir}
distname            marisa-${version}
github.tarball_from releases

# Hopefully not needed in versions after 0.2.6. See:
# https://github.com/s-yata/marisa-trie/issues/53
master_sites        ${github.homepage}/files/4832504/

# Hopefully not needed in versions after 0.2.6. See:
# https://github.com/s-yata/marisa-trie/issues/53
use_autoreconf      yes

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.md README.md \
        ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath}/docs \
        readme.en.html readme.ja.html style.css \
        ${destroot}${docdir}/docs
}
