Hide the cxxstdlib data structure better

This commit is contained in:
Jack Nagel 2014-07-06 15:51:43 -05:00
parent 0deedabbaf
commit a5a2141a15
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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