[40772] trunk/dports/lang/ruby
kimuraw at macports.org
kimuraw at macports.org
Tue Oct 14 06:08:04 PDT 2008
Revision: 40772
http://trac.macports.org/changeset/40772
Author: kimuraw at macports.org
Date: 2008-10-14 06:08:03 -0700 (Tue, 14 Oct 2008)
Log Message:
-----------
lang/ruby:
apply a patch of #16853.
This patch fixes a bug in lib/rexml/formatters/pretty.rb
Modified Paths:
--------------
trunk/dports/lang/ruby/Portfile
Added Paths:
-----------
trunk/dports/lang/ruby/files/patch-lib-rexml-formatters-pretty.rb.diff
Modified: trunk/dports/lang/ruby/Portfile
===================================================================
--- trunk/dports/lang/ruby/Portfile 2008-10-14 11:03:07 UTC (rev 40771)
+++ trunk/dports/lang/ruby/Portfile 2008-10-14 13:08:03 UTC (rev 40772)
@@ -4,7 +4,7 @@
name ruby
version 1.8.7-p72
-revision 0
+revision 1
categories lang ruby
maintainers kimuraw
@@ -38,8 +38,14 @@
patch-mkmf.rb \
patch-mkconfig.rb \
patch-socket.c \
- patch-test_socket.rb
+ patch-test_socket.rb \
+# http://trac.macports.org/ticket/16853
+# abandon wrapping if the line contains no space.
+# (REXML::Formatters::Pretty#wrap)
+# http://redmine.ruby-lang.org/issues/show/516
+patchfiles-append patch-lib-rexml-formatters-pretty.rb.diff
+
use_autoconf yes
use_parallel_build yes
Added: trunk/dports/lang/ruby/files/patch-lib-rexml-formatters-pretty.rb.diff
===================================================================
--- trunk/dports/lang/ruby/files/patch-lib-rexml-formatters-pretty.rb.diff (rev 0)
+++ trunk/dports/lang/ruby/files/patch-lib-rexml-formatters-pretty.rb.diff 2008-10-14 13:08:03 UTC (rev 40772)
@@ -0,0 +1,10 @@
+--- lib/rexml/formatters/pretty.rb 2008/06/04 09:37:38 16810
++++ lib/rexml/formatters/pretty.rb 2008/09/23 11:09:39 19487
+@@ -128,6 +128,7 @@
+ # Recursively wrap string at width.
+ return string if string.length <= width
+ place = string.rindex(' ', width) # Position in string with last ' ' before cutoff
++ return string if place.nil?
+ return string[0,place] + "\n" + wrap(string[place+1..-1], width)
+ end
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081014/2aef59ea/attachment.html
More information about the macports-changes
mailing list