Sha256: 12c11b0d48a1a716e3db3e50981da1c606bdd3fc445a3a09e389b4e921622d29
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
#(c) Copyright 2011 Raoul Bonnal. All Rights Reserved. Modified by Ben Woodcroft, 2014 # create Rakefile for shared library compilation path = File.expand_path(File.dirname(__FILE__)) path_external = File.join(path, "../lib/bio-velvet_underground/external") version = File.open(File.join(path_external,"VERSION"),'r') Version = version.read version.close File.open(File.join(path,"Rakefile"),"w") do |rakefile| rakefile.write <<-RAKE require 'rbconfig' require 'fileutils' include FileUtils::Verbose require 'rake/clean' path = File.expand_path(File.dirname(__FILE__)) path_external = File.join(File.dirname(__FILE__), "../lib/bio-velvet_underground/external") task :compile do cd(File.join(File.dirname(__FILE__),'src')) do sh "patch -p1 < ../bioruby.patch" case Config::CONFIG['host_os'] when /linux/ sh "make shared" cp("obj/shared/libvelvet.so.1.0",path_external) when /darwin/ raise NotImplementedError, "possibly will work, but bio-velvet_underground is not tested on OSX" when /mswin|mingw/ then raise NotImplementedError, "bio-velvet_underground library is not available for Windows platform" end #case end #cd end task :clean do cd(File.join(path,'src')) do sh "make clean" end rm(File.join(path_external,"libvelvet.so.1.0")) end task :default => [:compile] RAKE end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bio-velvet_underground-0.0.1 | ext/mkrf_conf.rb |