diff options
| author | Jack Nagel | 2014-07-06 15:51:43 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-06 15:51:43 -0500 |
| commit | 10b4351a93fd83e3fdeb66554d527fad2af8290b (patch) | |
| tree | f269d9db868838cc3284209ee0f125ee65da9373 | |
| parent | 815ab1a7dbfc9bd7c7546ea79cc13c76c6d1cb65 (diff) | |
| download | homebrew-10b4351a93fd83e3fdeb66554d527fad2af8290b.tar.bz2 | |
Hide the cxxstdlib data structure better
| -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 |
