rake-compiler 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/lib/rake/extensiontask.rb +6 -5
- data/tasks/gem.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5874e9da35805567c4884a2ff13f02b35ac5d81a
|
4
|
+
data.tar.gz: 561065c4a2e60b4d2b0823caaac0d4bd414e85bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd48f027eec09d0f775eed9c5022d19d6f1a37904764bc24ae24580498f3149a4199606f075be54d2e5b33cc087a543335202543f194618f3fe1f0a5fb746bae
|
7
|
+
data.tar.gz: 1da44d65df10fb7c70ed76d01a940bbffa496e135f76543b7923f28a484108606bd2c42c5065cd30de444fceaafb29f1b967fd166faaa32f45367464f9ba119a
|
data/History.txt
CHANGED
data/lib/rake/extensiontask.rb
CHANGED
@@ -135,17 +135,18 @@ Rerun `rake` under MRI Ruby 1.8.x/1.9.x to cross/native compile.
|
|
135
135
|
|
136
136
|
# directories we need
|
137
137
|
directory tmp_path
|
138
|
+
directory tmp_binary_dir_path
|
138
139
|
directory lib_binary_dir_path
|
139
140
|
directory stage_binary_dir_path
|
140
141
|
|
141
142
|
# copy binary from temporary location to final lib
|
142
143
|
# tmp/extension_name/extension_name.{so,bundle} => lib/
|
143
|
-
task "copy:#{@name}:#{platf}:#{ruby_ver}" => [lib_binary_dir_path,
|
144
|
-
install
|
144
|
+
task "copy:#{@name}:#{platf}:#{ruby_ver}" => [lib_binary_dir_path, tmp_binary_path] do
|
145
|
+
install tmp_binary_path, "#{lib_path}/#{binary_path}"
|
145
146
|
end
|
146
147
|
# copy binary from temporary location to staging directory
|
147
|
-
task "copy:#{@name}:#{platf}:#{ruby_ver}" => [stage_binary_dir_path,
|
148
|
-
cp
|
148
|
+
task "copy:#{@name}:#{platf}:#{ruby_ver}" => [stage_binary_dir_path, tmp_binary_path] do
|
149
|
+
cp tmp_binary_path, stage_binary_path
|
149
150
|
end
|
150
151
|
|
151
152
|
# copy other gem files to staging directory
|
@@ -153,7 +154,7 @@ Rerun `rake` under MRI Ruby 1.8.x/1.9.x to cross/native compile.
|
|
153
154
|
|
154
155
|
# binary in temporary folder depends on makefile and source files
|
155
156
|
# tmp/extension_name/extension_name.{so,bundle}
|
156
|
-
file
|
157
|
+
file tmp_binary_path => [tmp_binary_dir_path, "#{tmp_path}/Makefile"] + source_files do
|
157
158
|
jruby_compile_msg = <<-EOF
|
158
159
|
Compiling a native C extension on JRuby. This is discouraged and a
|
159
160
|
Java extension should be preferred.
|
data/tasks/gem.rake
CHANGED