File.join(gem_dir, "specifications") -- build_dir = Gem::StubSpecification.gemspec_stub("", ".bundle", ".bundle").extensions_dir -- -- # We are about to build extensions, and want to configure extensions with the -- # newly installed ruby. -- Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name))) -- # Prevent fake.rb propagation. It conflicts with the natural mkmf configs of -- # the newly installed ruby. -- ENV.delete('RUBYOPT') -- -- File.foreach("#{srcdir}/gems/bundled_gems") do |name| -- next if /^\s*(?:#|$)/ =~ name -- next unless /^(\S+)\s+(\S+).*/ =~ name -- gem = $1 -- gem_name = "#$1-#$2" -- # Try to find the original gemspec file -- path = "#{srcdir}/.bundle/gems/#{gem_name}/#{gem}.gemspec" -- unless File.exist?(path) -- # Try to find the gemspec file for C ext gems -- # ex .bundle/gems/debug-1.7.1/debug-1.7.1.gemspec -- # This gemspec keep the original dependencies -- path = "#{srcdir}/.bundle/gems/#{gem_name}/#{gem_name}.gemspec" -- unless File.exist?(path) -- # Try to find the gemspec file for gems that hasn't own gemspec -- path = "#{srcdir}/.bundle/specifications/#{gem_name}.gemspec" -- unless File.exist?(path) -- skipped[gem_name] = "gemspec not found" -- next -- end -- end -- end -- spec = load_gemspec(path, "#{srcdir}/.bundle/gems/#{gem_name}") -- unless spec.platform == Gem::Platform::RUBY -- skipped[gem_name] = "not ruby platform (#{spec.platform})" -- next -- end -- unless spec.full_name == gem_name -- skipped[gem_name] = "full name unmatch #{spec.full_name}" -- next -- end -- spec.extension_dir = "#{extensions_dir}/#{spec.full_name}" -- package = RbInstall::DirPackage.new spec -- ins = RbInstall::UnpackedInstaller.new(package, options) -- puts "#{INDENT}#{spec.name} #{spec.version}" -- ins.install -- install_recursive("#{build_dir}/#{gem_name}", "#{extensions_dir}/#{gem_name}") do |src, dest| -- # puts "#{INDENT} #{dest[extensions_dir.size+gem_name.size+2..-1]}" -- install src, dest, :mode => (File.executable?(src) ? $prog_mode : $data_mode) -- end -- installed_gems[spec.full_name] = true -- end -- installed_gems, gems = Dir.glob(srcdir+'/gems/*.gem').partition {|gem| installed_gems.key?(File.basename(gem, '.gem'))} -- unless installed_gems.empty? -- prepare "bundled gem cache", gem_dir+"/cache" -- install installed_gems, gem_dir+"/cache" -- end -- unless gems.empty? -- skipped.default = "not found in bundled_gems" -- puts "skipped bundled gems:" -- gems.each do |gem| -- printf " %-32s%s\n", File.basename(gem), skipped[gem] -- end -- end --end -- - parse_args() - - include FileUtils diff --git a/lang/ruby32/pkg-descr b/lang/ruby32/pkg-descr deleted file mode 100644 index a537df18eb88..000000000000 --- a/lang/ruby32/pkg-descr +++ /dev/null @@ -1,17 +0,0 @@ -Ruby is the interpreted scripting language for quick and -easy object-oriented programming. It has many features to -process text files and to do system management tasks (as in -Perl). It is simple, straight-forward, and extensible. - -Features of Ruby are shown below. - - + Simple Syntax - + *Normal* Object-Oriented features(ex. class, method calls) - + *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method) - + Operator Overloading - + Exception Handling - + Iterators and Closures - + Garbage Collection - + Dynamic Loading of Object files(on some architecture) - + Highly Portable(works on many UNIX machines, and on DOS, - Windows, Mac, BeOS etc.) diff --git a/lang/ruby32/pkg-message b/lang/ruby32/pkg-message deleted file mode 100644 index 54361aa0cfe0..000000000000 --- a/lang/ruby32/pkg-message +++ /dev/null @@ -1,31 +0,0 @@ -[ -{ type: install - message: <