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 | |
---|
9 | categories lang |
---|
10 | maintainers gmail.com:tael67 openmaintainer |
---|
11 | platforms darwin |
---|
12 | |
---|
13 | description The JavaScript Code Quality Tool |
---|
14 | |
---|
15 | long_description JSLint is a JavaScript program that looks for problems in JavaScript programs.\ |
---|
16 | 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_run port:spidermonkey |
---|
24 | |
---|
25 | patchfiles patch-jslint.js.diff |
---|
26 | |
---|
27 | pre-configure { |
---|
28 | if {[catch {exec js -e "new File();"} openerror]} { |
---|
29 | ui_error "You need to compile spidermonkey with JS_HAS_FILE_OBJECT in order to use jslint." |
---|
30 | error "spidermonkey +fileobject not installed." |
---|
31 | } |
---|
32 | } |
---|
33 | use_configure no |
---|
34 | build { } |
---|
35 | destroot { |
---|
36 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/jslint.js |
---|
37 | copy ${worksrcpath}/jslint.js ${destroot}${prefix}/bin/jslint |
---|
38 | } |
---|