diff options
| author | Adam Vandenberg | 2014-02-26 20:32:22 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-27 08:21:24 -0800 |
| commit | d51bd9def732eb422f0c333bf5dedaa6e6432f90 (patch) | |
| tree | a0b617be1ab1579e42fc47e6a0716830dc583d6d /Library/Formula/pygobject3.rb | |
| parent | d1150ea174b3ab8cd4f0e864643197f474005af3 (diff) | |
| download | homebrew-d51bd9def732eb422f0c333bf5dedaa6e6432f90.tar.bz2 | |
pygobject3: use Formula[]
Diffstat (limited to 'Library/Formula/pygobject3.rb')
| -rw-r--r-- | Library/Formula/pygobject3.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/pygobject3.rb b/Library/Formula/pygobject3.rb index 4ce5d6467..d187d5e59 100644 --- a/Library/Formula/pygobject3.rb +++ b/Library/Formula/pygobject3.rb @@ -4,7 +4,7 @@ class PythonEnvironment < Requirement fatal true def error_message - if !Formula.factory("python").installed? && ARGV.include?("--with-python3") + if !Formula["python"].installed? && ARGV.include?("--with-python3") error_message = <<-EOS.undent You cannot use system Python 2 and Homebrew's Python 3 simultaneously. @@ -80,7 +80,7 @@ class Pygobject3 < Formula end pythons.each do |python, version| - ENV["PYTHON"] = "#{python}" if Formula.factory(python).installed? + ENV["PYTHON"] = "#{python}" if Formula[python].installed? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install" system "make", "check" if build.with? 'tests' @@ -94,7 +94,7 @@ class Pygobject3 < Formula assert("__init__" in gi.__file__) EOS pythons.each do |python, version| - unless Formula.factory(python).installed? + unless Formula[python].installed? ENV["PYTHONPATH"] = HOMEBREW_PREFIX/"lib/python#{version}/site-packages" ENV.append_path "PYTHONPATH", "#{opt_prefix}/lib/python#{version}/site-packages" end |
