2008-08-19 11:01:28 -04:00
|
|
|
# -*- ruby -*-
|
|
|
|
require 'rubygems'
|
2012-02-08 10:01:56 -05:00
|
|
|
require './ext/opencv/lib/opencv/psyched_yaml'
|
2008-08-19 11:01:28 -04:00
|
|
|
require 'hoe'
|
2011-04-07 01:25:08 -04:00
|
|
|
require 'rake/extensiontask'
|
2011-05-03 13:14:33 -04:00
|
|
|
require './ext/opencv/lib/opencv/version'
|
2008-08-19 11:01:28 -04:00
|
|
|
|
2011-04-07 01:25:08 -04:00
|
|
|
Hoe.plugin :gemspec
|
|
|
|
|
2012-02-08 10:01:56 -05:00
|
|
|
hoespec = Hoe.spec 'opencv' do |p|
|
2011-04-07 01:25:08 -04:00
|
|
|
p.version = OpenCV::VERSION
|
2008-08-19 11:01:28 -04:00
|
|
|
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')
|
2011-04-16 10:41:41 -04:00
|
|
|
p.developer('ser1zw', '')
|
2011-04-07 01:25:08 -04:00
|
|
|
p.developer('pcting', 'pcting@gmail.com')
|
|
|
|
|
2008-08-19 11:01:28 -04:00
|
|
|
p.need_tar = false
|
|
|
|
p.need_zip = false
|
2011-04-07 01:25:08 -04:00
|
|
|
p.readme_file = 'README.rdoc'
|
|
|
|
p.history_file = 'History.txt'
|
2008-08-19 11:01:28 -04:00
|
|
|
p.spec_extras = {
|
2011-05-03 04:12:47 -04:00
|
|
|
:extensions => %w{extconf.rb}
|
2008-08-19 11:01:28 -04:00
|
|
|
}
|
|
|
|
p.summary = 'OpenCV wrapper for Ruby.'
|
2011-04-07 01:25:08 -04:00
|
|
|
p.test_globs = ['test/test_*.rb']
|
|
|
|
p.clean_globs << 'lib/*.so' << 'tmp'
|
|
|
|
|
2012-04-30 12:07:04 -04:00
|
|
|
p.urls = ['http://blueruby.mydns.jp/opencv']
|
2011-04-07 01:25:08 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2008-08-19 11:01:28 -04:00
|
|
|
end
|
|
|
|
|
2011-04-07 01:25:08 -04:00
|
|
|
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
|
|
|
|
|
2008-08-19 11:01:28 -04:00
|
|
|
# vim: syntax=Ruby
|