diff options
author | swills <swills@FreeBSD.org> | 2011-07-04 01:24:40 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2011-07-04 01:24:40 +0800 |
commit | 9db713dc2d56918c7e8c0e220a517022a6b6cd77 (patch) | |
tree | 34115261a777624d6e25a179ff9ca691d2088da0 /www | |
parent | 799975f0728e9b0096eda36e20e66946c0ab9209 (diff) | |
download | freebsd-ports-gnome-9db713dc2d56918c7e8c0e220a517022a6b6cd77.tar.gz freebsd-ports-gnome-9db713dc2d56918c7e8c0e220a517022a6b6cd77.tar.zst freebsd-ports-gnome-9db713dc2d56918c7e8c0e220a517022a6b6cd77.zip |
- Fix build with Ruby 1.9
Diffstat (limited to 'www')
-rw-r--r-- | www/ruby-div/files/patch-install_rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/ruby-div/files/patch-install_rb b/www/ruby-div/files/patch-install_rb new file mode 100644 index 000000000000..208196abc29e --- /dev/null +++ b/www/ruby-div/files/patch-install_rb @@ -0,0 +1,25 @@ +--- install.rb.orig 2003-08-13 11:18:29.000000000 -0400 ++++ install.rb 2011-07-03 13:07:28.883509392 -0400 +@@ -1,6 +1,6 @@ + require 'rbconfig' + require 'find' +-require 'ftools' ++require 'fileutils' + + include Config + +@@ -30,12 +30,12 @@ + for f in dir + next if f == "." + next if f == "CVS" +- File::makedirs(File.join(destdir, f)) ++ FileUtils.mkdir_p(File.join(destdir, f)) + end + for f in path + next if (/\~$/ =~ f) + next if (/^\./ =~ File.basename(f)) +- File::install(File.join("lib", f), File.join(destdir, f), 0644, true) ++ FileUtils::install(File.join("lib", f), File.join(destdir, f), :mode => 0644) + end + end + |