aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/download_strategy.rb6
-rw-r--r--Library/Homebrew/compat/formula.rb16
2 files changed, 22 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/download_strategy.rb b/Library/Homebrew/compat/download_strategy.rb
new file mode 100644
index 000000000..ebc84786b
--- /dev/null
+++ b/Library/Homebrew/compat/download_strategy.rb
@@ -0,0 +1,6 @@
+require "download_strategy"
+
+CurlSSL3DownloadStrategy = CurlDownloadStrategy
+CurlUnsafeDownloadStrategy = CurlDownloadStrategy
+StrictSubversionDownloadStrategy = SubversionDownloadStrategy
+UnsafeSubversionDownloadStrategy = SubversionDownloadStrategy
diff --git a/Library/Homebrew/compat/formula.rb b/Library/Homebrew/compat/formula.rb
index 40469da33..c790abc45 100644
--- a/Library/Homebrew/compat/formula.rb
+++ b/Library/Homebrew/compat/formula.rb
@@ -43,4 +43,20 @@ class Formula
def self.require_universal_deps
define_method(:require_universal_deps?) { true }
end
+
+ def self.path name
+ Formulary.core_path(name)
+ end
+
+ DATA = :DATA
+
+ def patches; {} end
+
+ def python(options={}, &block)
+ opoo 'Formula#python is deprecated and will go away shortly.'
+ block.call if block_given?
+ PythonRequirement.new
+ end
+ alias_method :python2, :python
+ alias_method :python3, :python
end