2010-03-06 22:53:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class CoffeeScript < Formula
|
2011-12-19 19:28:57 +00:00
|
|
|
url 'http://github.com/jashkenas/coffee-script/tarball/1.2.0'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/jashkenas/coffee-script.git'
|
2010-06-29 00:48:45 +00:00
|
|
|
homepage 'http://jashkenas.github.com/coffee-script/'
|
2011-12-19 19:28:57 +00:00
|
|
|
md5 '5dfc3ee21214f1b7e86c0535f5386a35'
|
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-11-07 19:34:01 +00:00
|
|
|
def install
|
|
|
|
bin.mkpath
|
|
|
|
system "./bin/cake", "--prefix", prefix, "install"
|
|
|
|
end
|
|
|
|
|
2010-08-09 16:13:58 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2011-12-20 15:07:16 +00:00
|
|
|
coffee-script can also be installed via npm with:
|
|
|
|
npm install coffee-script
|
2010-03-06 22:53:17 +00:00
|
|
|
|
2011-12-20 15:07:16 +00:00
|
|
|
This has the advantage of supporting multiple versions of Node libs
|
|
|
|
at the same time.
|
2010-03-06 22:53:17 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|