diff options
| author | Adam Vandenberg | 2009-11-16 11:17:19 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2009-11-16 13:08:46 -0800 |
| commit | 58fe698eb325327ea0e94ace253070f2ed1b919f (patch) | |
| tree | ddbaa099ae1592f91e063d1f690b4bb56c4e5b5e /Library/Formula/jruby.rb | |
| parent | f73f2b2c06705989ad5759a111ae172bbe79249c (diff) | |
| download | homebrew-58fe698eb325327ea0e94ace253070f2ed1b919f.tar.bz2 | |
JRuby - only keep darwin native libraries.
Diffstat (limited to 'Library/Formula/jruby.rb')
| -rw-r--r-- | Library/Formula/jruby.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/jruby.rb b/Library/Formula/jruby.rb index 5ea85f987..f4087dfd3 100644 --- a/Library/Formula/jruby.rb +++ b/Library/Formula/jruby.rb @@ -17,6 +17,13 @@ class Jruby <Formula FileUtils.mv file, "j#{file}" unless file.match /^[j_]/ end end + + # Only keep the MacOSX native libraries + Dir.chdir 'lib/native' do + Dir['*'].each do |file| + FileUtils.rm_f file unless file == 'darwin' + end + end prefix.install Dir['*'] end |
