brew style --fix
This commit is contained in:
parent
592eb252e5
commit
dbb731bce2
@ -252,7 +252,7 @@ module Homebrew
|
||||
when "lib"
|
||||
print_dir pn do |pnn|
|
||||
# dylibs have multiple symlinks and we don't care about them
|
||||
(pnn.extname == ".dylib" || pnn.extname == ".pc") && !pnn.symlink?
|
||||
[".dylib", ".pc"].include?(pnn.extname) && !pnn.symlink?
|
||||
end
|
||||
when ".brew"
|
||||
next # Ignore .brew
|
||||
|
||||
@ -29,7 +29,7 @@ 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| d.name == "libtool" || d.name == "bison" }
|
||||
self["M4"] = "#{HOMEBREW_PREFIX}/opt/m4/bin/m4" if deps.any? { |d| ["libtool", "bison"].include?(d.name) }
|
||||
end
|
||||
|
||||
def homebrew_extra_paths
|
||||
|
||||
@ -176,7 +176,7 @@ class Tab < AbstractTab
|
||||
tab.source ||= {}
|
||||
|
||||
tab.tap = tab.tapped_from if !tab.tapped_from.nil? && tab.tapped_from != "path or URL"
|
||||
tab.tap = "homebrew/core" if tab.tap == "mxcl/master" || tab.tap == "Homebrew/homebrew"
|
||||
tab.tap = "homebrew/core" if ["mxcl/master", "Homebrew/homebrew"].include?(tab.tap)
|
||||
|
||||
if tab.source["spec"].nil?
|
||||
version = PkgVersion.parse(File.basename(File.dirname(path)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user