Sha256: 1366857fefe326c1d57ed9a2af91777f811cd3103977614f9b5b10499de97c40
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# -*- ruby -*- require 'rubygems' require 'hoe' gem 'rake-compiler', '>= 0.4.1' require "rake/extensiontask" Hoe.plugin :debugging, :doofus, :git, :isolate Hoe.spec 'racc' do developer 'Aaron Patterson', 'aaron@tenderlovemaking.com' self.extra_rdoc_files = Dir['*.rdoc'] self.history_file = 'ChangeLog' self.readme_file = 'README.rdoc' self.testlib = :testunit extra_dev_deps << ['rake-compiler', '>= 0.4.1'] if RUBY_PLATFORM =~ /java/ self.spec_extras = { :platform => 'java' } else self.spec_extras = { :extensions => ["ext/racc/extconf.rb"] } end Rake::ExtensionTask.new "cparse", spec do |ext| ext.lib_dir = File.join 'lib', 'racc' ext.ext_dir = File.join 'ext', 'racc' end end file 'lib/racc/parser-text.rb' => ['lib/racc/parser.rb'] do |t| source = 'lib/racc/parser.rb' open(t.name, 'wb') { |io| io.write(<<-eorb) module Racc PARSER_TEXT = <<'__end_of_file__' #{File.read(source)} __end_of_file__ end eorb } end Hoe.add_include_dirs('.:lib/racc') task :compile => 'lib/racc/parser-text.rb'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
racc-1.4.10 | Rakefile |
racc-1.4.9-java | Rakefile |