From fed96c525a48a92ffa2b2b7e6e9952e00c24248d Mon Sep 17 00:00:00 2001 From: Christian Moritz Date: Fri, 17 Jan 2014 06:27:35 +0100 Subject: [PATCH] qt5: fix macdeployqt plugins path. Signed-off-by: Mike McQuaid --- Formula/qt5.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/qt5.rb b/Formula/qt5.rb index 1b4ff53c39..9ca07718ba 100644 --- a/Formula/qt5.rb +++ b/Formula/qt5.rb @@ -45,6 +45,10 @@ class Qt5 < Formula odie 'qt5: --with-debug-and-release is no longer supported' if build.include? 'with-debug-and-release' def install + # fixed hardcoded link to plugin dir: https://bugreports.qt-project.org/browse/QTBUG-29188 + inreplace "qttools/src/macdeployqt/macdeployqt/main.cpp", "deploymentInfo.pluginPath = \"/Developer/Applications/Qt/plugins\";", + "deploymentInfo.pluginPath = \"#{prefix}/plugins\";" + ENV.universal_binary if build.universal? args = ["-prefix", prefix, "-system-zlib",