Files
tigerbrew/Library/Formula/coffee-script.rb
T
Adam Vandenberg d0efd9ee94 Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

30 lines
897 B
Ruby

require 'formula'
class CoffeeScript <Formula
url 'http://github.com/jashkenas/coffee-script/tarball/0.7.2'
head 'git://github.com/jashkenas/coffee-script.git'
homepage 'http://jashkenas.github.com/coffee-script/'
md5 'cfccf25272d329bc78349771b18fe4e0'
# 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 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.build_head?
def install
bin.mkpath
system "./bin/cake", "--prefix", prefix, "install"
end
end