From a5a2141a1569bada1397b0b369311deea2888630 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 6 Jul 2014 15:51:43 -0500 Subject: [PATCH] Hide the cxxstdlib data structure better --- Library/Homebrew/cxxstdlib.rb | 2 +- Library/Homebrew/formula.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index 0fc9beacc2..d04a86db0f 100644 --- a/Library/Homebrew/cxxstdlib.rb +++ b/Library/Homebrew/cxxstdlib.rb @@ -35,7 +35,7 @@ class CxxStdlib end def check_dependencies(formula, deps) - unless formula.class.cxxstdlib.include? :skip + unless formula.skip_cxxstdlib_check? deps.each do |dep| # Software is unlikely to link against anything from its # buildtime deps, so it doesn't matter at all if they link diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 09dee3cbe7..f7950bff0a 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -247,6 +247,10 @@ class Formula self.class.skip_clean_paths.include? to_check end + def skip_cxxstdlib_check? + self.class.cxxstdlib.include?(:skip) + end + # yields self with current working directory set to the uncompressed tarball def brew validate_attributes :name, :version