# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup jashkenas coffee-script 1.3.3 revision 1 platforms darwin categories lang maintainers ryandesign openmaintainer license MIT supported_archs noarch description a language that compiles into JavaScript long_description CoffeeScript is ${description}. Underneath all of \ those embarrassing braces and semicolons, JavaScript \ has always had a gorgeous object model at its heart. \ CoffeeScript is an attempt to expose the good parts \ of JavaScript in a simple way. homepage http://jashkenas.github.com/coffee-script/ checksums rmd160 22cf20180c06c92f5fdc223180ba94bb96b6ff7b \ sha256 21b6782b23e09e768ff8b440eeddb0c42c7ad94990d120a348bfd4ffaf6511e0 depends_lib path:bin/node:nodejs4 patchfiles patch-Cakefile.diff patch-prefix.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/bin/cake ${worksrcpath}/bin/coffee } use_configure no build.cmd bin/cake build.target build destroot.destdir destroot.pre_args --prefix ${destroot}${prefix} ${destroot.target} post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} \ LICENSE \ README \ ${docdir} } if {![file exists $env(HOME)/.node_libraries/coffee-script]} { notes-append " To use ${name}, make a symlink to ${prefix}/lib/coffee-script/lib at\ ~/.node_libraries/coffee-script: mkdir -p ~/.node_libraries ln -s ${prefix}/lib/coffee-script/lib ~/.node_libraries/coffee-script " }