Sha256: 6268908083e49c89dfc911a9293b9b9b4d6ead23bd46dc2b41b24ca62150de85
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
# -*- coding: utf-8 -*- require 'rubygems' require 'rake/extensiontask' require 'hoe' require 'pp' $root = File.dirname(__FILE__) $name = 'iv-phonic' $version = '0.1.2' directory "ext/include/iv" HOE = Hoe.spec $name do developer('Constellation', 'utatane.tea@gmail.com') self.version = $version self.readme_file = 'README.rdoc' self.history_file = 'ChangeLog' self.extra_rdoc_files = FileList['*.rdoc'] self.extra_dev_deps << ['rake-compiler', '>= 0'] self.spec_extras = { :extensions => ['ext/iv/phonic/extconf.rb'] } self.summary = "iv / phonic : ECMAScript AST" self.require_ruby_version '>= 1.9.1' end Rake::ExtensionTask.new('phonic', HOE.spec) do |ext| ext.lib_dir = File.join('lib', 'iv') ext.ext_dir = File.join('ext', 'iv', 'phonic') ext.config_options << "--with-iv-include=#{File.join($root, 'ext', 'include')}" end Rake::Task[:test].prerequisites << :compile task :checkout => ["ext/include/iv"] do |t| list = [ ".autotest", "Manifest.txt", "README.rdoc", "Rakefile", "test/test_iv_phonic.rb" ] Dir.glob("../*.h") do |f| path = File.join("ext", "include", "iv", File.basename(f)) list << path cp f, File.expand_path(path) end Dir.glob("../third_party/v8-dtoa/*") do |f| path = File.join("ext", "iv", "phonic", File.basename(f)) list << path cp f, File.expand_path(path) end Dir.glob("ext/iv/phonic/*.*") do |f| list << f end File.open("Manifest.txt", "w") do |f| f.write(list.join("\n")) end end task :push => :gem do |f| system("gem push pkg/#{$name}-#{$version}.gem") end # vim: syntax=ruby
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iv-phonic-0.1.2 | Rakefile |