diff options
| author | Clinton R. Nixon | 2009-09-07 00:13:03 -0400 |
|---|---|---|
| committer | Max Howell | 2009-09-14 20:33:46 +0100 |
| commit | fac9bd041311c3533ae44d2d7ea6f4adac44f489 (patch) | |
| tree | 10ce11edf45cd5d994bd4ccec50b28d1636e8a78 /Library/Formula | |
| parent | 13925f99303dc94922cd8ff0d9ea85790c099856 (diff) | |
| download | homebrew-fac9bd041311c3533ae44d2d7ea6f4adac44f489.tar.bz2 | |
JRuby formula
100% Java implementation of Ruby.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/jruby.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/jruby.rb b/Library/Formula/jruby.rb new file mode 100644 index 000000000..58103e225 --- /dev/null +++ b/Library/Formula/jruby.rb @@ -0,0 +1,23 @@ +require 'brewkit' + +# My god! 20,000 files?! +# TODO trim that a bit? Seems crazy. + +class Jruby <Formula + @url='http://dist.codehaus.org/jruby/1.3.1/jruby-src-1.3.1.tar.gz' + @homepage='http://jruby.org/' + @md5='c7e2aa4a3065db445a8b3e17ecff9fe0' + + def install + system "ant" + + Dir.chdir 'bin' do + FileUtils.rm Dir['*.bat'] + Dir['*'].each do |file| + FileUtils.mv file, "j#{file}" unless file.match /^[j_]/ + end + end + + prefix.install Dir['*'] + end +end |
