mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
32 lines
893 B
Ruby
32 lines
893 B
Ruby
# -*- mode: ruby; coding: utf-8-unix -*-
|
|
require 'rubygems'
|
|
require './ext/opencv/lib/opencv/psyched_yaml'
|
|
require 'hoe'
|
|
require 'rake/extensiontask'
|
|
|
|
Hoe.plugin :gemspec
|
|
|
|
hoespec = Hoe.spec 'ruby-opencv' do |s|
|
|
s.summary = 'OpenCV wrapper for Ruby'
|
|
s.developer('lsxi', 'masakazu.yonekura@gmail.com')
|
|
s.developer('ser1zw', 'azariahsawtikes@gmail.com')
|
|
s.developer('pcting', 'pcting@gmail.com')
|
|
|
|
s.readme_file = 'README.md'
|
|
s.history_file = 'History.txt'
|
|
s.spec_extras = { :extensions => ['extconf.rb'] }
|
|
s.test_globs = ['test/test_*.rb']
|
|
s.urls = ['https://github.com/ruby-opencv/ruby-opencv/']
|
|
|
|
s.extra_dev_deps << ['rake-compiler', '>= 0'] << ['hoe-gemspec']
|
|
|
|
Rake::ExtensionTask.new('opencv', spec) do |ext|
|
|
ext.lib_dir = File.join('lib', 'opencv')
|
|
end
|
|
end
|
|
|
|
hoespec.spec.files.delete('.gemtest')
|
|
|
|
Rake::Task[:test].prerequisites << :compile
|
|
|
|
# vim: syntax=ruby
|