diff options
| author | Jack Nagel | 2013-11-12 12:00:18 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-12 13:53:29 -0600 |
| commit | 7fc9ffec86063948383c919ba61ef82ea962771e (patch) | |
| tree | b254c8f5d4acb9dc10f871fd0d00e7919b0c40b8 | |
| parent | 4cb824b92eb6c474324cb065296fa93c07d4ba83 (diff) | |
| download | brew-7fc9ffec86063948383c919ba61ef82ea962771e.tar.bz2 | |
Better documentation for no-op superenv methods
| -rw-r--r-- | Library/Homebrew/extend/ENV/super.rb | 20 |
1 files changed, 13 insertions, 7 deletions
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 |
