# $Id: Portfile 50073 2009-04-24 07:41:22Z raimue@macports.org $

PortSystem 1.0

name            tcl-dox
version         0.8.3
categories      textproc
platforms       darwin
maintainers     raimue
description     Tcl-Dox is a filter that you can use with Doxygen for documenting Tcl source code.
long_description \
    ${description}
homepage        http://therowes.net/~greg/software/

master_sites    http://therowes.net/~greg/download/tcl-doxygen-filter/

checksums       md5     94d0befbb7b7734e17fd37379e649d2f \
                sha1    b83a6f132ff6b8bec569f98e00c9041b37047777 \
                rmd160  7be30d03f0ff66f1764dbd8492f35c91bf3422ae

depends_build   bin:flex:flex

use_configure   no

build.args      -C src

destroot {
    # docs
	set docdir ${prefix}/share/doc/${name}-${version}
	xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README ChangeLog ${destroot}${docdir}
    file copy ${worksrcpath}/example ${destroot}${docdir}

    # executable
    xinstall -m 755 -W ${worksrcpath} src/${name} ${destroot}${prefix}/bin
}

livecheck.check         regex
livecheck.url           ${master_sites}
livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
