This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added gemspec to be able to bundle install from git.
Added IplImage#smoothness that returns :smooth, :messy, or :blank. Rake compile will now compile the C extension code.
- Loading branch information
Showing
127 changed files
with
826 additions
and
540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source :gemcutter | ||
|
||
gem "hoe" | ||
gem "hoe-gemspec" | ||
gem "rspec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,33 +2,49 @@ | |
|
||
require 'rubygems' | ||
require 'hoe' | ||
|
||
require 'rake/extensiontask' | ||
require './lib/version' | ||
|
||
Hoe.new('opencv', OpenCV::VERSION) do |p| | ||
p.author = ['Masakazu Yonekura'] | ||
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', '[email protected]') | ||
p.email = ['masakazu.yonekura@gmail.com'] | ||
p.developer('pcting', 'pcting@gmail.com') | ||
|
||
p.need_tar = false | ||
p.need_zip = false | ||
# p.rdoc_pattern = | ||
# p.remote_rdoc_dir = | ||
# p.rsync = | ||
p.readme_file = 'README.rdoc' | ||
p.history_file = 'History.txt' | ||
p.spec_extras = { | ||
:extensions => %w{ext/extconf.rb} | ||
:extensions => %w{ext/opencv/extconf.rb} | ||
} | ||
p.summary = 'OpenCV wrapper for Ruby.' | ||
# p.test_globs = 'spec/**/*_spec.rb' | ||
p.clean_globs |= ['*.o'] | ||
p.test_globs = ['test/test_*.rb'] | ||
p.clean_globs << 'lib/*.so' << 'tmp' | ||
|
||
p.url = 'http://blueruby.mydns.jp/opencv' | ||
|
||
p.extra_deps << ['hoe'] | ||
|
||
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 |
Oops, something went wrong.