patch-jruby-launcher_extconf_rb 597 B

1234567891011
  1. $OpenBSD: patch-jruby-launcher_extconf_rb,v 1.2 2015/07/26 04:40:16 jeremy Exp $
  2. --- jruby-launcher/extconf.rb.orig Tue May 22 10:27:56 2012
  3. +++ jruby-launcher/extconf.rb Tue May 22 10:29:07 2012
  4. @@ -3,5 +3,6 @@ require 'rbconfig'
  5. mf = File.read('Makefile')
  6. mf = mf.gsub(/^BINDIR\s*=.*$/, "BINDIR = #{Config::CONFIG['bindir']}")
  7. mf = mf.gsub(/^PREFIX\s*=.*$/, "PREFIX = #{File.dirname(Config::CONFIG['libdir'])}")
  8. +mf = mf.gsub(/^INSTALLDIR\s*=.*$/, "INSTALLDIR = #{File.dirname(Config::CONFIG['libdir'])}/lib/ruby/stdlib/rubygems/defaults")
  9. puts mf
  10. File.open('Makefile', 'wb') {|f| f << mf}