diff options
author | Katsuhiko Nishimra <ktns.87@gmail.com> | 2012-10-27 03:19:01 +0900 |
---|---|---|
committer | Katsuhiko Nishimra <ktns.87@gmail.com> | 2012-10-27 03:19:01 +0900 |
commit | 557db70f2a83519101276d9f2025563e001ff4a7 (patch) | |
tree | a64f31fcd15e85acaf6a287d5a482b04ca19c8bf | |
parent | 9dde740bcc4b4c479e9b011ede2a20c0f4498ece (diff) |
BSD sed workaround
-rw-r--r-- | ext/openbabel/extconf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openbabel/extconf.rb b/ext/openbabel/extconf.rb index da77116..fc7de95 100644 --- a/ext/openbabel/extconf.rb +++ b/ext/openbabel/extconf.rb @@ -29,12 +29,12 @@ begin end Dir.chdir ob_bindings_dir do puts "Compiling and instaling OpenBabel Ruby bindings." - `sed -i 's/Init_OpenBabel/Init_openbabel/g' *cpp` + `sed -i -e 's/Init_OpenBabel/Init_openbabel/g' *cpp` # get include and lib from pkg-config ob_include=`pkg-config openbabel-2.0 --cflags-only-I`.sub(/\s+/,'').sub(/-I/,'') ob_lib=`pkg-config openbabel-2.0 --libs-only-L`.sub(/\s+/,'').sub(/-L/,'') `ruby extconf.rb --with-openbabel-include=#{ob_include} --with-openbabel-lib=#{ob_lib}` - `sed -i 's/-flat_namespace//' Makefile` + `sed -i -e 's/-flat_namespace//' Makefile` puts `make` end FileUtils.cp(ob_bindings_dir+"/openbabel.so", "./") |