diff options
| author | Xu Cheng | 2015-07-21 21:57:14 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-07-21 21:58:10 +0800 |
| commit | 744de3008995bc17f4eef115d3302937cab447da (patch) | |
| tree | 1f044b78750455581de397fe4ede23df64dd33fa /Library/Homebrew/compat | |
| parent | 5433203fb41f450f64e83b29467ac40863417230 (diff) | |
| download | brew-744de3008995bc17f4eef115d3302937cab447da.tar.bz2 | |
move deprecated codes into compat
Closes Homebrew/homebrew#41974.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/download_strategy.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/compat/formula.rb | 16 |
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 |
