Skip to content
This repository
Browse code

Fixed JRuby formula: no compilation & less crud

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...
commit e927c71603a9633e07ace37606fef6024a90b5ce 1 parent 7a880ce
Theo Hultberg authored December 18, 2009

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  Library/Formula/jruby.rb
6  Library/Formula/jruby.rb
@@ -9,10 +9,10 @@ class Jruby < Formula
9 9
   md5 'a363b6c2ea24f0ef8df478c93ac8cc59'
10 10
 
11 11
   def install
12  
-    system "ant"
13  
-
14 12
     Dir.chdir 'bin' do
15 13
       FileUtils.rm Dir['*.bat']
  14
+      FileUtils.rm Dir['*.exe']
  15
+      FileUtils.rm Dir['*.dll']
16 16
       Dir['*'].each do |file|
17 17
         FileUtils.mv file, "j#{file}" unless file.match /^[j_]/
18 18
       end
@@ -21,7 +21,7 @@ def install
21 21
     # Only keep the MacOSX native libraries
22 22
     Dir.chdir 'lib/native' do
23 23
       Dir['*'].each do |file|
24  
-        FileUtils.rm_f file unless file == 'darwin'
  24
+        FileUtils.rm_rf file unless file == 'darwin'
25 25
       end
26 26
     end
27 27
 

0 notes on commit e927c71

Please sign in to comment.
Something went wrong with that request. Please try again.