aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJoshua Peek2010-06-12 22:08:03 -0500
committerAdam Vandenberg2010-06-12 20:38:54 -0700
commit57e499c21abc30440c7196375cd0abf7daa20d03 (patch)
tree6cfca7b848994aedbe84dfc88f3bbff2dd124cc6 /Library
parenta14ccf8ae0efb8485b0ca188e52e0c77fe9e59c7 (diff)
downloadhomebrew-57e499c21abc30440c7196375cd0abf7daa20d03.tar.bz2
only jruby bin/ should be linked to the main tree
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/jruby.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/jruby.rb b/Library/Formula/jruby.rb
index 2eeecda49..0b70757e2 100644
--- a/Library/Formula/jruby.rb
+++ b/Library/Formula/jruby.rb
@@ -19,11 +19,16 @@ class Jruby < Formula
# Only keep the OS X native libraries
Dir.chdir 'lib/native' do
Dir['*'].each do |file|
- rm_rf file unless file == 'darwin'
+ rm_rf file unless file.downcase == 'darwin'
end
end
- prefix.install Dir['*']
+ (prefix+'jruby').install Dir['*']
+
+ bin.mkpath
+ Dir["#{prefix}/jruby/bin/*"].each do |f|
+ ln_s f, bin+File.basename(f)
+ end
end
def test