aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/ENV
diff options
context:
space:
mode:
authorMike McQuaid2016-12-30 20:20:13 +0000
committerMike McQuaid2016-12-30 20:20:13 +0000
commite50102d91e5fc13fd59589967bb97bb6159bbad0 (patch)
tree4868c090cd80f6ab53d75e85dca5c0445ddc706b /Library/Homebrew/compat/ENV
parent27695ffeeb829ca129a87fe53f60502978ab367b (diff)
downloadbrew-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.rb6
-rw-r--r--Library/Homebrew/compat/ENV/std.rb27
-rw-r--r--Library/Homebrew/compat/ENV/super.rb47
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