jl4rb 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/jl4rb/extconf.rb +10 -10
  3. data/jl4rb.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f22d52581fd5c000248906cd62b98fb64fe625d0
4
- data.tar.gz: 37ae387be14f0fb2ff6f5b1c055707795f76629d
3
+ metadata.gz: e5aacd2c26fb35d16d65c2ee2d0157d2aab18b48
4
+ data.tar.gz: 620ac50136fb24e57231814f2d494d43a6ef8577
5
5
  SHA512:
6
- metadata.gz: 9ed9f210397451078f1026c3854c6675d8df20f8c698ae811ff333adad3c49fd6157990dcf4d2a4cf5a2cd30be08404b318a17bc6e938ad0831c64ab35e83954
7
- data.tar.gz: 17b4b192faea86b6cddbc4789f81f24c94129d083bf9256152fd6088bde65d5ec5447eb5f9501911b1ddbf5f31ef7f4fc9e6f2812d6536a3d1856b7d540c8092
6
+ metadata.gz: bec8d5fcba26eaf664c8c84f70d1c505ad5dc8c06527205766c3f675b90bcfa10903f99c919b90fad9a34d546c790e12ea8bbceb2498dfa883b1e8fdf1f51698
7
+ data.tar.gz: 0762631c7d61fde32c4479e634972920303d41a8b67f5ba2ab68e9fd5cde51759cc8fe6ab668145a5d3a5f611811d957eec2ed7b882dac0527e4f5376e033b09
@@ -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/ and File.exists? "/usr/include/"+RUBY_PLATFORM+"/julia"
7
- $prefix_include << "/usr/include/"+RUBY_PLATFORM+"/julia"
8
- $prefix_lib << "/usr/lib/"+RUBY_PLATFORM+"/julia"
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
-
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rubygems/package_task'
3
3
 
4
4
  PKG_NAME='jl4rb'
5
- PKG_VERSION='0.0.5'
5
+ PKG_VERSION='0.0.6'
6
6
  PKG_FILES=FileList[
7
7
  'Rakefile','jl4rb.gemspec',
8
8
  'ext/jl4rb/*.c',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jl4rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS