Ticket #29561: Portfile

File Portfile, 1.2 KB (added by rudloff@…, 13 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5
6name                jslint
7version             2011-05-10
8categories          lang
9maintainers         gmail.com:tael67 openmaintainer
10platforms           darwin
11supported_archs     noarch
12
13description         The JavaScript Code Quality Tool
14
15long_description    JSLint is a JavaScript program that looks for problems in \
16                    JavaScript programs. It is a code quality tool.
17
18homepage            http://www.jslint.com/
19fetch.type          git
20git.url             https://github.com/douglascrockford/JSLint.git
21git.branch          b38a8d9db9ead37fa812
22
23depends_lib         port:spidermonkey
24
25patchfiles          patch-jslint.js.diff
26
27post-patch {
28    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/jslint.js
29}
30
31configure {
32    if {[catch {exec ${prefix}/bin/js -e "new File('/dev/null');"} openerror]} {
33        ui_error "You need to install spidermonkey with the +fileobject variant in order to use ${name}."
34        return -code error "incompatible spidermonkey installation"
35    }
36}
37
38build {}
39
40destroot {
41    xinstall ${worksrcpath}/jslint.js ${destroot}${prefix}/bin/jslint
42}