openbabel 2.3.1.5 → 2.3.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/openbabel/extconf.rb +4 -1
  2. metadata +2 -2
@@ -35,7 +35,10 @@ begin
35
35
  Dir.chdir ob_bindings_dir do
36
36
  puts "Compiling and instaling OpenBabel Ruby bindings."
37
37
  `sed -i 's/Init_OpenBabel/Init_openbabel/g' *cpp`
38
- require './extconf.rb'
38
+ # get include and lib from pkg-config
39
+ ob_include=`pkg-config openbabel-2.0 --cflags-only-I`.sub(/\s+/,'').sub(/-I/,'')
40
+ ob_lib=`pkg-config openbabel-2.0 --libs-only-L`.sub(/\s+/,'').sub(/-L/,'')
41
+ `ruby extconf.rb --with-openbabel-include=#{ob_include} --with-openbabel-lib=#{ob_lib}`
39
42
  `sed -i 's/-flat_namespace//' Makefile`
40
43
  puts `make`
41
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openbabel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.5
4
+ version: 2.3.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  requirements: []
45
45
  rubyforge_project:
46
- rubygems_version: 1.8.18
46
+ rubygems_version: 1.8.23
47
47
  signing_key:
48
48
  specification_version: 3
49
49
  summary: OpenBabel!