freebsd-ports/lang/ruby24/files/patch-lib_mkmf.rb
Steve Wills 39230bebc6 Add Ruby 2.4.0
While here, remove local patches that are no longer needed and simplify
post-patch target.
2016-12-26 19:00:05 +00:00

12 lines
469 B
Ruby

--- lib/mkmf.rb.orig 2015-12-16 09:25:48 UTC
+++ lib/mkmf.rb
@@ -235,7 +235,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")