aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/coffee-script.rb
blob: f2b708aa5690c0ebd499a8738e547284c92f3180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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