From 7fc9ffec86063948383c919ba61ef82ea962771e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 12 Nov 2013 12:00:18 -0600 Subject: Better documentation for no-op superenv methods --- Library/Homebrew/extend/ENV/super.rb | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 7a7476276..a71e4075c 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -251,13 +251,6 @@ module Superenv public -### NO LONGER NECESSARY OR NO LONGER SUPPORTED - def noop(*args); end - %w[m64 gcc_4_0_1 fast Og libxml2 minimal_optimization - no_optimization enable_warnings x11 - set_cpu_flags - macosxsdk remove_macosxsdk].each{|s| alias_method s, :noop } - def deparallelize delete('MAKEFLAGS') end @@ -322,6 +315,19 @@ module Superenv self['HOMEBREW_OPTIMIZATION_LEVEL'] = opt end end + + def noop(*args); end + noops = [] + + # These methods are no longer necessary under superenv, but are needed to + # maintain an interface compatible with stdenv. + noops.concat %w{fast Og libxml2 x11 set_cpu_flags macosxsdk remove_macosxsdk} + + # These methods provide functionality that has not yet been ported to + # superenv. + noops.concat %w{m64 gcc_4_0_1 minimal_optimization no_optimization enable_warnings} + + noops.each { |m| alias_method m, :noop } end -- cgit v1.2.3