$NetBSD: patch-aa,v 1.1 2010/09/10 08:49:55 taca Exp $ Avoid to use "ftools" which has deprecated in ruby19. --- install.rb.orig 2002-12-26 21:09:38.000000000 +0000 +++ install.rb @@ -6,9 +6,9 @@ require 'rbconfig' -require 'ftools' +require 'fileutils' require 'find' require 'getoptlong' -DEFAULT_DESTDIR = Config::CONFIG['sitelibdir'] || Config::CONFIG['sitedir'] +DEFAULT_DESTDIR = Config::CONFIG['vendorlibdir'] || Config::CONFIG['vendordir'] SRCDIR = File.dirname(__FILE__) @@ -20,6 +20,6 @@ def install_rb(from, to) next unless /\.rb\z/ =~ src dst = src.sub(/\A#{Regexp.escape(from)}/, to) - File.makedirs File.dirname(dst), true - File.install src, dst, 0644, true + FileUtils.mkdir_p File.dirname(dst) + FileUtils.install src, dst, :mode => 0644 } end