add all my local ebuilds
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@602 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
Index: lib/rubygems/installer.rb
|
||||
===================================================================
|
||||
--- lib/rubygems/installer.rb (revision 1195)
|
||||
+++ lib/rubygems/installer.rb (working copy)
|
||||
@@ -7,6 +7,8 @@ require 'rubygems/dependency_list'
|
||||
|
||||
module Gem
|
||||
|
||||
+ class InstallError < Gem::Exception; end
|
||||
+
|
||||
class DependencyRemovalException < Gem::Exception; end
|
||||
|
||||
##
|
||||
@@ -321,14 +323,20 @@ TEXT
|
||||
#
|
||||
def extract_files(directory, format)
|
||||
require 'fileutils'
|
||||
- wd = Dir.getwd
|
||||
- Dir.chdir directory do
|
||||
- format.file_entries.each do |entry, file_data|
|
||||
- path = entry['path']
|
||||
- FileUtils.mkdir_p File.dirname(path)
|
||||
- File.open(path, "wb") do |out|
|
||||
- out.write file_data
|
||||
- end
|
||||
+ format.file_entries.each do |entry, file_data|
|
||||
+ path = entry['path']
|
||||
+ if path =~ /\A\// then # for extra sanity
|
||||
+ raise Gem::InstallError,
|
||||
+ "attempt to install file into #{entry['path'].inspect}"
|
||||
+ end
|
||||
+ path = File.expand_path File.join(directory, path)
|
||||
+ if path !~ /\A#{Regexp.escape(File.expand_path(directory))}/ then
|
||||
+ raise Gem::InstallError,
|
||||
+ "attempt to install file into #{entry['path'].inspect}"
|
||||
+ end
|
||||
+ FileUtils.mkdir_p File.dirname(path)
|
||||
+ File.open(path, "wb") do |out|
|
||||
+ out.write file_data
|
||||
end
|
||||
end
|
||||
end
|
||||
1
dev-ruby/rubygems/files/10rubygems
Normal file
1
dev-ruby/rubygems/files/10rubygems
Normal file
@@ -0,0 +1 @@
|
||||
RUBYOPT="-rauto_gem"
|
||||
7
dev-ruby/rubygems/files/auto_gem.rb
Normal file
7
dev-ruby/rubygems/files/auto_gem.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# This file is installed by Gentoo's rubygems package.
|
||||
# It's intended to help automate the loading of rubygems
|
||||
|
||||
begin
|
||||
require 'rubygems'
|
||||
rescue LoadError
|
||||
end
|
||||
5
dev-ruby/rubygems/files/conf.d-gem_server
Normal file
5
dev-ruby/rubygems/files/conf.d-gem_server
Normal file
@@ -0,0 +1,5 @@
|
||||
# /etc/conf.d/gem_server
|
||||
|
||||
# See `gem_server --help` for more
|
||||
|
||||
GEM_SERVER_OPTS=""
|
||||
22
dev-ruby/rubygems/files/init.d-gem_server
Normal file
22
dev-ruby/rubygems/files/init.d-gem_server
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
PID=/var/run/gem_server.pid
|
||||
|
||||
depend() {
|
||||
need localmount net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting gem_server"
|
||||
start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \
|
||||
--pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem_server ${GEM_SERVER_OPTS}
|
||||
eend ${?}
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gem_server"
|
||||
start-stop-daemon --stop --pidfile ${PID}
|
||||
eend ${?}
|
||||
}
|
||||
22
dev-ruby/rubygems/files/init.d-gem_server2
Normal file
22
dev-ruby/rubygems/files/init.d-gem_server2
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
PID=/var/run/gem_server.pid
|
||||
|
||||
depend() {
|
||||
need localmount net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting gem_server"
|
||||
start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \
|
||||
--pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem server ${GEM_SERVER_OPTS}
|
||||
eend ${?}
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gem_server"
|
||||
start-stop-daemon --stop --pidfile ${PID}
|
||||
eend ${?}
|
||||
}
|
||||
13
dev-ruby/rubygems/files/no-manage_gems.patch
Normal file
13
dev-ruby/rubygems/files/no-manage_gems.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff -ur rubygems-0.8.11/post-install.rb rubygems-0.8.11.new/post-install.rb
|
||||
--- rubygems-0.8.11/post-install.rb 2005-07-10 06:18:40.000000000 +0700
|
||||
+++ rubygems-0.8.11.new/post-install.rb 2007-01-26 22:05:18.000000000 +0700
|
||||
@@ -61,7 +61,8 @@
|
||||
def install_sources
|
||||
$: << "lib"
|
||||
require 'rubygems'
|
||||
- Gem::manage_gems
|
||||
+ require 'rubygems/builder'
|
||||
+ require 'rubygems/installer'
|
||||
Dir.chdir("pkgs/sources") do
|
||||
load "sources.gemspec"
|
||||
spec = Gem.sources_spec
|
||||
12
dev-ruby/rubygems/files/no-system-rubygems.patch
Normal file
12
dev-ruby/rubygems/files/no-system-rubygems.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -ur rubygems-0.9.0/post-install.rb rubygems-0.9.0.new/post-install.rb
|
||||
--- rubygems-0.9.0/post-install.rb 2006-06-07 10:39:53.000000000 +0700
|
||||
+++ rubygems-0.9.0.new/post-install.rb 2007-01-28 16:53:13.000000000 +0700
|
||||
@@ -65,7 +65,7 @@
|
||||
end
|
||||
|
||||
def install_sources
|
||||
- $: << "lib"
|
||||
+ $:.unshift "lib"
|
||||
require 'rubygems'
|
||||
Gem::manage_gems
|
||||
Dir.chdir("pkgs/sources") do
|
||||
9
dev-ruby/rubygems/files/no_post_install.patch
Normal file
9
dev-ruby/rubygems/files/no_post_install.patch
Normal file
@@ -0,0 +1,9 @@
|
||||
--- post-install.rb.orig 2005-10-20 10:46:25.000000000 -0500
|
||||
+++ post-install.rb 2005-10-20 10:46:29.000000000 -0500
|
||||
@@ -71,6 +71,5 @@
|
||||
end
|
||||
|
||||
install_windows_batch_files
|
||||
-remove_stubs
|
||||
install_sources
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
diff -ur rubygems-0.9.1/post-install.rb rubygems-0.9.1.new/post-install.rb
|
||||
--- rubygems-0.9.1/post-install.rb 2007-01-16 07:31:27.000000000 +0700
|
||||
+++ rubygems-0.9.1.new/post-install.rb 2007-01-17 20:05:04.000000000 +0700
|
||||
@@ -117,5 +117,4 @@
|
||||
remove_old_rdoc
|
||||
install_rdoc
|
||||
install_windows_batch_files
|
||||
-remove_stubs
|
||||
|
||||
11
dev-ruby/rubygems/files/rubygems-0.9.1-no_rdoc_install.patch
Normal file
11
dev-ruby/rubygems/files/rubygems-0.9.1-no_rdoc_install.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -ur rubygems-0.9.1/post-install.rb rubygems-0.9.1.new/post-install.rb
|
||||
--- rubygems-0.9.1/post-install.rb 2007-01-17 20:18:48.000000000 +0700
|
||||
+++ rubygems-0.9.1.new/post-install.rb 2007-01-17 20:18:24.000000000 +0700
|
||||
@@ -114,7 +114,5 @@
|
||||
end
|
||||
|
||||
install_sources
|
||||
-remove_old_rdoc
|
||||
-install_rdoc
|
||||
install_windows_batch_files
|
||||
|
||||
20
dev-ruby/rubygems/files/rubygems-0.9.4-shebang-env-fix.patch
Normal file
20
dev-ruby/rubygems/files/rubygems-0.9.4-shebang-env-fix.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
This patch is taken from r1441 of rubygems's SVN repository to fix
|
||||
rewriting of /usr/bin/env shebang patch with additional arguments to
|
||||
the ruby interpreter. Without the patch the regexp would not match,
|
||||
leaving the /usr/bin/env in place. This causes problems on platforms
|
||||
that pass the remainder of the shebang line as a single argument, such
|
||||
as Linux. See bug #199378 for all the details.
|
||||
|
||||
This patch should no longer be needed with rubygems 0.9.5.
|
||||
|
||||
--- lib/rubygems/installer.rb.~1~ 2007-05-10 21:01:45.000000000 +0200
|
||||
+++ lib/rubygems/installer.rb 2007-11-18 14:18:31.000000000 +0100
|
||||
@@ -254,7 +254,7 @@
|
||||
path_to_ruby = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
|
||||
if first_line =~ /^#!/
|
||||
# Preserve extra words on shebang line, like "-w". Thanks RPA.
|
||||
- shebang = first_line.sub(/\A\#!\s*\S*ruby\S*/, "#!" + path_to_ruby)
|
||||
+ shebang = first_line.sub(/\A\#!.*?ruby\S*/, "#!" + path_to_ruby)
|
||||
else
|
||||
# Create a plain shebang line.
|
||||
shebang = "#!" + path_to_ruby
|
||||
70
dev-ruby/rubygems/files/rubygems-0.9.5-setup.patch
Normal file
70
dev-ruby/rubygems/files/rubygems-0.9.5-setup.patch
Normal file
@@ -0,0 +1,70 @@
|
||||
Index: setup.rb
|
||||
===================================================================
|
||||
--- setup.rb (revision 1542)
|
||||
+++ setup.rb (working copy)
|
||||
@@ -72,8 +72,8 @@
|
||||
|
||||
raise "invalid --prefix #{prefix.inspect}" if prefix.nil?
|
||||
|
||||
- lib_dir = File.join prefix, 'lib'
|
||||
- bin_dir = File.join prefix, 'bin'
|
||||
+ lib_dir = File.join prefix, Config::CONFIG['sitelibdir']
|
||||
+ bin_dir = File.join prefix, Config::CONFIG['bindir']
|
||||
|
||||
mkdir_p lib_dir
|
||||
mkdir_p bin_dir
|
||||
@@ -173,26 +173,12 @@
|
||||
end
|
||||
end
|
||||
|
||||
-# Remove source caches
|
||||
-
|
||||
-require 'rubygems/source_info_cache'
|
||||
-
|
||||
-user_cache_file = Gem::SourceInfoCache.user_cache_file
|
||||
-system_cache_file = Gem::SourceInfoCache.system_cache_file
|
||||
-
|
||||
-rm user_cache_file if File.writable? user_cache_file
|
||||
-rm system_cache_file if File.writable? system_cache_file
|
||||
-
|
||||
# install RDoc
|
||||
|
||||
-gem_doc_dir = File.join Gem.dir, 'doc'
|
||||
+gem_doc_dir = File.join prefix, Gem.dir, 'doc'
|
||||
|
||||
+unless ARGV.include? '--no-rdoc'
|
||||
if File.writable? gem_doc_dir then
|
||||
- puts "Removing old RubyGems RDoc and ri..."
|
||||
- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
|
||||
- rm_rf dir
|
||||
- end
|
||||
-
|
||||
def run_rdoc(*args)
|
||||
args << '--quiet'
|
||||
args << '--main' << 'README'
|
||||
@@ -204,7 +190,7 @@
|
||||
|
||||
rubygems_name = "rubygems-#{Gem::RubyGemsVersion}"
|
||||
|
||||
- doc_dir = File.join Gem.dir, 'doc', rubygems_name
|
||||
+ doc_dir = File.join prefix, Gem.dir, 'doc', rubygems_name
|
||||
|
||||
unless ARGV.include? '--no-ri' then
|
||||
ri_dir = File.join doc_dir, 'ri'
|
||||
@@ -221,8 +207,10 @@
|
||||
puts "Skipping RDoc generation, #{gem_doc_dir} not writable"
|
||||
puts "Set the GEM_HOME environment variable if you want RDoc generated"
|
||||
end
|
||||
+end
|
||||
|
||||
# Remove stubs
|
||||
+if false # Don't want this
|
||||
|
||||
def stub?(path)
|
||||
return unless File.readable? path
|
||||
@@ -268,3 +256,4 @@
|
||||
puts "No library stubs found."
|
||||
end
|
||||
|
||||
+end
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
Index: lib/rubygems/dependency_installer.rb
|
||||
===================================================================
|
||||
--- lib/rubygems/dependency_installer.rb (revision 1678)
|
||||
+++ lib/rubygems/dependency_installer.rb (working copy)
|
||||
@@ -189,7 +189,7 @@
|
||||
say "Installing gem #{spec.full_name}" if Gem.configuration.really_verbose
|
||||
|
||||
_, source_uri = @specs_and_sources.assoc spec
|
||||
- local_gem_path = Gem::RemoteFetcher.fetcher.download spec, source_uri
|
||||
+ local_gem_path = Gem::RemoteFetcher.fetcher.download spec, source_uri, @install_dir
|
||||
|
||||
inst = Gem::Installer.new local_gem_path,
|
||||
:env_shebang => @env_shebang,
|
||||
61
dev-ruby/rubygems/files/rubygems-1.1.0-setup.patch
Normal file
61
dev-ruby/rubygems/files/rubygems-1.1.0-setup.patch
Normal file
@@ -0,0 +1,61 @@
|
||||
Source: Richard Brown
|
||||
Upstream: no
|
||||
Reason: respect --prefix properly, stop stamping on live filesystem.
|
||||
--- setup.rb.orig 2008-03-27 23:09:24.000000000 +0000
|
||||
+++ setup.rb 2008-03-29 09:12:32.000000000 +0000
|
||||
@@ -81,8 +81,8 @@
|
||||
|
||||
raise "invalid --prefix #{prefix.inspect}" if prefix.nil?
|
||||
|
||||
- lib_dir = File.join prefix, 'lib'
|
||||
- bin_dir = File.join prefix, 'bin'
|
||||
+ lib_dir = File.join prefix, Config::CONFIG['sitelibdir']
|
||||
+ bin_dir = File.join prefix, Config::CONFIG['bindir']
|
||||
|
||||
mkdir_p lib_dir
|
||||
mkdir_p bin_dir
|
||||
@@ -187,30 +187,15 @@
|
||||
end
|
||||
end
|
||||
|
||||
-# Remove source caches
|
||||
-
|
||||
-require 'rubygems/source_info_cache'
|
||||
-
|
||||
-user_cache_file = Gem::SourceInfoCache.user_cache_file
|
||||
-system_cache_file = Gem::SourceInfoCache.system_cache_file
|
||||
-
|
||||
-rm_f user_cache_file if File.writable? File.dirname(user_cache_file)
|
||||
-rm_f system_cache_file if File.writable? File.dirname(system_cache_file)
|
||||
-
|
||||
# install RDoc
|
||||
|
||||
gem_doc_dir = File.join Gem.dir, 'doc'
|
||||
|
||||
if File.writable? gem_doc_dir then
|
||||
- puts "Removing old RubyGems RDoc and ri"
|
||||
- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
|
||||
- rm_rf dir
|
||||
- end
|
||||
-
|
||||
def run_rdoc(*args)
|
||||
args << '--quiet'
|
||||
args << '--main' << 'README'
|
||||
- args << '.' << 'README' << 'LICENSE.txt' << 'GPL.txt'
|
||||
+ args << '.' << 'README'
|
||||
|
||||
r = RDoc::RDoc.new
|
||||
r.document args
|
||||
@@ -237,6 +222,7 @@
|
||||
end
|
||||
|
||||
# Remove stubs
|
||||
+if false # Don't want this
|
||||
|
||||
def stub?(path)
|
||||
return unless File.readable? path
|
||||
@@ -305,3 +291,4 @@
|
||||
puts "to remove it by hand."
|
||||
puts
|
||||
|
||||
+end
|
||||
60
dev-ruby/rubygems/files/rubygems-1.1.1-setup.patch
Normal file
60
dev-ruby/rubygems/files/rubygems-1.1.1-setup.patch
Normal file
@@ -0,0 +1,60 @@
|
||||
--- setup.rb.orig 2008-04-11 07:18:01.000000000 +0100
|
||||
+++ setup.rb 2008-04-11 07:14:53.000000000 +0100
|
||||
@@ -94,8 +94,8 @@
|
||||
lib_dir = Gem::ConfigMap[:sitelibdir]
|
||||
bin_dir = Gem::ConfigMap[:bindir]
|
||||
else
|
||||
- lib_dir = File.join prefix, 'lib'
|
||||
- bin_dir = File.join prefix, 'bin'
|
||||
+ lib_dir = File.join prefix, Gem::ConfigMap[:sitelibdir]
|
||||
+ bin_dir = File.join prefix, Gem::ConfigMap[:bindir]
|
||||
|
||||
mkdir_p lib_dir
|
||||
mkdir_p bin_dir
|
||||
@@ -201,16 +201,6 @@
|
||||
end
|
||||
end
|
||||
|
||||
-# Remove source caches
|
||||
-
|
||||
-require 'rubygems/source_info_cache'
|
||||
-
|
||||
-user_cache_file = Gem::SourceInfoCache.user_cache_file
|
||||
-system_cache_file = Gem::SourceInfoCache.system_cache_file
|
||||
-
|
||||
-rm_f user_cache_file if File.writable? File.dirname(user_cache_file)
|
||||
-rm_f system_cache_file if File.writable? File.dirname(system_cache_file)
|
||||
-
|
||||
# install RDoc
|
||||
|
||||
gem_doc_dir = File.join Gem.dir, 'doc'
|
||||
@@ -220,15 +210,11 @@
|
||||
if File.writable? gem_doc_dir and
|
||||
(not File.exist? rubygems_doc_dir or
|
||||
File.writable? rubygems_doc_dir) then
|
||||
- puts "Removing old RubyGems RDoc and ri"
|
||||
- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
|
||||
- rm_rf dir
|
||||
- end
|
||||
|
||||
def run_rdoc(*args)
|
||||
args << '--quiet'
|
||||
args << '--main' << 'README'
|
||||
- args << '.' << 'README' << 'LICENSE.txt' << 'GPL.txt'
|
||||
+ args << '.' << 'README'
|
||||
|
||||
r = RDoc::RDoc.new
|
||||
r.document args
|
||||
@@ -251,6 +237,7 @@
|
||||
end
|
||||
|
||||
# Remove stubs
|
||||
+if false # Don't want this
|
||||
|
||||
def stub?(path)
|
||||
return unless File.readable? path
|
||||
@@ -319,3 +306,4 @@
|
||||
puts "to remove it by hand."
|
||||
puts
|
||||
|
||||
+end
|
||||
71
dev-ruby/rubygems/files/rubygems-1.2.0-setup-notmpdir.patch
Normal file
71
dev-ruby/rubygems/files/rubygems-1.2.0-setup-notmpdir.patch
Normal file
@@ -0,0 +1,71 @@
|
||||
--- setup.vanilla.rb 2008-08-07 23:05:41.000000000 +0200
|
||||
+++ setup.rb 2008-08-07 23:07:19.000000000 +0200
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
require 'fileutils'
|
||||
require 'rbconfig'
|
||||
-require 'tmpdir'
|
||||
+#require 'tmpdir'
|
||||
|
||||
include FileUtils::Verbose
|
||||
|
||||
@@ -128,8 +128,8 @@
|
||||
lib_dir = Gem::ConfigMap[site_or_vendor]
|
||||
bin_dir = Gem::ConfigMap[:bindir]
|
||||
else
|
||||
- lib_dir = File.join prefix, 'lib'
|
||||
- bin_dir = File.join prefix, 'bin'
|
||||
+ lib_dir = File.join prefix, Gem::ConfigMap[site_or_vendor]
|
||||
+ bin_dir = File.join prefix, Gem::ConfigMap[:bindir]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
end
|
||||
|
||||
dest_file = File.join bin_dir, bin_file_formatted
|
||||
- bin_tmp_file = File.join Dir.tmpdir, bin_file
|
||||
+ bin_tmp_file = File.join ENV['T'], bin_file
|
||||
|
||||
begin
|
||||
cp bin_file, bin_tmp_file
|
||||
@@ -240,19 +240,6 @@
|
||||
end
|
||||
end
|
||||
|
||||
-# Remove source caches
|
||||
-if install_destdir.empty?
|
||||
- require 'rubygems/source_info_cache'
|
||||
-
|
||||
- user_cache_file = File.join(install_destdir,
|
||||
- Gem::SourceInfoCache.user_cache_file)
|
||||
- system_cache_file = File.join(install_destdir,
|
||||
- Gem::SourceInfoCache.system_cache_file)
|
||||
-
|
||||
- rm_f user_cache_file if File.writable? File.dirname(user_cache_file)
|
||||
- rm_f system_cache_file if File.writable? File.dirname(system_cache_file)
|
||||
-end
|
||||
-
|
||||
# install RDoc
|
||||
|
||||
gem_doc_dir = File.join Gem.dir, 'doc'
|
||||
@@ -262,10 +249,6 @@
|
||||
if File.writable? gem_doc_dir and
|
||||
(not File.exist? rubygems_doc_dir or
|
||||
File.writable? rubygems_doc_dir) then
|
||||
- puts "Removing old RubyGems RDoc and ri"
|
||||
- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
|
||||
- rm_rf dir
|
||||
- end
|
||||
|
||||
def run_rdoc(*args)
|
||||
begin
|
||||
@@ -277,7 +260,7 @@
|
||||
|
||||
args << '--quiet'
|
||||
args << '--main' << 'README'
|
||||
- args << '.' << 'README' << 'LICENSE.txt' << 'GPL.txt'
|
||||
+ args << '.' << 'README'
|
||||
|
||||
r = RDoc::RDoc.new
|
||||
r.document args
|
||||
53
dev-ruby/rubygems/files/rubygems-1.2.0-setup.patch
Normal file
53
dev-ruby/rubygems/files/rubygems-1.2.0-setup.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
--- setup.rb.~1~ 2008-06-22 01:51:11.000000000 +0200
|
||||
+++ setup.rb 2008-06-28 09:05:54.923666929 +0200
|
||||
@@ -128,8 +128,8 @@
|
||||
lib_dir = Gem::ConfigMap[site_or_vendor]
|
||||
bin_dir = Gem::ConfigMap[:bindir]
|
||||
else
|
||||
- lib_dir = File.join prefix, 'lib'
|
||||
- bin_dir = File.join prefix, 'bin'
|
||||
+ lib_dir = File.join prefix, Gem::ConfigMap[site_or_vendor]
|
||||
+ bin_dir = File.join prefix, Gem::ConfigMap[:bindir]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -240,19 +240,6 @@
|
||||
end
|
||||
end
|
||||
|
||||
-# Remove source caches
|
||||
-if install_destdir.empty?
|
||||
- require 'rubygems/source_info_cache'
|
||||
-
|
||||
- user_cache_file = File.join(install_destdir,
|
||||
- Gem::SourceInfoCache.user_cache_file)
|
||||
- system_cache_file = File.join(install_destdir,
|
||||
- Gem::SourceInfoCache.system_cache_file)
|
||||
-
|
||||
- rm_f user_cache_file if File.writable? File.dirname(user_cache_file)
|
||||
- rm_f system_cache_file if File.writable? File.dirname(system_cache_file)
|
||||
-end
|
||||
-
|
||||
# install RDoc
|
||||
|
||||
gem_doc_dir = File.join Gem.dir, 'doc'
|
||||
@@ -262,10 +249,6 @@
|
||||
if File.writable? gem_doc_dir and
|
||||
(not File.exist? rubygems_doc_dir or
|
||||
File.writable? rubygems_doc_dir) then
|
||||
- puts "Removing old RubyGems RDoc and ri"
|
||||
- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
|
||||
- rm_rf dir
|
||||
- end
|
||||
|
||||
def run_rdoc(*args)
|
||||
begin
|
||||
@@ -277,7 +260,7 @@
|
||||
|
||||
args << '--quiet'
|
||||
args << '--main' << 'README'
|
||||
- args << '.' << 'README' << 'LICENSE.txt' << 'GPL.txt'
|
||||
+ args << '.' << 'README'
|
||||
|
||||
r = RDoc::RDoc.new
|
||||
r.document args
|
||||
Reference in New Issue
Block a user