aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2016-04-05 05:56:47 +0800
committerswills <swills@FreeBSD.org>2016-04-05 05:56:47 +0800
commit6c037ee24c3e9af8c4e43807b746d6f9d552ff70 (patch)
tree85a3f812ce9c9a1b984af4994b4987eafc31b0ec /mail
parent786c7cd5b891a620acd6ed078a6320c2a0a88685 (diff)
downloadfreebsd-ports-gnome-6c037ee24c3e9af8c4e43807b746d6f9d552ff70.tar.gz
freebsd-ports-gnome-6c037ee24c3e9af8c4e43807b746d6f9d552ff70.tar.zst
freebsd-ports-gnome-6c037ee24c3e9af8c4e43807b746d6f9d552ff70.zip
mail/ruby-rfilter: fix build with Ruby 2.2
Diffstat (limited to 'mail')
-rw-r--r--mail/ruby-rfilter/files/patch-install.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/ruby-rfilter/files/patch-install.rb b/mail/ruby-rfilter/files/patch-install.rb
new file mode 100644
index 000000000000..59901eb64087
--- /dev/null
+++ b/mail/ruby-rfilter/files/patch-install.rb
@@ -0,0 +1,20 @@
+--- install.rb.orig 2016-04-04 21:38:57 UTC
++++ install.rb
+@@ -45,7 +45,7 @@ end
+
+ class ConfigTable
+
+- c = ::Config::CONFIG
++ c = ::RbConfig::CONFIG
+
+ rubypath = c['bindir'] + '/' + c['ruby_install_name']
+
+@@ -692,7 +692,7 @@ class Installer
+ "no extention exists: Have you done 'ruby #{$0} setup' ?"
+ end
+
+- DLEXT = /\.#{ ::Config::CONFIG['DLEXT'] }\z/
++ DLEXT = /\.#{ ::RbConfig::CONFIG['DLEXT'] }\z/
+
+ def _allext( dir )
+ Dir.open(dir) {|d|