homebrew-core/Formula/redcar.rb
Adam Vandenberg 283c20d66e Formula for redcar text editor.
Redcar is an open-source programmer's text editor with TextMate
Bundle support.

Note that the editor is still in heavy development, and this brew
only builds from the trunk on GitHub.
2010-05-01 09:43:24 -07:00

26 lines
671 B
Ruby

require 'formula'
class Redcar <Formula
head 'git://github.com/danlucraft/redcar.git'
homepage 'http://github.com/danlucraft/redcar'
depends_on 'jruby'
# rspec doesn't provide an 'rspec' module, so our test fails.
# depends_on 'rspec' => :jruby
depends_on 'cucumber' => :jruby
def install
puts "You need the RSpec gem installed under JRuby or this will not work."
system "jruby bin/redcar install"
system "jruby -S rake build"
libexec.install ['bin', 'lib', 'plugins', 'textmate', 'vendor']
(bin+'redcar').write <<-EOS
#!/bin/bash
jruby -J-XstartOnFirstThread \"#{libexec}/bin/redcar\"
EOS
chmod 0555, (bin+'redcar')
end
end