Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Fixed JRuby formula: no compilation & less crud
Browse files Browse the repository at this point in the history
There's no need to build JRuby, it's already compiled out of the box.
The code that cleaned out non-darwin native libraries was broken, but no more.
  • Loading branch information
iconara committed Dec 18, 2009
1 parent 7a880ce commit e927c71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Formula/jruby.rb
Expand Up @@ -9,10 +9,10 @@ class Jruby < Formula
md5 'a363b6c2ea24f0ef8df478c93ac8cc59'

def install
system "ant"

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_]/
end
Expand All @@ -21,7 +21,7 @@ def install
# Only keep the MacOSX native libraries
Dir.chdir 'lib/native' do
Dir['*'].each do |file|
FileUtils.rm_f file unless file == 'darwin'
FileUtils.rm_rf file unless file == 'darwin'
end
end

Expand Down

0 comments on commit e927c71

Please sign in to comment.