# $Id: Portfile 70583 2010-08-14 13:56:39Z ryandesign@macports.org $

PortSystem 1.0

name		tcldoc
version		0.3
revision	1
categories	lang
maintainers	nomaintainer
description	Generates HTML pages of API documentation from Tcl source files
long_description   	\
	TclDoc parses the declarations and documentation comments in a set of Tcl source files and \
	produces a corresponding set of HTML pages describing procedure declarations.
homepage	http://wiki.tcl.tk/5598
platforms	darwin
supported_archs	noarch
master_sites	 http://tcl.jtang.org/tcldoc/
checksums	md5 3bd2033e109ad0e9e251e99f6c83ff0e			\
		sha1 637ee971e01157db540f24655e1b796422efbe58

use_configure	no
build.target	all tcldoc
destroot {
        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
        foreach file [glob ${worksrcpath}/${name}/*.html] {
                copy $file ${destroot}${prefix}/share/doc/${name}
        }
        foreach file [glob ${worksrcpath}/*.tcl] {
                copy $file ${destroot}${prefix}/bin
        }
        ln -s ${name}.tcl  ${destroot}${prefix}/bin/${name}
}
