narray_ffi 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ unless have_header("narray.h")
13
13
  require "rubygems"
14
14
  if spec = Gem::Specification.find_all_by_name("narray").last
15
15
  spec.require_paths.each { |path|
16
- $CPPFLAGS = "-I" << spec.full_gem_path << "/" << path << " " << $CPPFLAGS
16
+ $CPPFLAGS = "-I" << spec.full_gem_path << "/" << path << "/ " << $CPPFLAGS
17
17
  }
18
18
  end
19
19
  rescue LoadError
@@ -29,11 +29,13 @@ unless have_header("Pointer.h")
29
29
  require "rubygems"
30
30
  if spec = Gem::Specification.find_all_by_name("ffi").last
31
31
  spec.require_paths.each { |path|
32
- $CPPFLAGS = "-I" << spec.full_gem_path << "/" << path << " " << $CPPFLAGS
32
+ $CPPFLAGS = "-I" << spec.full_gem_path << "/" << path << "/ " << $CPPFLAGS
33
+ $CPPFLAGS = "-I" << spec.full_gem_path << "/" << path << "/" << "libffi-x86_64-linux/include/ " << $CPPFLAGS
33
34
  }
34
35
  end
35
36
  rescue LoadError
36
37
  end
38
+ puts $CPPFLAGS
37
39
  unless have_header("Pointer.h")
38
40
  abort "missing ffi Pointer.h" unless have_header("Pointer.h")
39
41
  end
data/narray_ffi.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'narray_ffi'
3
- s.version = "0.1"
3
+ s.version = "0.2"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://forge.imag.fr/projects/opencl-ruby/"
@@ -11,8 +11,6 @@ Gem::Specification.new do |s|
11
11
  s.has_rdoc = false
12
12
  s.license = 'BSD'
13
13
  s.required_ruby_version = '>= 1.8.7'
14
- # s.add_development_dependency 'rake'
15
- # s.add_development_dependency 'rake-compiler', '>=0.6.0'
16
14
  s.add_dependency 'narray', '>=0.6.0.8'
17
15
  s.add_dependency 'ffi', '>=1.9.3'
18
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: narray_ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-22 00:00:00.000000000 Z
12
+ date: 2014-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: narray