aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-09-24 09:46:42 -0400
committerMax Howell2012-09-24 09:49:54 -0400
commit128a59cc20f123acdff5b9cfbb220cb2d80d8cea (patch)
treee03e794b0af2e34f925c768e47c05d8971a54935 /Library
parent7b717655f482272569d47cf7e373ffc1bd84e6e2 (diff)
downloadhomebrew-128a59cc20f123acdff5b9cfbb220cb2d80d8cea.tar.bz2
Work even when RUBYLIB='-'
Apparently setting RUBYLIB to '-' causes the library path to be unset. So we need to set our own library path in our scripts. Fixes Homebrew/homebrew-versions/#47.
Diffstat (limited to 'Library')
-rw-r--r--Library/ENV/libsuperenv.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/ENV/libsuperenv.rb b/Library/ENV/libsuperenv.rb
index 48093cc9b..8b38156c4 100644
--- a/Library/ENV/libsuperenv.rb
+++ b/Library/ENV/libsuperenv.rb
@@ -1,6 +1,9 @@
# Yes, a good deal of this could be imported from Homebrew-proper
# But Homebrew-proper is dog-slow currently, and I didn't want every cc
-# instantiation to be slower be a tangible amount.
+# instantiation to be slower by a tangible amount.
+
+# https://github.com/Homebrew/homebrew-versions/issues/47
+$:.unshift "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8"
class String
def directory?; File.directory? self end