$OpenBSD: patch-lib_rubygems_commands_setup_command_rb,v 1.4 2012/04/27 18:41:07 jeremy Exp $
--- lib/rubygems/commands/setup_command.rb.orig	Thu Apr 19 21:29:58 2012
+++ lib/rubygems/commands/setup_command.rb	Mon Apr 23 12:49:58 2012
@@ -283,7 +283,7 @@ TEXT
          lib_dir = Gem::ConfigMap[site_or_vendor]
          bin_dir = Gem::ConfigMap[:bindir]
       else
-        lib_dir = File.join prefix, 'lib'
+        lib_dir = ENV['RUBYLIB']
         bin_dir = File.join prefix, 'bin'
       end
     end
