# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:sw=4:ts=4:sts=4

PortSystem 1.0

name                nagelfar
version             1.3.5
revision            0
set relversion      [join [lrange [split ${version} .] 0 2] ""]
categories          lang
license             GPL-2
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.sourceforge.net

supported_archs     noarch
platforms           any

master_sites        sourceforge:/project/${name}/Rel_${relversion}

distname            ${name}${relversion}

checksums           rmd160  4b7c8531a518845593699a7b48b93426c391b249 \
                    sha256  3baf920fb34b73e32067118365d074d859298e2bce3748ad9458624bece85b23 \
                    size    163064

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}
    }
}

livecheck.version   ${relversion}
livecheck.regex     Rel_(\[0-9.\]+)
