blob: fe62c72e2a02253dbc9037b87b91382c5e766e50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
$NetBSD: patch-aa,v 1.2 2015/06/04 13:20:11 taca Exp $
* Allow changeing rake command's name.
* Do not use obsolete Config but RbConfig
--- lib/mkrf/rakehelper.rb.orig 2015-05-30 13:40:54.000000000 +0000
+++ lib/mkrf/rakehelper.rb
@@ -5,7 +5,7 @@
def rake(rakedir)
Dir.chdir(rakedir) do
- sh 'rake'
+ sh '@RAKE@'
end
end
@@ -41,7 +41,7 @@ end
def setup_extension(dir, extension)
ext = "ext/#{dir}"
- ext_so = "#{ext}/#{extension}.#{Config::CONFIG['DLEXT']}"
+ ext_so = "#{ext}/#{extension}.#{RbConfig::CONFIG['DLEXT']}"
ext_files = FileList[
"#{ext}/*.c",
"#{ext}/*.h",
@@ -105,7 +105,7 @@ end
def sub_project(project, *targets)
targets.each do |target|
Dir.chdir "projects/#{project}" do
- sh %{rake --trace #{target.to_s} }
+ sh %{@RAKE@ --trace #{target.to_s} }
end
end
end
|