diff options
| author | Adam Vandenberg | 2010-03-19 12:21:10 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-19 12:21:10 -0700 |
| commit | 230c929b9927e85f49571e350498e4676c036cee (patch) | |
| tree | 1c06136da432eeb1af5078607f5343947ab56263 /Library/Formula/jruby.rb | |
| parent | 8002284abfa759fb2b53cd5ba52fb66de04b679c (diff) | |
| download | homebrew-230c929b9927e85f49571e350498e4676c036cee.tar.bz2 | |
jruby - take advantage of FileUtils being included in Formula.
Diffstat (limited to 'Library/Formula/jruby.rb')
| -rw-r--r-- | Library/Formula/jruby.rb | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Formula/jruby.rb b/Library/Formula/jruby.rb index c423bc790..c7b084e82 100644 --- a/Library/Formula/jruby.rb +++ b/Library/Formula/jruby.rb @@ -1,27 +1,25 @@ require 'formula' -# My god! 20,000 files?! -# TODO trim that a bit? Seems crazy. - class Jruby < Formula url 'http://jruby.kenai.com/downloads/1.4.0/jruby-bin-1.4.0.tar.gz' homepage 'http://www.jruby.org' md5 'f37322c18e9134e91e064aebb4baa4c7' def install + # Remove Windows files + rm Dir['bin/*.{bat,dll,exe}'] + + # Prefix a 'j' on some commands Dir.chdir 'bin' do - FileUtils.rm Dir['*.bat'] - FileUtils.rm Dir['*.exe'] - FileUtils.rm Dir['*.dll'] Dir['*'].each do |file| - FileUtils.mv file, "j#{file}" unless file.match /^[j_]/ + mv file, "j#{file}" unless file.match /^[j_]/ end end - - # Only keep the MacOSX native libraries + + # Only keep the OS X native libraries Dir.chdir 'lib/native' do Dir['*'].each do |file| - FileUtils.rm_rf file unless file == 'darwin' + rm_rf file unless file == 'darwin' end end |
