[101964] trunk/dports/www/webkit-gtk

ryandesign at macports.org ryandesign at macports.org
Tue Jan 22 23:07:34 PST 2013


Revision: 101964
          https://trac.macports.org/changeset/101964
Author:   ryandesign at macports.org
Date:     2013-01-22 23:07:33 -0800 (Tue, 22 Jan 2013)
Log Message:
-----------
webkit-gtk: fix build failure with ruby versions < 1.8.7 (i.e. Leopard and Tiger; #37740)

Modified Paths:
--------------
    trunk/dports/www/webkit-gtk/Portfile

Added Paths:
-----------
    trunk/dports/www/webkit-gtk/files/ruby-1.8.patch

Modified: trunk/dports/www/webkit-gtk/Portfile
===================================================================
--- trunk/dports/www/webkit-gtk/Portfile	2013-01-23 04:50:53 UTC (rev 101963)
+++ trunk/dports/www/webkit-gtk/Portfile	2013-01-23 07:07:33 UTC (rev 101964)
@@ -52,6 +52,7 @@
         case-insensitive.patch \
         our-icu.patch \
         xrender-check.patch \
+        ruby-1.8.patch \
         tiger.patch
 
 conflicts_build     google-test

Added: trunk/dports/www/webkit-gtk/files/ruby-1.8.patch
===================================================================
--- trunk/dports/www/webkit-gtk/files/ruby-1.8.patch	                        (rev 0)
+++ trunk/dports/www/webkit-gtk/files/ruby-1.8.patch	2013-01-23 07:07:33 UTC (rev 101964)
@@ -0,0 +1,15 @@
+--- Source/JavaScriptCore/offlineasm/offsets.rb.orig	2012-11-23 14:12:16.000000000 -0600
++++ Source/JavaScriptCore/offlineasm/offsets.rb	2013-01-22 19:35:47.000000000 -0600
+@@ -109,7 +109,11 @@
+     File.open(file, "r") {
+         | inp |
+         loop {
+-            byte = inp.getbyte
++            if RUBY_VERSION >= '1.8.7'
++              byte = inp.getbyte
++            else
++              byte = inp.getc
++            end
+             break unless byte
+             fileBytes << byte
+         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130122/d057b4ba/attachment.html>


More information about the macports-changes mailing list