75 lines
1.5 KiB
Ruby
Raw Normal View History

2013-05-09 23:53:26 -05:00
module FormulaCompat
def x11_installed?
odisabled "Formula#x11_installed?", "MacOS::X11.installed?"
2013-05-09 23:53:26 -05:00
end
def snow_leopard_64?
odisabled "Formula#snow_leopard_64?", "MacOS.prefer_64_bit?"
2013-05-09 23:53:26 -05:00
end
end
class Formula
include FormulaCompat
extend FormulaCompat
def std_cmake_parameters
odisabled "Formula#std_cmake_parameters", "Formula#std_cmake_args"
2013-05-09 23:53:26 -05:00
end
def cxxstdlib_check(_)
odisabled "Formula#cxxstdlib_check in install",
"Formula.cxxstdlib_check outside install"
end
2013-05-09 23:53:26 -05:00
def self.bottle_sha1(*)
odisabled "Formula.bottle_sha1"
2013-05-09 23:53:26 -05:00
end
def self.all
odisabled "Formula.all", "Formula.map"
2013-05-09 23:53:26 -05:00
end
def self.canonical_name(_)
odisabled "Formula.canonical_name", "Formulary.canonical_name"
end
def self.class_s(_)
odisabled "Formula.class_s", "Formulary.class_s"
end
def self.factory(_)
odisabled "Formula.factory", "Formulary.factory"
end
def self.require_universal_deps
odisabled "Formula.require_universal_deps"
end
def self.path(_)
odisabled "Formula.path", "Formulary.core_path"
end
DATA = :DATA
def patches
2016-07-16 22:15:32 +01:00
# Don't print deprecation warning because this method is inherited
# when used.
{}
end
def python(_options = {}, &_)
odisabled "Formula#python"
end
2016-09-23 18:13:48 +02:00
alias python2 python
alias python3 python
def startup_plist
odisabled "Formula#startup_plist", "Formula#plist"
end
def rake(*args)
odeprecated "FileUtils#rake", "system \"rake\""
system "rake", *args
end
2013-05-09 23:53:26 -05:00
end