diff options
author | swills <swills@FreeBSD.org> | 2016-02-04 02:36:06 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2016-02-04 02:36:06 +0800 |
commit | aca18930a742d40340c1dc9eea47e5727f019c50 (patch) | |
tree | 55fb0be1e5bcf06d51c8da2e0e807e316a717d7f | |
parent | 15b1d38b826c068326170969a064e72b5b0babdb (diff) | |
download | freebsd-ports-gnome-aca18930a742d40340c1dc9eea47e5727f019c50.tar.gz freebsd-ports-gnome-aca18930a742d40340c1dc9eea47e5727f019c50.tar.zst freebsd-ports-gnome-aca18930a742d40340c1dc9eea47e5727f019c50.zip |
mail/ruby-rmail: fix build with ruby 2.2 and ruby 2.3
-rw-r--r-- | mail/ruby-rmail/Makefile | 3 | ||||
-rw-r--r-- | mail/ruby-rmail/files/patch-install.rb | 20 |
2 files changed, 20 insertions, 3 deletions
diff --git a/mail/ruby-rmail/Makefile b/mail/ruby-rmail/Makefile index d6da8d807b68..be6bc8edf6be 100644 --- a/mail/ruby-rmail/Makefile +++ b/mail/ruby-rmail/Makefile @@ -14,9 +14,6 @@ COMMENT= Lightweight mail manipulating library for Ruby LICENSE= BSD3CLAUSE -BROKEN_RUBY22= yes -BROKEN_RUBY23= yes - OPTIONS_DEFINE= DOCS NO_ARCH= yes diff --git a/mail/ruby-rmail/files/patch-install.rb b/mail/ruby-rmail/files/patch-install.rb new file mode 100644 index 000000000000..67e29be3c2b5 --- /dev/null +++ b/mail/ruby-rmail/files/patch-install.rb @@ -0,0 +1,20 @@ +--- install.rb.orig 2016-02-03 17:53:10.253692000 +0000 ++++ install.rb 2016-02-03 17:53:44.504039000 +0000 +@@ -45,7 +45,7 @@ + + class ConfigTable + +- c = ::Config::CONFIG ++ c = ::RbConfig::CONFIG + + rubypath = c['bindir'] + '/' + c['ruby_install_name'] + +@@ -692,7 +692,7 @@ + "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| |