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

PortSystem          1.0

name                javascript-lint
version             0.3.0
categories          lang devel
license             {MPL-1.1 LGPL-2.1}
maintainers         nomaintainer

description         Lint program for JavaScript
long_description    JavaScript Lint lets you check all your JavaScript \
                    source code for common mistakes without actually \
                    running the script or opening the web page.
homepage            http://www.javascriptlint.com

master_sites        http://www.javascriptlint.com/download
distname            jsl-${version}-src
checksums           md5 2b94ffa4fab07acabe0c5e73cd49bcdf \
                    rmd160 8527738a1ae1dea7626c40da01dc94f502fa3fcb \
                    sha256 86f16792d71fc59b96f65eca65b1b7466dc046efe6d5ac04c6632f1315e83cfa

patchfiles          find-va_copy.patch \
                    add-unistd-include.patch

use_configure       no
worksrcdir          jsl-${version}/src

use_parallel_build  no
build.pre_args      -f Makefile.ref
build.target
build.args          CC=${configure.cc}
build.env           "CFLAGS=${configure.cflags} [get_canonical_archflags cc]"

destroot {
    file copy ${worksrcpath}/Darwin_DBG.OBJ/jsl ${destroot}${prefix}/bin
}
