diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-01-25 18:18:41 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-01-25 18:18:41 +0000 |
commit | cab5f872bc740aad9f718f64181a8906f8a639a6 (patch) | |
tree | 35908f760231961b1379ce8accd103372d27ea7c /lang/ruby27/files/patch-tool_mkconfig.rb | |
parent | Add rubygem-xdg3 3.1.1 (copied from rubygem-xdg) (diff) |
Add ruby27 2.7.0
Diffstat (limited to 'lang/ruby27/files/patch-tool_mkconfig.rb')
-rw-r--r-- | lang/ruby27/files/patch-tool_mkconfig.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/ruby27/files/patch-tool_mkconfig.rb b/lang/ruby27/files/patch-tool_mkconfig.rb new file mode 100644 index 000000000000..2b9c106e5a61 --- /dev/null +++ b/lang/ruby27/files/patch-tool_mkconfig.rb @@ -0,0 +1,14 @@ +--- tool/mkconfig.rb.orig 2019-12-25 09:50:58 UTC ++++ tool/mkconfig.rb +@@ -160,8 +160,9 @@ def vars.expand(val, config = self) + val.replace(newval) unless newval == val + val + end +-prefix = vars.expand(vars["prefix"] ||= "") +-rubyarchdir = vars.expand(vars["rubyarchdir"] ||= "") ++prefix = vars.expand(vars["rubyarchdir"]) ++major, minor, *rest = RUBY_VERSION.split('.') ++rubyarchdir = "/lib/ruby/#{major}.#{minor}/#{arch}" + relative_archdir = rubyarchdir.rindex(prefix, 0) ? rubyarchdir[prefix.size..-1] : rubyarchdir + + puts %[\ |