diff options
| author | Jack Nagel | 2013-05-09 23:53:26 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-05-10 23:27:28 -0500 | 
| commit | 3be67f72523b55486cad2bd2fa0f6c79b23c82a4 (patch) | |
| tree | 7a8b3ea8b9cdfe3f735821a73438c713be31af8b /Library/Homebrew/compat/formula.rb | |
| parent | 290a93ea758488486e02ff063a28b57117501c07 (diff) | |
| download | brew-3be67f72523b55486cad2bd2fa0f6c79b23c82a4.tar.bz2 | |
Reorganize compat
Diffstat (limited to 'Library/Homebrew/compat/formula.rb')
| -rw-r--r-- | Library/Homebrew/compat/formula.rb | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/Library/Homebrew/compat/formula.rb b/Library/Homebrew/compat/formula.rb new file mode 100644 index 000000000..509ff5d18 --- /dev/null +++ b/Library/Homebrew/compat/formula.rb @@ -0,0 +1,29 @@ +module FormulaCompat +  def x11_installed? +    MacOS::X11.installed? +  end + +  def snow_leopard_64? +    MacOS.prefer_64_bit? +  end +end + +class Formula +  include FormulaCompat +  extend FormulaCompat + +  def std_cmake_parameters +    "-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev" +  end + +  def self.bottle_sha1(*) +  end + +  def self.all +    opoo "Formula.all is deprecated, use Formula.map instead" +    map +  end +end + +class UnidentifiedFormula < Formula +end | 
