| | 121 | |
|---|
| | 122 | |
|---|
| | 123 | jspec = Gem::Specification.new do |s| |
|---|
| | 124 | s.name = "eventmachine-java" |
|---|
| | 125 | s.summary = "Ruby/EventMachine library" |
|---|
| | 126 | s.platform = Gem::Platform::RUBY |
|---|
| | 127 | |
|---|
| | 128 | s.has_rdoc = true |
|---|
| | 129 | s.rdoc_options = %w(--title EventMachine --main README --line-numbers) |
|---|
| | 130 | s.extra_rdoc_files = ["README", "RELEASE_NOTES", "COPYING", "GNU", "LEGAL", "TODO"] |
|---|
| | 131 | |
|---|
| | 132 | s.files = FileList["{lib}/**/*"].exclude("rdoc").to_a |
|---|
| | 133 | |
|---|
| | 134 | s.require_paths = ["lib"] |
|---|
| | 135 | |
|---|
| | 136 | s.author = "Francis Cianfrocca" |
|---|
| | 137 | s.email = "garbagecat10@gmail.com" |
|---|
| | 138 | s.rubyforge_project = %q(eventmachine) |
|---|
| | 139 | s.homepage = "http://rubyeventmachine.com" |
|---|
| | 140 | |
|---|
| | 141 | |
|---|
| | 142 | description = [] |
|---|
| | 143 | File.open("README") do |file| |
|---|
| | 144 | file.each do |line| |
|---|
| | 145 | line.chomp! |
|---|
| | 146 | break if line.empty? |
|---|
| | 147 | description << "#{line.gsub(/\[\d\]/, '')}" |
|---|
| | 148 | end |
|---|
| | 149 | end |
|---|
| | 150 | s.description = description[1..-1].join(" ") |
|---|
| | 151 | end |
|---|
| | 152 | |
|---|
| | 153 | |
|---|
| | 154 | jspec.version = $version |
|---|
| | 155 | desc "Build the EventMachine RubyGem for JRuby" |
|---|
| | 156 | task :jgem => ["pkg/eventmachine-java-#{$version}.gem"] |
|---|
| | 157 | Rake::GemPackageTask.new(jspec) do |g| |
|---|
| | 158 | if $can_minitar |
|---|
| | 159 | g.need_tar = false |
|---|
| | 160 | g.need_zip = false |
|---|
| | 161 | end |
|---|
| | 162 | g.package_dir = "pkg" |
|---|
| | 163 | end |
|---|
| | 164 | |
|---|