diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-06 10:53:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-06 10:53:35 +0200 |
commit | 49e880da1dbab3850c4eb1682bafad6b57267817 (patch) | |
tree | f2bba3048b297189ef51fe304edbb4ec34736801 /ruby/ffi-k8055/Rakefile | |
parent | 5e0aad9befe6214134a77cb267b8c89596945109 (diff) | |
download | k8055-49e880da1dbab3850c4eb1682bafad6b57267817.zip k8055-49e880da1dbab3850c4eb1682bafad6b57267817.tar.gz |
add ruby/ffi-k8055
Diffstat (limited to 'ruby/ffi-k8055/Rakefile')
-rw-r--r-- | ruby/ffi-k8055/Rakefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/ruby/ffi-k8055/Rakefile b/ruby/ffi-k8055/Rakefile new file mode 100644 index 0000000..78d10fe --- /dev/null +++ b/ruby/ffi-k8055/Rakefile @@ -0,0 +1,62 @@ +# -*- coding: UTF-8 -*- +# +load './tasks/setup.rb' +# +# Project general information +PROJ.name = 'ffi-k8055' +PROJ.authors = 'Jérémy Zurcher' +PROJ.email = 'jeremy@asynk.ch' +PROJ.url = 'https://github.com/jeremyz/k8055' +major = minor = patch = nil +File.open('../../CMakeLists.txt').each do |l| + major = $1 if l=~/VERSION_MAJOR\s+\"(\d+)\"/ + minor = $1 if l=~/VERSION_MINOR\s+\"(\d+)\"/ + patch = $1 if l=~/VERSION_PATCH\s+\"(\d+)\"/ +end +PROJ.version = "#{major}.#{minor}.#{patch}" +PROJ.rubyforge.name = 'none' +PROJ.readme_file = 'README.rdoc' +# +# Annoucement +PROJ.ann.paragraphs << 'FEATURES' << 'SYNOPSIS' << 'REQUIREMENTS' << 'DOWNLOAD/INSTALL' << 'CREDITS' << 'LICENSE' +PROJ.ann.email[:from] = 'jeremy@asynk.ch' +PROJ.ann.email[:to] = ['FIXME'] +PROJ.ann.email[:server] = 'localhost' +PROJ.ann.email[:tls] = false +# Gem specifications +PROJ.gem.need_tar = false +PROJ.gem.files = %w(Changelog MIT-LICENSE README.rdoc Rakefile) + Dir.glob("{ext,lib,spec,tasks}/**/*[^~]").reject { |fn| test ?d, fn } +PROJ.gem.platform = Gem::Platform::RUBY +PROJ.gem.required_ruby_version = ">= 1.9.2" +# +# Override Mr. Bones autogenerated extensions and force ours in +#PROJ.gem.extras['extensions'] = %w(ext/extconf.rb) +#PROJ.gem.extras['required_ruby_version'] = ">= 1.9.2" +# +# RDoc +PROJ.rdoc.exclude << '^ext\/' +PROJ.rdoc.opts << '-x' << 'ext' +# +# Ruby +PROJ.ruby_opts = [] +PROJ.ruby_opts << '-I' << 'lib' +# +# RSpec +PROJ.spec.files.exclude /rbx/ +PROJ.spec.opts << '--color' +# +# Rcov +PROJ.rcov.opts << '-I lib' +# +# Dependencies +depend_on 'ffi', '>=1.0.2' +# +task :default => [:spec] +# +desc "Build all packages" +task :package => 'gem:package' +# +desc "Install the gem locally" +task :install => 'gem:install' +# +# EOF |