jl4rb 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/jl4rb/extconf.rb +10 -10
- data/jl4rb.gemspec +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: e5aacd2c26fb35d16d65c2ee2d0157d2aab18b48
|
4
|
+
data.tar.gz: 620ac50136fb24e57231814f2d494d43a6ef8577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bec8d5fcba26eaf664c8c84f70d1c505ad5dc8c06527205766c3f675b90bcfa10903f99c919b90fad9a34d546c790e12ea8bbceb2498dfa883b1e8fdf1f51698
|
7
|
+
data.tar.gz: 0762631c7d61fde32c4479e634972920303d41a8b67f5ba2ab68e9fd5cde51759cc8fe6ab668145a5d3a5f611811d957eec2ed7b882dac0527e4f5376e033b09
|
data/ext/jl4rb/extconf.rb
CHANGED
@@ -3,14 +3,16 @@ require 'fileutils' #if RUBY_VERSION < "1.9"
|
|
3
3
|
|
4
4
|
|
5
5
|
$prefix_include,$prefix_lib=[],[]
|
6
|
-
if RUBY_PLATFORM =~ /linux/
|
7
|
-
$prefix_include << "/usr/include/"+RUBY_PLATFORM+"/julia"
|
8
|
-
$
|
6
|
+
if RUBY_PLATFORM =~ /linux/
|
7
|
+
$prefix_include << "/usr/include/"+RUBY_PLATFORM+"/julia" if File.exists? "/usr/include/"+RUBY_PLATFORM+"/julia"
|
8
|
+
$prefix_include << "/usr/include/julia" if File.exists? "/usr/include/julia"
|
9
|
+
|
10
|
+
$prefix_lib << "/usr/lib/"+RUBY_PLATFORM+"/julia" if File.exists? "/usr/lib/"+RUBY_PLATFORM+"/julia"
|
9
11
|
else
|
10
12
|
#$prefix=ENV["JLAPI_HOME"] || File.join(ENV["HOME"],".jlapi/julia") || ENV["JULIA_HOME"]
|
11
13
|
$prefix=ENV["JULIA_DIR"]
|
12
14
|
#p $prefix
|
13
|
-
[$prefix+"/include/julia",$prefix+"/usr/include",$prefix+"/src",$prefix+"/src/support"].each do |incl|
|
15
|
+
[$prefix+"/include/julia",$prefix+"/usr/include",$prefix+"/src",$prefix+"/src/support"].each do |incl|
|
14
16
|
$prefix_include << incl if File.exists? incl
|
15
17
|
end
|
16
18
|
|
@@ -19,16 +21,16 @@ else
|
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
22
|
-
def jl4rb_makefile(incs,libs)
|
24
|
+
def jl4rb_makefile(incs,libs)
|
23
25
|
#$CFLAGS = "-I"+inc+" -I."
|
24
26
|
# $CFLAGS = (enable_config("julia-release") ? "-DWITH_JULIA_RELEASE " : "")+ "-I"+inc+" -I."
|
25
27
|
# $LDFLAGS = " -Wl,-rpath,"+lib+" -L"+lib if lib
|
26
28
|
# $libs = (enable_config("julia-release") ? " -ljulia-release" : " -ljulia-api" )
|
27
|
-
|
29
|
+
|
28
30
|
$CFLAGS = incs.map{|inc| "-I"+inc}.join(" ")+" -I."
|
29
31
|
$LDFLAGS = " "+libs.map{|lib| "-Wl,-rpath,"+lib+" -L"+lib}.join(" ") if libs
|
30
|
-
$libs = " -ljulia"
|
31
|
-
|
32
|
+
$libs = " -ljulia"
|
33
|
+
|
32
34
|
|
33
35
|
header = nil
|
34
36
|
|
@@ -40,5 +42,3 @@ def jl4rb_makefile(incs,libs)
|
|
40
42
|
end
|
41
43
|
|
42
44
|
jl4rb_makefile($prefix_include,$prefix_lib)
|
43
|
-
|
44
|
-
|
data/jl4rb.gemspec
CHANGED