ports/156474: [PATCH] devel/ruby-robjectteam (patch to enable compiling with RUBY_VER 1.9)
Eric Freeman
freebsdports at chillibear.com
Mon Apr 18 14:40:05 UTC 2011
>Number: 156474
>Category: ports
>Synopsis: [PATCH] devel/ruby-robjectteam (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: Mon Apr 18 14:40:04 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:
devel/ruby-robjectteam does not currently compile when RUBY_VER is 1.9
This patch adds a patch file that makes a few changes to the install.rb script to enable it to work under Ruby 1.9
>How-To-Repeat:
install ruby 1.9
cd /usr/ports/deve/ruby-robjectteam && make install RUBY_VER=1.9
fails because of ftools dependency
>Fix:
diff -ruN ruby-robjectteam.orig/files/patch-install.rb ruby-robjectteam/files/patch-install.rb
--- ruby-robjectteam.orig/files/patch-install.rb 1970-01-01 01:00:00.000000000 +0100
+++ ruby-robjectteam/files/patch-install.rb 2011-04-18 11:32:55.000000000 +0100
@@ -0,0 +1,30 @@
+--- install.rb.orig 2003-07-08 21:24:10.000000000 +0100
++++ install.rb 2011-04-18 11:17:43.000000000 +0100
+@@ -36,7 +36,7 @@
+ =end
+
+ require 'getoptlong'
+-require 'ftools'
++require 'fileutils'
+ require 'find'
+
+ SOURCE_DIR = 'objectteam'
+@@ -81,7 +81,7 @@
+
+ def install(source, destination)
+ begin
+- File.install(source, destination, 0644, true)
++ FileUtils.install(source, destination, :mode => 0644, :verbose => true)
+ rescue Errno::EACCES
+ puts "Access not permitted! #{$!}"
+ rescue
+@@ -104,7 +104,7 @@
+ #install directory
+ instdir = (instdir or install_dir())
+ #make sink directory
+- File.makedirs(File.join(instdir, LIBDIR))
++ FileUtils.mkdir_p(File.join(instdir, LIBDIR))
+ #all ruby files beneath SOURCE_DIR
+ Find.find(SOURCE_DIR) { |f|
+ install(f, File.join(instdir, f)) if f =~ /.rb$/
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list