aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jruby.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2009-11-16 11:17:19 -0800
committerAdam Vandenberg2009-11-16 13:08:46 -0800
commit58fe698eb325327ea0e94ace253070f2ed1b919f (patch)
treeddbaa099ae1592f91e063d1f690b4bb56c4e5b5e /Library/Formula/jruby.rb
parentf73f2b2c06705989ad5759a111ae172bbe79249c (diff)
downloadhomebrew-58fe698eb325327ea0e94ace253070f2ed1b919f.tar.bz2
JRuby - only keep darwin native libraries.
Diffstat (limited to 'Library/Formula/jruby.rb')
-rw-r--r--Library/Formula/jruby.rb7
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