From dbef6080c25c96e4cd67146be53ddcf0e0b3d521 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 21 Apr 2014 18:50:22 +0100 Subject: formula: move cxxstdlib methods to the class. This allows disabling this checks when e.g. pouring bottles. --- Library/Homebrew/formula.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'Library/Homebrew/formula.rb') 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." -- cgit v1.2.3