diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-08-23 08:42:10 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-08-23 08:42:10 +0200 |
commit | f3a8a30391eaa832d3c2d0b0fba298a35678be83 (patch) | |
tree | 18437cdde5e84a63de69a3ced07c6855c6db0fb7 /Rakefile | |
parent | 55645aa59d65e53c806f29678e3493b89eead93a (diff) |
Rakefile fixed
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 45 |
1 files changed, 1 insertions, 44 deletions
@@ -1,44 +1 @@ -require 'rubygems' -require 'rake' -require 'opentox-ruby' - -@gems = "sinatra rest-client emk-sinatra-url-for sinatra-respond_to" - -namespace :openbabel do - desc "Install openbabel" - task :install do - puts `sudo gem sources -a http://gems.github.com` - puts `sudo gem install #{@gems}` - begin - require 'openbabel' - puts "Openbabel is already installed" - rescue Exception => exc - puts "Trying to install openbabel" - Dir.chdir('/tmp') - puts `wget http://downloads.sourceforge.net/project/openbabel/openbabel/2.2.2/openbabel-2.2.2.tar.gz` unless File.exists?('openbabel-2.2.2.tar.gz') - puts `tar xzf openbabel-2.2.2.tar.gz` unless File.exists?('openbabel-2.2.2') - Dir.chdir('openbabel-2.2.2') - puts `./configure` - puts "Compiling Openbabel - this may take some time ..." - puts `make` - puts `sudo make install` - Dir.chdir('scripts/ruby') - puts `ruby extconf.rb --with-openbabel-include=../../include --with-openbabel-lib=../../src/.libs` - puts "Compiling Ruby extension for Openbabel - this may take some time ..." - puts `make` - puts `sudo make install` - begin - require 'openbabel' - puts "Openbabel sucessfully installed" - rescue Exception => exc - puts "Failed to install Openbabel - please try manually." - end - end - end -end - -desc "Run tests" -task :test do - load 'test/test.rb' -end - +require "bundler/gem_tasks" |