diff options
| author | Mike McQuaid | 2016-12-30 20:20:13 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-12-30 20:20:13 +0000 |
| commit | e50102d91e5fc13fd59589967bb97bb6159bbad0 (patch) | |
| tree | 4868c090cd80f6ab53d75e85dca5c0445ddc706b /Library/Homebrew/compat/ENV | |
| parent | 27695ffeeb829ca129a87fe53f60502978ab367b (diff) | |
| download | brew-e50102d91e5fc13fd59589967bb97bb6159bbad0.tar.bz2 | |
ENV: deprecate old methods.
These should have been deprecated long ago but we didn’t really have
the necessary framework to do so.
Diffstat (limited to 'Library/Homebrew/compat/ENV')
| -rw-r--r-- | Library/Homebrew/compat/ENV/shared.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/compat/ENV/std.rb | 27 | ||||
| -rw-r--r-- | Library/Homebrew/compat/ENV/super.rb | 47 |
3 files changed, 80 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/ENV/shared.rb b/Library/Homebrew/compat/ENV/shared.rb new file mode 100644 index 000000000..200e7b132 --- /dev/null +++ b/Library/Homebrew/compat/ENV/shared.rb @@ -0,0 +1,6 @@ +module SharedEnvExtension + def j1 + odeprecated "ENV.j1", "ENV.deparallelize" + deparallelize + end +end diff --git a/Library/Homebrew/compat/ENV/std.rb b/Library/Homebrew/compat/ENV/std.rb new file mode 100644 index 000000000..26dabe440 --- /dev/null +++ b/Library/Homebrew/compat/ENV/std.rb @@ -0,0 +1,27 @@ +module Stdenv + def fast + odeprecated "ENV.fast" + end + + def O4 + odeprecated "ENV.O4" + end + + def Og + odeprecated "ENV.Og" + end + + def gcc_4_0_1 + odeprecated "ENV.gcc_4_0_1", "ENV.gcc_4_0" + gcc_4_0 + end + + def gcc + odeprecated "ENV.gcc", "ENV.gcc_4_2" + gcc_4_2 + end + + def libpng + odeprecated "ENV.libpng", "ENV.x11" + end +end diff --git a/Library/Homebrew/compat/ENV/super.rb b/Library/Homebrew/compat/ENV/super.rb new file mode 100644 index 000000000..2020ad752 --- /dev/null +++ b/Library/Homebrew/compat/ENV/super.rb @@ -0,0 +1,47 @@ +module Superenv + def fast + odeprecated "ENV.fast" + end + + def O4 + odeprecated "ENV.O4" + end + + def Og + odeprecated "ENV.Og" + end + + def gcc_4_0_1 + odeprecated "ENV.gcc_4_0_1", "ENV.gcc_4_0" + gcc_4_0 + end + + def gcc + odeprecated "ENV.gcc", "ENV.gcc_4_2" + gcc_4_2 + end + + def libxml2 + odeprecated "ENV.libxml2" + end + + def minimal_optimization + odeprecated "ENV.minimal_optimization" + end + + def no_optimization + odeprecated "ENV.no_optimization" + end + + def enable_warnings + odeprecated "ENV.enable_warnings" + end + + def macosxsdk + odeprecated "ENV.macosxsdk" + end + + def remove_macosxsdk + odeprecated "ENV.remove_macosxsdk" + end +end |
