diff options
author | swills <swills@FreeBSD.org> | 2011-05-03 09:49:59 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2011-05-03 09:49:59 +0800 |
commit | b115666e33b5e8fa8f876972b05a1f420d56479c (patch) | |
tree | 32a8a5c332594f9485d0c9b63acfa11682e8d800 | |
parent | f4119545582425c5c79b714647906654edd24486 (diff) | |
download | freebsd-ports-gnome-b115666e33b5e8fa8f876972b05a1f420d56479c.tar.gz freebsd-ports-gnome-b115666e33b5e8fa8f876972b05a1f420d56479c.tar.zst freebsd-ports-gnome-b115666e33b5e8fa8f876972b05a1f420d56479c.zip |
- Fix build with Ruby 1.9
PR: ports/156474
Submitted by: Eric Freeman <freebsdports@chillibear.com>
Approved by: maintainer (timeout)
-rw-r--r-- | devel/ruby-robjectteam/Makefile | 1 | ||||
-rw-r--r-- | devel/ruby-robjectteam/files/patch-install.rb | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/devel/ruby-robjectteam/Makefile b/devel/ruby-robjectteam/Makefile index 57cf49f3707d..b6b3fcb3bdde 100644 --- a/devel/ruby-robjectteam/Makefile +++ b/devel/ruby-robjectteam/Makefile @@ -7,6 +7,7 @@ PORTNAME= robjectteam PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= devel ruby MASTER_SITES= SF PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} diff --git a/devel/ruby-robjectteam/files/patch-install.rb b/devel/ruby-robjectteam/files/patch-install.rb new file mode 100644 index 000000000000..a279ed111141 --- /dev/null +++ b/devel/ruby-robjectteam/files/patch-install.rb @@ -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$/ + |