mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 04:46:28 -04:00
While here, remove local patches that are no longer needed and simplify post-patch target.
14 lines
563 B
Ruby
14 lines
563 B
Ruby
--- tool/mkconfig.rb.orig 2015-12-09 20:53:21 UTC
|
|
+++ tool/mkconfig.rb
|
|
@@ -168,8 +168,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 %[\
|
|
# frozen-string-literal: false
|