source: trunk/dports/lang/coffee-script/Portfile

Last change on this file was 149599, checked in by ciserlohn@…, 15 months ago

nodejs, nodejs-devel, nodejs4, nodejs5, nodejs6: new naming scheme

  • Rename nodejs to nodejs4.
  • Rename nodejs-devel to nodejs6.
  • New port nodejs5.
  • Update to the latest versions (4.4.6, 5.12.0, 6.2.2).
  • Remove ssl variant. Always build with ssl support enabled.
  • Remove python2.6 and python2.7 variants. Always use python2.7 as python2.6 is EOL.
  • Remove dtrace variant. It does nothing and was only for legacy compatibility.
  • Update all dependent ports.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 149599 2016-06-27 20:48:58Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        jashkenas coffee-script 1.3.3
8revision            1
9platforms           darwin
10categories          lang
11maintainers         ryandesign openmaintainer
12license             MIT
13supported_archs     noarch
14
15description         a language that compiles into JavaScript
16
17long_description    CoffeeScript is ${description}. Underneath all of \
18                    those embarrassing braces and semicolons, JavaScript \
19                    has always had a gorgeous object model at its heart. \
20                    CoffeeScript is an attempt to expose the good parts \
21                    of JavaScript in a simple way.
22
23homepage            http://jashkenas.github.com/coffee-script/
24
25checksums           rmd160  22cf20180c06c92f5fdc223180ba94bb96b6ff7b \
26                    sha256  21b6782b23e09e768ff8b440eeddb0c42c7ad94990d120a348bfd4ffaf6511e0
27
28depends_lib         path:bin/node:nodejs4
29
30patchfiles          patch-Cakefile.diff patch-prefix.diff
31
32post-patch {
33    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/bin/cake ${worksrcpath}/bin/coffee
34}
35
36use_configure       no
37
38build.cmd           bin/cake
39build.target        build
40
41destroot.destdir
42destroot.pre_args   --prefix ${destroot}${prefix} ${destroot.target}
43
44post-destroot {
45    set docdir ${destroot}${prefix}/share/doc/${name}
46    xinstall -d ${docdir}
47    xinstall -m 644 -W ${worksrcpath} \
48        LICENSE \
49        README \
50        ${docdir}
51}
52
53if {![file exists $env(HOME)/.node_libraries/coffee-script]} {
54    notes-append "
55To use ${name}, make a symlink to ${prefix}/lib/coffee-script/lib at\
56~/.node_libraries/coffee-script:
57
58    mkdir -p ~/.node_libraries
59    ln -s ${prefix}/lib/coffee-script/lib ~/.node_libraries/coffee-script
60"
61}
Note: See TracBrowser for help on using the repository browser.