Changeset 294

Show
Ignore:
Timestamp:
11/30/06 01:58:51 (2 years ago)
Author:
blackhedd
Message:

added support for a unix-binary gem.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/Rakefile

    r292 r294  
    4848  g.package_dir = "pkg" 
    4949end 
     50 
     51 
     52# To build a binary gem for unix platforms, first build rubyeventmachine.so 
     53# using gcc outside of the build tree (the normal way: ruby extconf.rb, 
     54# and then nmake). Then copy rubyeventmachine.so into the lib directory, 
     55# and run rake gembinary. 
     56specbinary = eval(File.read("eventmachine-binary.gemspec")) 
     57specbinary.version = $version 
     58desc "Build the RubyGem for EventMachine-Binary" 
     59task :gembinary => ["pkg/eventmachine-binary-#{$version}.gem"] 
     60Rake::GemPackageTask.new(specbinary) do |g| 
     61  if $can_minitar 
     62    g.need_tar    = false 
     63    g.need_zip    = false 
     64  end 
     65  g.package_dir = "pkg" 
     66end 
     67 
    5068 
    5169spec = eval(File.read("eventmachine.gemspec"))