ports/156506: [PATCH] lang/ruby-doc-stdlib (patch to enable compiling with RUBY_VER 1.9)

Eric Freeman freebsdports at chillibear.com
Tue Apr 19 21:40:10 UTC 2011


>Number:         156506
>Category:       ports
>Synopsis:       [PATCH] lang/ruby-doc-stdlib (patch to enable compiling with RUBY_VER 1.9)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 19 21:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Eric Freeman
>Release:        8.2
>Organization:
>Environment:
FreeBSD BSD8R.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Currently lang/ruby-doc-stdlib does not install when RUBY_VER is 1.9.

This is a small tweak to the (ruby) install script to enable it to run under Ruby 1.9.
>How-To-Repeat:
install ruby 1.9 and 

cd /usr/ports/lang/ruby-doc-stdlib && make install clean RUBY_VER=1.9

fails
>Fix:
diff -ruN ruby-doc-stdlib.orig/files/patch-install.rb.2 ruby-doc-stdlib/files/patch-install.rb.2
--- ruby-doc-stdlib.orig/files/patch-install.rb.2	1970-01-01 01:00:00.000000000 +0100
+++ ruby-doc-stdlib/files/patch-install.rb.2	2011-04-18 19:16:00.000000000 +0100
@@ -0,0 +1,11 @@
+--- install.rb.orig	2011-04-18 19:15:14.000000000 +0100
++++ install.rb	2011-04-18 19:15:34.000000000 +0100
+@@ -83,7 +83,7 @@
+ opts = OptionParser.new do |o|
+   o.program_name = "ruby install.rb"
+   o.separator "Options:"
+-  o.on('--doc-base DIR', '-d', "Install documentation to DIR/stdlib") { |@doc_base| }
++  o.on('--doc-base DIR', '-d', "Install documentation to DIR/stdlib") { |_doc_base| @doc_base = _doc_base}
+   o.on('--force', '-f', "Don't ask any questions; just install") { @force = true }
+   o.on('--interactive', '-i', "Confirm any risky actions") { @force = false }
+   o.on_tail('--help', '-h', "Show this message") do

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list