ports/lang/ruby25/files/patch-lib_mkmf.rb
Sunpoet Po-Chuan Hsieh 97a290bd3f Update to 2.5.3
- Move USES upward
- Remove no-op MLINKS and create symlinks for manpages
- Sort INSTALLED_SCRIPTS
- Regenerate patch files with makepatch:

Changes:	https://www.ruby-lang.org/en/news/2018/10/18/ruby-2-5-3-released/
		https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-5-2-released/
PR:		232431
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org>
Security:	afc60484-0652-440e-b01a-5ef814747f06
MFH:		2018Q4
2018-10-20 14:57:33 +00:00

11 lines
469 B
Ruby

--- lib/mkmf.rb.orig 2018-10-09 14:09:35 UTC
+++ lib/mkmf.rb
@@ -234,7 +234,7 @@ module MakeMakefile
end
$extmk ||= false
if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
- $topdir = $hdrdir
+ $topdir = $hdrdir + "/" + "#{CONFIG['arch']}/ruby/"
$top_srcdir = $hdrdir
$arch_hdrdir = RbConfig::CONFIG["rubyarchhdrdir"]
elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir) + "/include") + "/ruby.h")