From 744de3008995bc17f4eef115d3302937cab447da Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 21 Jul 2015 21:57:14 +0800 Subject: move deprecated codes into compat Closes Homebrew/homebrew#41974. --- Library/Homebrew/compat/download_strategy.rb | 6 ++++++ Library/Homebrew/compat/formula.rb | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Library/Homebrew/compat/download_strategy.rb (limited to 'Library/Homebrew/compat') 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 -- cgit v1.2.3