homebrew-core/Formula/coffee-script.rb

31 lines
952 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class CoffeeScript < Formula
url 'https://github.com/jashkenas/coffee-script/tarball/1.0.1'
head 'git://github.com/jashkenas/coffee-script.git'
homepage 'http://jashkenas.github.com/coffee-script/'
md5 '653f5eecedf84cc8293a80f90b53247f'
# 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?
2010-11-07 19:34:01 +00:00
def install
bin.mkpath
system "./bin/cake", "--prefix", prefix, "install"
end
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)
2010-11-07 19:34:01 +00:00
at the same time.
Since coffee-script syntax changed pretty drastically between 0.7.2 and
0.9.x, you may want to install it via npm instead.
This formula may be retired from a future version of Homebrew.
EOS
end
end