# $Id: Portfile 36819 2008-05-15 15:17:48Z takanori@macports.org $

PortSystem      1.0

name            libdatrie
version         0.1.2
categories      devel
maintainers     nomaintainer
description     An Implementation of Double-Array Trie.
long_description \
                ${description}
platforms       darwin
homepage        http://linux.thai.net/~thep/datrie/datrie.html
master_sites    http://ftp.yz.yamagata-u.ac.jp/debian/pool/main/libd/libdatrie/ \
                http://ftp.debian.org/debian/pool/main/libd/libdatrie/
distname        ${name}_${version}.orig
patchfiles      patch-datrie_Makefile.in.diff
checksums       md5 3eaedd5452149e11547a0dc74ee3fcfd \
                sha1 cffda60f9f5a51a256273c72c5abed0448a6df4c \
                rmd160 6bf5155b282974a4b6cd1bfadd87139b33710f49

worksrcdir      ${name}-${version}

configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info --disable-doxygen-doc

use_parallel_build  yes

test.run        yes
test.target     check

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${destroot}${prefix}/share/doc/${name}
}

variant with_doxygen description {Create and install API docs} {
    depends_lib-append      port:doxygen
    configure.args-delete   --disable-doxygen-doc
    configure.args-append   --with-html-docdir=${prefix}/share/doc/${name}/html
}
