diff options
| author | Jack Nagel | 2014-07-06 15:51:43 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-06 15:51:43 -0500 |
| commit | a5a2141a1569bada1397b0b369311deea2888630 (patch) | |
| tree | 87101ac29511f75e8e5325b622a40654aa2ed007 /Library | |
| parent | 0deedabbaf5f4a92a3ca4dde009aed8c82eb0498 (diff) | |
| download | brew-a5a2141a1569bada1397b0b369311deea2888630.tar.bz2 | |
Hide the cxxstdlib data structure better
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cxxstdlib.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index 0fc9beacc..d04a86db0 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 09dee3cbe..f7950bff0 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 |
