ports/databases/ruby-bdb/files/patch-extconf.rb
Yasuhiro Kimura e4a56e48d4 Mk/bsd.ruby.mk: Remove RUBY_RDOC
After lang/ruby26 is removed the value of it is same with all
supported ruby versions. So ports need not use it to specify full
patch of rdoc executable.

PR:		263386
Approved by:	maintainer timeout
2022-05-02 20:14:06 +09:00

20 lines
750 B
Ruby

--- extconf.rb.orig 2011-04-06 19:35:39 UTC
+++ extconf.rb
@@ -67,7 +67,7 @@ test: $(DLLIB)
Dir.foreach('tests') do |x|
next if /^\./ =~ x || /(_\.rb|~)$/ =~ x
next if FileTest.directory?(x)
- make.print "\t-#{CONFIG['RUBY_INSTALL_NAME']} tests/#{x}\n"
+ make.print "\t-#{RbConfig::CONFIG['ruby_install_name']} tests/#{x}\n"
end
ensure
make.close
@@ -76,7 +76,7 @@ end
subdirs.each do |subdir|
STDERR.puts("#{$0}: Entering directory `#{subdir}'")
Dir.chdir(subdir)
- system("#{CONFIG['RUBY_INSTALL_NAME']} extconf.rb " + ARGV.join(" "))
+ system("#{RbConfig::CONFIG['ruby_install_name']} extconf.rb " + ARGV.join(" "))
Dir.chdir("..")
STDERR.puts("#{$0}: Leaving directory `#{subdir}'")
end