Sha256: 64eb0e26ac51f006fc92f5456db9527b759750cdace20f35d8889e1af1bcd4e7
Contents?: true
Size: 850 Bytes
Versions: 1
Compression:
Stored size: 850 Bytes
Contents
require 'rubygems' require 'hoe' task :default => ["sync_files","make_gem"] EXT = "ext/svm?.#{Hoe::DLEXT}" Hoe.new('libsvm-ruby-swig', '0.2.4') do |p| p.author = 'Tom Zeng' p.email = 'tom.z.zeng@gmail.com' p.url = 'http://www.tomzconsulting.com' p.summary = 'Ruby wrapper of LIBSVM using SWIG' p.description = 'Ruby wrapper of LIBSVM using SWIG' p.spec_extras[:extensions] = "ext/extconf.rb" p.clean_globs << EXT << "ext/*.o" << "ext/Makefile" end task :make_gem => EXT file EXT => ["ext/extconf.rb", "ext/svmc_wrap.cxx", "ext/svm.cpp", "ext/svm.h"] do Dir.chdir "ext" do ruby "extconf.rb" sh "make" end end task :sync_files do cp "libsvm-2.88/svm.h","ext/" cp "libsvm-2.88/svm.cpp","ext/" cp "libsvm-2.88/ruby/svmc_wrap.cxx","ext/" cp "libsvm-2.88/ruby/svm.rb","lib/" end task :test do puts "done" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tomz-libsvm-ruby-swig-0.2.4 | Rakefile |