# $Id: Portfile 54899 2009-08-04 08:10:23Z afb@macports.org $

PortSystem 1.0

name		nagelfar
version		1.1.8
categories	lang
maintainers	nomaintainer
description	A Tcl Syntax checker
long_description   	\
	Nagelfar is a Tcl application to read a Tcl program and \
        provide static syntax analysis - information regarding \
        Tcl syntax errors like missing braces, incomplete commands, etc.
homepage	http://nagelfar.berlios.de
platforms	darwin
master_sites	http://download.berlios.de/${name}/
distname	nagelfar118
checksums	md5 3750f3bfb1ba4648e1528acbcf78aebf \
		sha1 122be96d1483d656c0681c0a57a46d42e12d9fce \
		rmd160 524cd07364f14a1dd1348a9c5584b8fda016fe29

worksrcdir	${name}
use_configure	no

build {}
destroot {
	xinstall -d ${destroot}${prefix}/lib/${name}
	foreach file [glob ${worksrcpath}/*.tcl] {
		copy $file ${destroot}${prefix}/lib/${name}
	}
	ln -s ${prefix}/lib/${name}/${name}.tcl  ${destroot}${prefix}/bin/${name}

	xinstall -d ${destroot}${prefix}/share/doc/${name}
	foreach file [glob ${worksrcpath}/doc/*] {
	    copy $file ${destroot}${prefix}/share/doc/${name}
	}
}
