diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-07-24 16:00:36 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-07-24 16:00:36 +0200 |
commit | 5afa57bef042def314d5069e089badab29cf1bff (patch) | |
tree | c536703e27cd5a86d287a431e1cc5d4865b9b2ad | |
parent | e56c70c34d0c9e8012a96566ea06f8f90a434d25 (diff) |
'Config' replaced with 'RbConfig' in OpenBabel source script/CMakeLists.txt and script/ruby/extconf.rb
-rw-r--r-- | ext/openbabel/extconf.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/openbabel/extconf.rb b/ext/openbabel/extconf.rb index e44ec5d..aa90d76 100644 --- a/ext/openbabel/extconf.rb +++ b/ext/openbabel/extconf.rb @@ -30,6 +30,8 @@ begin system "curl -L -d use_mirror=netcologne 'http://downloads.sourceforge.net/project/openbabel/openbabel/#{ob_num_ver}/openbabel-#{ob_num_ver}.tar.gz' | tar xz" system "sed -i -e 's/-Wl,-flat_namespace//;s/-flat_namespace//' #{File.join ruby_src_dir, "extconf.rb"}" # remove unrecognized compiler option system "sed -i -e 's/Init_OpenBabel/Init_openbabel/g' #{File.join ruby_src_dir,"*cpp"}" # fix swig bindings + system "sed -i -e 's/Config::CONFIG/RbConfig::CONFIG/' #{File.join src_dir, "scripts", "CMakeLists.txt" }" # fix Ruby Config + system "sed -i -e 's/Config::CONFIG/RbConfig::CONFIG/' #{File.join ruby_src_dir, "extconf.rb" }" # fix Ruby Config end FileUtils.mkdir_p build_dir FileUtils.mkdir_p install_dir @@ -74,7 +76,8 @@ install: mkdir -p #{lib_dir} mv openbabel.#{RbConfig::CONFIG["DLEXT"]} #{lib_dir} EOF + FileUtils.remove_entry_secure src_dir, build_dir end ensure - FileUtils.remove_entry_secure src_dir, build_dir + # Do NOT remove scr_dir and build_dir after build fails, they are necessary for debugging. end |