Gentoo Archives: gentoo-commits

From: "Richard Brown (rbrown)" <rbrown@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/rubygems/files: rubygems-1.1.0-setup.patch rubygems-1.1.0-dependency-installer-install-dir-fix.patch
Date: Sat, 29 Mar 2008 15:16:24
Message-Id: E1Jfcn7-0004GU-NG@stork.gentoo.org
1 rbrown 08/03/29 15:16:21
2
3 Added: rubygems-1.1.0-setup.patch
4 rubygems-1.1.0-dependency-installer-install-dir-fix.patch
5 Log:
6 Version bump. Fixes bug #215293
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.1 dev-ruby/rubygems/files/rubygems-1.1.0-setup.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/files/rubygems-1.1.0-setup.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/files/rubygems-1.1.0-setup.patch?rev=1.1&content-type=text/plain
14
15 Index: rubygems-1.1.0-setup.patch
16 ===================================================================
17 Source: Richard Brown
18 Upstream: no
19 Reason: respect --prefix properly, stop stamping on live filesystem.
20 --- setup.rb.orig 2008-03-27 23:09:24.000000000 +0000
21 +++ setup.rb 2008-03-29 09:12:32.000000000 +0000
22 @@ -81,8 +81,8 @@
23
24 raise "invalid --prefix #{prefix.inspect}" if prefix.nil?
25
26 - lib_dir = File.join prefix, 'lib'
27 - bin_dir = File.join prefix, 'bin'
28 + lib_dir = File.join prefix, Config::CONFIG['sitelibdir']
29 + bin_dir = File.join prefix, Config::CONFIG['bindir']
30
31 mkdir_p lib_dir
32 mkdir_p bin_dir
33 @@ -187,30 +187,15 @@
34 end
35 end
36
37 -# Remove source caches
38 -
39 -require 'rubygems/source_info_cache'
40 -
41 -user_cache_file = Gem::SourceInfoCache.user_cache_file
42 -system_cache_file = Gem::SourceInfoCache.system_cache_file
43 -
44 -rm_f user_cache_file if File.writable? File.dirname(user_cache_file)
45 -rm_f system_cache_file if File.writable? File.dirname(system_cache_file)
46 -
47 # install RDoc
48
49 gem_doc_dir = File.join Gem.dir, 'doc'
50
51 if File.writable? gem_doc_dir then
52 - puts "Removing old RubyGems RDoc and ri"
53 - Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
54 - rm_rf dir
55 - end
56 -
57 def run_rdoc(*args)
58 args << '--quiet'
59 args << '--main' << 'README'
60 - args << '.' << 'README' << 'LICENSE.txt' << 'GPL.txt'
61 + args << '.' << 'README'
62
63 r = RDoc::RDoc.new
64 r.document args
65 @@ -237,6 +222,7 @@
66 end
67
68 # Remove stubs
69 +if false # Don't want this
70
71 def stub?(path)
72 return unless File.readable? path
73 @@ -305,3 +291,4 @@
74 puts "to remove it by hand."
75 puts
76
77 +end
78
79
80
81 1.1 dev-ruby/rubygems/files/rubygems-1.1.0-dependency-installer-install-dir-fix.patch
82
83 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/files/rubygems-1.1.0-dependency-installer-install-dir-fix.patch?rev=1.1&view=markup
84 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/files/rubygems-1.1.0-dependency-installer-install-dir-fix.patch?rev=1.1&content-type=text/plain
85
86 Index: rubygems-1.1.0-dependency-installer-install-dir-fix.patch
87 ===================================================================
88 Index: lib/rubygems/dependency_installer.rb
89 ===================================================================
90 --- lib/rubygems/dependency_installer.rb (revision 1678)
91 +++ lib/rubygems/dependency_installer.rb (working copy)
92 @@ -189,7 +189,7 @@
93 say "Installing gem #{spec.full_name}" if Gem.configuration.really_verbose
94
95 _, source_uri = @specs_and_sources.assoc spec
96 - local_gem_path = Gem::RemoteFetcher.fetcher.download spec, source_uri
97 + local_gem_path = Gem::RemoteFetcher.fetcher.download spec, source_uri, @install_dir
98
99 inst = Gem::Installer.new local_gem_path,
100 :env_shebang => @env_shebang,
101
102
103
104 --
105 gentoo-commits@l.g.o mailing list