source: trunk/dports/lang/jslint/Portfile

Last change on this file was 78871, checked in by ryandesign@…, 6 years ago

dylibbundler, jslint: update maintainer email address; see #29417

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
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: Portfile 78871 2011-05-24 22:08:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                jslint
7version             2011-05-10
8categories          lang
9maintainers         strasweb.fr:rudloff 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 "File;"} 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}
Note: See TracBrowser for help on using the repository browser.