blob: c5b4f5aee46a5ea68d701ae8513b80bc1a58360b (
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
|
require 'formula'
class CoffeeScript <Formula
url 'http://github.com/jashkenas/coffee-script/tarball/0.9.2'
head 'git://github.com/jashkenas/coffee-script.git'
homepage 'http://jashkenas.github.com/coffee-script/'
md5 '640ca996fb9e8c2f09022b5787c0d3fc'
# 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.build_head?
def caveats; <<-EOS.undent
coffee-script can also be installed via `npm install coffee-script`.
This has the advantage of supporting multiple versions (of any Node libs)
at the same time. Since coffee-script syntax changed pretty drastically
between 0.7.2 and 0.9, you may want to install it via npm instead.
This formula may be retired from a future version of Homebrew.
EOS
end if ARGV.build_head?
def install
bin.mkpath
system "./bin/cake", "--prefix", prefix, "install"
end
end
|