diff options
| author | Chris Hoffman | 2010-03-06 16:53:17 -0600 |
|---|---|---|
| committer | Max Howell | 2010-03-07 17:57:05 +0000 |
| commit | 5a06edf23f9ca89d6716cf7845b0115fa81c8879 (patch) | |
| tree | 85930b2f925aa35fbdfc8dff50839b4768d42d2d | |
| parent | c4decd76fb353c9e8f0bcb07203f214434fc5395 (diff) | |
| download | homebrew-5a06edf23f9ca89d6716cf7845b0115fa81c8879.tar.bz2 | |
New formula coffee-script version 0.5.4
Closes #904
| -rw-r--r-- | Library/Formula/coffee-script.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/coffee-script.rb b/Library/Formula/coffee-script.rb new file mode 100644 index 000000000..f2b708aa5 --- /dev/null +++ b/Library/Formula/coffee-script.rb @@ -0,0 +1,29 @@ +require 'formula' + +class CoffeeScript <Formula + url "http://github.com/jashkenas/coffee-script/tarball/0.5.4" + head "git://github.com/jashkenas/coffee-script.git" + homepage "http://jashkenas.github.com/coffee-script/" + md5 '837f2ae60d4cfb90f6cb30968cc12f15' + + # head coffee-script usually depends on head node and + # since there isn't a way to specify that just remove + # the depends_on + depends_on :node unless ARGV.flag? '--HEAD' + + def caveats + <<-EOS.undent + Coffee is a continually evolving language and as such uses new features of + Node.js as they are added. To take advantage of these features while using + HEAD make sure to install the HEAD version of node and keep it updated. + + brew uninstall node + brew install node --HEAD + EOS + end if ARGV.flag? '--HEAD' + + def install + bin.mkpath + system "./bin/cake", "install", "--prefix", prefix + end +end |
