Hide the cxxstdlib data structure better
This commit is contained in:
parent
0deedabbaf
commit
a5a2141a15
@ -35,7 +35,7 @@ class CxxStdlib
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_dependencies(formula, deps)
|
def check_dependencies(formula, deps)
|
||||||
unless formula.class.cxxstdlib.include? :skip
|
unless formula.skip_cxxstdlib_check?
|
||||||
deps.each do |dep|
|
deps.each do |dep|
|
||||||
# Software is unlikely to link against anything from its
|
# Software is unlikely to link against anything from its
|
||||||
# buildtime deps, so it doesn't matter at all if they link
|
# buildtime deps, so it doesn't matter at all if they link
|
||||||
|
|||||||
@ -247,6 +247,10 @@ class Formula
|
|||||||
self.class.skip_clean_paths.include? to_check
|
self.class.skip_clean_paths.include? to_check
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def skip_cxxstdlib_check?
|
||||||
|
self.class.cxxstdlib.include?(:skip)
|
||||||
|
end
|
||||||
|
|
||||||
# yields self with current working directory set to the uncompressed tarball
|
# yields self with current working directory set to the uncompressed tarball
|
||||||
def brew
|
def brew
|
||||||
validate_attributes :name, :version
|
validate_attributes :name, :version
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user