Ticket #29445: Portfile

File Portfile, 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
21
22depends_run         port:spidermonkey
23
24patchfiles          patch-jslint.js.diff
25
26pre-fetch {
27        if {[catch {exec js -e "new File();"} openerror]} {
28                ui_error "You need to compile spidermonkey with JS_HAS_FILE_OBJECT in order to use jslint."
29                error "spidermonkey +fileobject not installed."
30        }
31}
32use_configure no
33build { }
34destroot {
35           reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/jslint.js
36           copy ${worksrcpath}/jslint.js ${destroot}/${prefix}/bin/jslint
37 }