Ticket #29445: Portfile.2

File Portfile.2, 1.1 KB (added by tael67@…, 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
8
9categories          lang
10maintainers         gmail.com:tael67 openmaintainer
11platforms                       darwin
12
13description         The JavaScript Code Quality Tool
14
15long_description    JSLint is a JavaScript program that looks for problems in JavaScript programs.\
16                                        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_run         port:spidermonkey
24
25patchfiles          patch-jslint.js.diff
26
27pre-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}
33use_configure no
34build { }
35destroot {
36           reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/jslint.js
37           copy ${worksrcpath}/jslint.js ${destroot}${prefix}/bin/jslint
38 }