2010-03-06 22:53:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class CoffeeScript <Formula
|
2010-08-27 18:30:48 +00:00
|
|
|
url 'http://github.com/jashkenas/coffee-script/tarball/0.9.2'
|
2010-06-29 00:48:45 +00:00
|
|
|
head 'git://github.com/jashkenas/coffee-script.git'
|
|
|
|
homepage 'http://jashkenas.github.com/coffee-script/'
|
2010-08-27 18:30:48 +00:00
|
|
|
md5 '640ca996fb9e8c2f09022b5787c0d3fc'
|
2010-03-06 22:53:17 +00:00
|
|
|
|
|
|
|
# head coffee-script usually depends on head node and
|
|
|
|
# since there isn't a way to specify that just remove
|
|
|
|
# the depends_on
|
2010-04-07 05:58:35 +00:00
|
|
|
depends_on 'node' unless ARGV.build_head?
|
2010-03-06 22:53:17 +00:00
|
|
|
|
2010-08-09 16:13:58 +00:00
|
|
|
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.
|
2010-03-06 22:53:17 +00:00
|
|
|
|
2010-08-09 16:13:58 +00:00
|
|
|
This formula may be retired from a future version of Homebrew.
|
2010-03-06 22:53:17 +00:00
|
|
|
EOS
|
2010-07-09 19:40:41 +00:00
|
|
|
end if ARGV.build_head?
|
2010-03-06 22:53:17 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
bin.mkpath
|
2010-07-12 22:56:57 +00:00
|
|
|
system "./bin/cake", "--prefix", prefix, "install"
|
2010-03-06 22:53:17 +00:00
|
|
|
end
|
|
|
|
end
|