[115694] trunk/dports/tex/texlive-context

dports at macports.org dports at macports.org
Wed Jan 8 19:18:09 PST 2014


Revision: 115694
          https://trac.macports.org/changeset/115694
Author:   dports at macports.org
Date:     2014-01-08 19:18:09 -0800 (Wed, 08 Jan 2014)
Log Message:
-----------
texlive-context: patch for compatibility with ruby 2.0 (#42056)

Modified Paths:
--------------
    trunk/dports/tex/texlive-context/Portfile

Added Paths:
-----------
    trunk/dports/tex/texlive-context/files/patch-ruby20.diff

Modified: trunk/dports/tex/texlive-context/Portfile
===================================================================
--- trunk/dports/tex/texlive-context/Portfile	2014-01-09 00:11:50 UTC (rev 115693)
+++ trunk/dports/tex/texlive-context/Portfile	2014-01-09 03:18:09 UTC (rev 115694)
@@ -6,7 +6,7 @@
 
 name                texlive-context
 version             30458
-revision            0
+revision            1
 
 categories          tex
 maintainers         dports
@@ -46,6 +46,8 @@
                     port:texlive-fonts-recommended \
                     port:texlive-math-extra
 
+patchfiles          patch-ruby20.diff
+
 post-deactivate {
     delete ${texlive_texmfsysvar}/luatex-cache
 }

Added: trunk/dports/tex/texlive-context/files/patch-ruby20.diff
===================================================================
--- trunk/dports/tex/texlive-context/files/patch-ruby20.diff	                        (rev 0)
+++ trunk/dports/tex/texlive-context/files/patch-ruby20.diff	2014-01-09 03:18:09 UTC (rev 115694)
@@ -0,0 +1,41 @@
+# a patch for compatibility with ruby 2.0
+#
+# fixed upstream in version 2013.10.20 07:09
+# http://www.ntg.nl/pipermail/ntg-context/2013/075016.html
+# http://tug.org/svn/texlive?view=revision&revision=32605
+#
+--- runfiles/texmf-dist/scripts/context/ruby/base/switch.rb.orig
++++ runfiles/texmf-dist/scripts/context/ruby/base/switch.rb
+@@ -1,3 +1,5 @@
++#encoding: ASCII-8BIT
++
+ # module    : base/switch
+ # copyright : PRAGMA Advanced Document Engineering
+ # version   : 2002-2005
+@@ -488,7 +490,7 @@ class CommandLine
+     def dirtyvalue(value)
+         if value then
+             value.gsub(/([\"\'])(.*?)\1/) do
+-                $2.gsub(/\s+/o, "\xFF")
++                $2.gsub(/\s+/o, "\0xFF")
+             end
+         else
+             ''
+@@ -498,7 +500,7 @@ class CommandLine
+     def cleanvalue(value)
+         if value then
+             # value.sub(/^([\"\'])(.*?)\1$/) { $2.gsub(/\xFF/o, ' ') }
+-            value.gsub(/\xFF/o, ' ')
++            value.gsub(/\0xFF/o, ' ')
+         else
+             ''
+         end
+@@ -567,7 +569,7 @@ class CommandLine
+ 
+     def locateseries(series, value)
+ 
+-        series.each do |key|
++        series.each_char do |key|
+             locatesingle(key,cleanvalue(value))
+         end
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140108/53782c49/attachment.html>


More information about the macports-changes mailing list