Portfile

# $Id: Portfile 22310 2007-02-26 03:10:10Z takanori@macports.org $

PortSystem 1.0
name darts
version 0.31
categories devel
maintainers takanori@macports.org
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
homepage http://chasen.org/~taku/software/darts/
master_sites http://chasen.org/~taku/software/darts/src/
checksums md5 41b1b8739c7c7c902ce07f60d225d9a2 \
sha1 cd76d69ed5c356bbd94b251daec004283f5771bb \
rmd160 a4f3e00ff992d34031668fb9fc6ef0c9e8b5965d

depends_lib port:zlib

configure.args --libexecdir=${prefix}/lib
configure.env CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

test.run yes
test.target check

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

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

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