From 91a3aea85b0e51ed65cc0d1ec49019b4822eb5f2 Mon Sep 17 00:00:00 2001 From: Jens Hedegaard Nielsen Date: Tue, 21 Oct 2014 10:18:16 +0100 Subject: pyqt5: inreplace outside python version loop. Otherwise the patch is applied twice when building for both python 2 and 3. This fails the second time Closes #33427. Signed-off-by: Mike McQuaid --- Library/Formula/pyqt5.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/pyqt5.rb b/Library/Formula/pyqt5.rb index 6f3da81ef..4eb4a5373 100644 --- a/Library/Formula/pyqt5.rb +++ b/Library/Formula/pyqt5.rb @@ -24,6 +24,8 @@ class Pyqt5 < Formula end def install + # addresses https://github.com/Homebrew/homebrew/issues/32370 + inreplace "configure.py", "qmake_QT=['webkitwidgets']", "qmake_QT=['webkitwidgets', 'printsupport']" Language::Python.each_python(build) do |python, version| args = [ "--confirm-license", "--bindir=#{bin}", @@ -40,9 +42,6 @@ class Pyqt5 < Formula "--verbose"] args << '--debug' if build.include? 'enable-debug' - # addresses https://github.com/Homebrew/homebrew/issues/32370 - inreplace "configure.py", "qmake_QT=['webkitwidgets']", "qmake_QT=['webkitwidgets', 'printsupport']" - system python, "configure.py", *args system "make" system "make", "install" -- cgit v1.2.3