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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name jslint |
---|
7 | version 2011-05-10 |
---|
8 | categories lang |
---|
9 | maintainers gmail.com:tael67 openmaintainer |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | |
---|
13 | description The JavaScript Code Quality Tool |
---|
14 | |
---|
15 | long_description JSLint is a JavaScript program that looks for problems in \ |
---|
16 | JavaScript programs. It is a code quality tool. |
---|
17 | |
---|
18 | homepage http://www.jslint.com/ |
---|
19 | fetch.type git |
---|
20 | git.url https://github.com/douglascrockford/JSLint.git |
---|
21 | git.branch b38a8d9db9ead37fa812 |
---|
22 | |
---|
23 | depends_lib port:spidermonkey |
---|
24 | |
---|
25 | patchfiles patch-jslint.js.diff |
---|
26 | |
---|
27 | post-patch { |
---|
28 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/jslint.js |
---|
29 | } |
---|
30 | |
---|
31 | configure { |
---|
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 | |
---|
38 | build {} |
---|
39 | |
---|
40 | destroot { |
---|
41 | xinstall ${worksrcpath}/jslint.js ${destroot}${prefix}/bin/jslint |
---|
42 | } |
---|