Changeset 346

Show
Ignore:
Timestamp:
06/01/07 08:39:06 (2 years ago)
Author:
blackhedd
Message:

Deleted our tasks and external gemspecs for producing binary gems.
From now on, use Patrick Hurley's gembuilder to make binary gems.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/Rakefile

    r345 r346  
    3434 
    3535 
    36  
     36# The tasks and external gemspecs we used to generate binary gems are now 
     37# obsolete. Use Patrick Hurley's gembuilder to build binary gems for any 
     38# desired platform. 
     39 
     40=begin 
    3741# To build a binary gem for win32, first build rubyeventmachine.so 
    3842# using VC6 outside of the build tree (the normal way: ruby extconf.rb, 
     
    7074 
    7175spec = eval(File.read("eventmachine.gemspec")) 
     76=end 
     77 
     78spec = Gem::Specification.new do |s| 
     79        s.name              = "eventmachine" 
     80        s.summary           = "Ruby/EventMachine library" 
     81        s.platform          = Gem::Platform::RUBY 
     82 
     83        s.has_rdoc          = true 
     84        s.rdoc_options      = %w(--title EventMachine --main README --line-numbers) 
     85        s.extra_rdoc_files = ["README", "RELEASE_NOTES", "COPYING", "GNU", "LEGAL", "TODO"] 
     86 
     87        s.files             = FileList["{bin,tests,lib,ext}/**/*"].exclude("rdoc").to_a 
     88 
     89        s.require_paths     = ["lib"] 
     90 
     91        s.test_file         = "tests/testem.rb" 
     92        s.extensions        = "ext/extconf.rb" 
     93 
     94        s.author            = "Francis Cianfrocca" 
     95        s.email             = "garbagecat10@gmail.com" 
     96        s.rubyforge_project = %q(eventmachine) 
     97        s.homepage          = "http://rubyeventmachine.com" 
     98 
     99 
     100        description = [] 
     101        File.open("README") do |file| 
     102                file.each do |line| 
     103                        line.chomp! 
     104                        break if line.empty? 
     105                        description << "#{line.gsub(/\[\d\]/, '')}" 
     106                end 
     107        end 
     108        s.description = description[1..-1].join(" ") 
     109end 
     110 
    72111spec.version = $version 
    73 desc "Build the RubyGem for EventMachine
     112desc "Build the EventMachine RubyGem
    74113task :gem => ["pkg/eventmachine-#{$version}.gem"] 
    75114Rake::GemPackageTask.new(spec) do |g| 
     
    221260 
    222261desc "Build everything" 
    223 task :default => [ :gem, :gemwin32
    224  
     262task :default => [ :gem
     263