diff options
| author | Mike McQuaid | 2014-04-21 18:50:22 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-04-23 08:10:48 +0100 |
| commit | dbef6080c25c96e4cd67146be53ddcf0e0b3d521 (patch) | |
| tree | 084021afd7ce1dd7b89a0c5ec7b5dbb99ec67adb /Library/Homebrew/formula.rb | |
| parent | 24cc097d27661169e5b96da8ddb4b8cfebbc5086 (diff) | |
| download | homebrew-dbef6080c25c96e4cd67146be53ddcf0e0b3d521.tar.bz2 | |
formula: move cxxstdlib methods to the class.
This allows disabling this checks when e.g. pouring bottles.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d21fc48b1..9b8de904e 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -439,12 +439,6 @@ class Formula Requirement.expand(self, &block) end - # Flag for marking whether this formula needs C++ standard library - # compatibility check - def cxxstdlib - @cxxstdlib ||= Set.new - end - def to_hash hsh = { "name" => name, @@ -607,12 +601,6 @@ class Formula active_spec.patches.each(&:apply) end - # Explicitly request changing C++ standard library compatibility check - # settings. Use with caution! - def cxxstdlib_check check_type - cxxstdlib << check_type - end - def self.method_added method case method when :brew @@ -730,6 +718,18 @@ class Formula @keg_only_reason = KegOnlyReason.new(reason, explanation.to_s.chomp) end + # Flag for marking whether this formula needs C++ standard library + # compatibility check + def cxxstdlib + @cxxstdlib ||= Set.new + end + + # Explicitly request changing C++ standard library compatibility check + # settings. Use with caution! + def cxxstdlib_check check_type + cxxstdlib << check_type + end + # For Apple compilers, this should be in the format: # fails_with compiler do # cause "An explanation for why the build doesn't work." |
