aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-26 20:32:42 -0800
committerAdam Vandenberg2014-02-27 08:21:24 -0800
commitd1877093ca26007a84a47df659f5277f0b9a90f9 (patch)
treeab05c142c6bf98fc63716e7a9f3ac7278e59f6b4
parenta70217d889664867fe2b3f0e709bf417dfb27d1c (diff)
downloadhomebrew-d1877093ca26007a84a47df659f5277f0b9a90f9.tar.bz2
pyqt5: use Formula[]
-rw-r--r--Library/Formula/pyqt5.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/pyqt5.rb b/Library/Formula/pyqt5.rb
index 7a3a03201..b70095d8c 100644
--- a/Library/Formula/pyqt5.rb
+++ b/Library/Formula/pyqt5.rb
@@ -10,7 +10,7 @@ class Pyqt5 < Formula
depends_on :python3 => :recommended
depends_on :python => :optional
- if !Formula.factory("python").installed? && build.with?("python") &&
+ if !Formula["python"].installed? && build.with?("python") &&
build.with?("python3")
odie <<-EOS.undent
pyqt5: You cannot use system Python 2 and Homebrew's Python 3 simultaneously.
@@ -46,7 +46,7 @@ class Pyqt5 < Formula
# To avoid conflicts with PyQt (for Qt4):
"--sipdir=#{share}/sip/Qt5/",
# sip.h could not be found automatically
- "--sip-incdir=#{Formula.factory('sip').opt_prefix}/include",
+ "--sip-incdir=#{Formula["sip"].opt_prefix}/include",
# Force deployment target to avoid libc++ issues
"QMAKE_MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}" ]
args << '--debug' if build.include? 'enable-debug'