Ticket #13135: ruby-186-p110-rexml.patch

File ruby-186-p110-rexml.patch, 2.2 KB (added by kimuraw (kimura wataru), 17 years ago)
  • lang/ruby/Portfile

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/ruby/Portfile lang/ruby/Portfile
    old new  
    33
    44name                    ruby
    55version                 1.8.6-p110
     6revision                1
    67
    78categories              lang ruby
    89maintainers             pguyot@kallisys.net
     
    3536                                patch-instruby.rb \
    3637                                patch-mkconfig.rb \
    3738                                patch-mkmf.rb \
    38                                 patch-ruby.c
     39                                patch-ruby.c \
     40                                patch-lib-rexml-ruby_dev_32040
    3941
    4042use_autoconf    yes
    4143
  • lang/ruby/files/patch-lib-rexml-ruby_dev_32040

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/ruby/files/patch-lib-rexml-ruby_dev_32040 lang/ruby/files/patch-lib-rexml-ruby_dev_32040
    old new  
     1Index: document.rb
     2===================================================================
     3--- lib/rexml/document.rb (revision 13681)
     4+++ lib/rexml/document.rb (working copy)
     5@@ -167,7 +167,7 @@
     6     #   indentation will be twice this number of spaces, and children will be
     7     #   indented an additional amount.  For a value of 3, every item will be
     8     #   indented 3 more levels, or 6 more spaces (2 * 3). Defaults to -1
     9-    # trans::
     10+    # transitive::
     11     #   If transitive is true and indent is >= 0, then the output will be
     12     #   pretty-printed in such a way that the added whitespace does not affect
     13     #   the absolute *value* of the document -- that is, it leaves the value
     14@@ -178,7 +178,7 @@
     15     #   unable to parse proper XML, we have to provide a hack to generate XML
     16     #   that IE's limited abilities can handle.  This hack inserts a space
     17     #   before the /> on empty tags.  Defaults to false
     18-               def write( output=$stdout, indent=-1, trans=false, ie_hack=false )
     19+               def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
     20       if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
     21         output = Output.new( output, xml_decl.encoding )
     22       end