1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00
ruby-opencv/Rakefile
2011-04-16 23:41:41 +09:00

51 lines
1.2 KiB
Ruby

# -*- ruby -*-
require 'rubygems'
require 'hoe'
require 'rake/extensiontask'
require './lib/version'
Hoe.plugin :gemspec
hoespec = Hoe.spec 'opencv' do |p|
p.version = OpenCV::VERSION
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.description = <<EOF
OpenCV wrapper for Ruby
EOF
p.rubyforge_name = 'opencv'
p.developer('lsxi', 'masakazu.yonekura@gmail.com')
p.developer('ser1zw', '')
p.developer('pcting', 'pcting@gmail.com')
p.need_tar = false
p.need_zip = false
p.readme_file = 'README.rdoc'
p.history_file = 'History.txt'
p.spec_extras = {
:extensions => %w{ext/opencv/extconf.rb}
}
p.summary = 'OpenCV wrapper for Ruby.'
p.test_globs = ['test/test_*.rb']
p.clean_globs << 'lib/*.so' << 'tmp'
p.url = 'http://blueruby.mydns.jp/opencv'
p.extra_dev_deps << ['rake-compiler', '>= 0'] << ['hoe-gemspec'] << ['rspec']
Rake::ExtensionTask.new('opencv', spec) do |ext|
ext.lib_dir = File.join('lib', 'opencv')
end
end
hoespec.spec.files.delete('.gemtest')
hoespec.spec.files.delete('ruby-opencv.gemspec')
hoespec.spec.files.delete('opencv.gemspec')
hoespec.spec.cert_chain = []
hoespec.spec.signing_key = nil
Rake::Task[:test].prerequisites << :compile
# vim: syntax=Ruby