PortSystem      1.0

name            darts
version         0.32
categories      devel
maintainers     nomaintainer
description     Double-ARray Trie System
long_description \
                Darts is a C++ Templeate library which can be used to make Double-Array. \
                Reference: \
                Aoe, J. An Efficient Digital Search Algorithm by Using \
                a Double-Array Structure. IEEE Transactions on Software Engineering. \
                Vol. 15, 9 (Sep 1989). pp. 1066-1077
platforms       darwin
license         LGPL-2.1+ BSD
homepage        http://chasen.org/~taku/software/darts/
master_sites    http://chasen.org/~taku/software/darts/src/
patchfiles      patch-configure.diff
checksums       md5 2149e32b8e33cf38864f7fc25a6532fb \
                sha1 14a20a36ded935bef2752a726e027baece7bc801 \
                rmd160 16b82a9ca2861bdda2a0f96cdf1f7ee8030408b7

conflicts       darts-clone

depends_lib     port:zlib

configure.args  --libexecdir=${prefix}/lib

use_parallel_build  yes

test.run        yes
test.target     check

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc

    xinstall -m 644 -W ${worksrcpath} AUTHORS BSD COPYING ChangeLog INSTALL LGPL NEWS README ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath}/doc darts.css index.html ${destroot}${prefix}/share/doc/${name}/doc
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex ${name}-(\[0-9.a-z\]+)\\.tar
