Apply manual violation fixes
This commit is contained in:
parent
dbb731bce2
commit
0add431e69
@ -245,6 +245,7 @@ module Homebrew
|
||||
class PrettyListing
|
||||
sig { params(path: T.any(String, Pathname, Keg)).void }
|
||||
def initialize(path)
|
||||
valid_lib_extensions = [".dylib", ".pc"]
|
||||
Pathname.new(path).children.sort_by { |p| p.to_s.downcase }.each do |pn|
|
||||
case pn.basename.to_s
|
||||
when "bin", "sbin"
|
||||
@ -252,7 +253,7 @@ module Homebrew
|
||||
when "lib"
|
||||
print_dir pn do |pnn|
|
||||
# dylibs have multiple symlinks and we don't care about them
|
||||
[".dylib", ".pc"].include?(pnn.extname) && !pnn.symlink?
|
||||
valid_lib_extensions.include?(pnn.extname) && !pnn.symlink?
|
||||
end
|
||||
when ".brew"
|
||||
next # Ignore .brew
|
||||
|
||||
@ -29,7 +29,8 @@ module Superenv
|
||||
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O2"
|
||||
self["HOMEBREW_DYNAMIC_LINKER"] = determine_dynamic_linker_path
|
||||
self["HOMEBREW_RPATH_PATHS"] = determine_rpath_paths(@formula)
|
||||
self["M4"] = "#{HOMEBREW_PREFIX}/opt/m4/bin/m4" if deps.any? { |d| ["libtool", "bison"].include?(d.name) }
|
||||
m4_path_deps = ["libtool", "bison"]
|
||||
self["M4"] = "#{HOMEBREW_PREFIX}/opt/m4/bin/m4" if deps.any? { m4_path_deps.include?(_1.name) }
|
||||
end
|
||||
|
||||
def homebrew_extra_paths
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user