mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
Add preview1 of Ruby 3.2 series. ReleaseNotes: https://www.ruby-lang.org/en/news/2022/04/03/ruby-3-2-0-preview1-released/ PR: 263030 Approved by: sunpoet (ruby)
14 lines
533 B
Ruby
14 lines
533 B
Ruby
--- 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 %[\
|