summaryrefslogtreecommitdiff
path: root/devel/rubygem-debugger/files/patch-ext-ruby_debug-extconf.rb
blob: 5c32eaac077f1018b52781e9d1eef0334ceaeaf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ext/ruby_debug/extconf.rb.orig	2013-07-27 13:58:53.000000000 +0400
+++ ext/ruby_debug/extconf.rb	2013-07-27 14:01:30.000000000 +0400
@@ -13,7 +13,6 @@
 end
 
 require "mkmf"
-require "debugger/ruby_core_source"
 require 'fileutils'
 
 if RUBY_VERSION < "1.9"
@@ -84,7 +83,9 @@
 end
 
 dir_config("ruby")
-if !Debugger::RubyCoreSource.create_makefile_with_core(hdrs, "ruby_debug")
+if hdrs.call
+  create_makefile("ruby_debug")
+else
   STDERR.print("Makefile creation failed\n")
   STDERR.print("*************************************************************\n\n")
   STDERR.print("  NOTE: If your headers were not found, try passing\n")