ports/lang/jruby/patches/patch-jruby-launcher_extconf_rb

12 lines
609 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: jruby-launcher/extconf.rb
--- jruby-launcher/extconf.rb.orig
+++ jruby-launcher/extconf.rb
@@ -1,6 +1,7 @@
mf = File.read('Makefile')
mf = mf.gsub(/^BINDIR\s*=.*$/, "BINDIR = #{RbConfig::CONFIG['bindir']}")
mf = mf.gsub(/^PREFIX\s*=.*$/, "PREFIX = #{File.dirname(RbConfig::CONFIG['libdir'])}")
+mf = mf.gsub(/^INSTALLDIR\s*=.*$/, "INSTALLDIR = #{File.dirname(RbConfig::CONFIG['libdir'])}/lib/ruby/stdlib/rubygems/defaults")
mf = mf.gsub(/^JRUBY_VERSION\s*=.*$/, "JRUBY_VERSION = #{JRUBY_VERSION}")
# Launcher will use .module_opts file if present, otherwise hardcoded add-opens for this module.