Changeset 99341


Ignore:
Timestamp:
Nov 3, 2012, 2:28:01 AM (11 years ago)
Author:
jmr@…
Message:

rb-rubygems: fix bypassing destroot

Location:
trunk/dports/ruby/rb-rubygems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/ruby/rb-rubygems/Portfile

    r80525 r99341  
    6262    default_variants +ruby
    6363}
     64
     65# clean up mess from previous portfile that bypassed the destroot
     66pre-activate {
     67    set docpath "${prefix}/lib/ruby/gems/1.8/doc/rubygems-1.3.7"
     68    set adocfile "${docpath}/rdoc/classes/Gem/Builder.html"
     69    if {[file exists $adocfile] && [registry_file_registered $adocfile] == "0"} {
     70        delete $docpath
     71    }
     72}
  • trunk/dports/ruby/rb-rubygems/files/patch-lib_rubygems_commands_setup_command.rb.diff

    r52840 r99341  
    1 --- lib/rubygems/commands/setup_command.rb.orig 2009-05-27 16:51:56.000000000 -0600
    2 +++ lib/rubygems/commands/setup_command.rb      2009-06-24 00:04:37.000000000 -0600
    3 @@ -259,20 +259,8 @@
     1--- lib/rubygems/commands/setup_command.rb.orig 2010-04-20 16:47:36.000000000 +1000
     2+++ lib/rubygems/commands/setup_command.rb      2012-11-02 20:34:53.000000000 +1100
     3@@ -230,7 +230,7 @@
     4   end
     5 
     6   def install_rdoc
     7-    gem_doc_dir = File.join Gem.dir, 'doc'
     8+    gem_doc_dir = File.join options[:destdir], Gem.dir, 'doc'
     9     rubygems_name = "rubygems-#{Gem::VERSION}"
     10     rubygems_doc_dir = File.join gem_doc_dir, rubygems_name
     11 
     12@@ -270,20 +270,8 @@
    413       lib_dir = Gem::ConfigMap[site_or_vendor]
    514       bin_dir = Gem::ConfigMap[:bindir]
Note: See TracChangeset for help on using the changeset viewer.