Merge pull request #4743 from maxim-belkin/mac-libs
formula_cellar_checks: .dylib and .framework are macOS-specific
This commit is contained in:
commit
ef149f2e2c
@ -94,4 +94,9 @@ module FormulaCellarChecks
|
|||||||
problem_if_output(check_python_framework_links(formula.lib))
|
problem_if_output(check_python_framework_links(formula.lib))
|
||||||
check_linkage
|
check_linkage
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def valid_library_extension?(filename)
|
||||||
|
macos_lib_extensions = %w[.dylib .framework]
|
||||||
|
generic_valid_library_extension?(filename) || macos_lib_extensions.include?(filename.extname)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -56,7 +56,7 @@ module FormulaCellarChecks
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
VALID_LIBRARY_EXTENSIONS = %w[.a .dylib .framework .jnilib .la .o .so .jar .prl .pm .sh].freeze
|
VALID_LIBRARY_EXTENSIONS = %w[.a .jnilib .la .o .so .jar .prl .pm .sh].freeze
|
||||||
|
|
||||||
def valid_library_extension?(filename)
|
def valid_library_extension?(filename)
|
||||||
VALID_LIBRARY_EXTENSIONS.include? filename.extname
|
VALID_LIBRARY_EXTENSIONS.include? filename.extname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user