From 8db9d1b515f6ba3ad4146ed58440e826b90af6ac Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Sun, 11 Sep 2016 03:42:40 -0600 Subject: [PATCH] qt5: add webkit option (#4107) --- Formula/qt5.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Formula/qt5.rb b/Formula/qt5.rb index 2d443a1300..fab7d5e5c7 100644 --- a/Formula/qt5.rb +++ b/Formula/qt5.rb @@ -53,7 +53,7 @@ class Qt5 < Formula option "with-docs", "Build documentation" option "with-examples", "Build examples" option "with-oci", "Build with Oracle OCI plugin" - + option "with-qtwebkit", "Build with QtWebkit module" option "without-webengine", "Build without QtWebEngine module" deprecated_option "qtdbus" => "with-dbus" @@ -71,6 +71,12 @@ class Qt5 < Formula depends_on OracleHomeVarRequirement if build.with? "oci" + resource "qt-webkit" do + # http://lists.qt-project.org/pipermail/development/2016-March/025358.html + url "https://download.qt.io/community_releases/5.6/5.6.1/qtwebkit-opensource-src-5.6.1.tar.gz" + sha256 "f5ba5afc5846fc755575dd04081a90a9536f920e312f18f6fb1f5a0c33f477b0" + end + def install args = %W[ -verbose @@ -110,6 +116,11 @@ class Qt5 < Formula args << "-skip" << "qtwebengine" if build.without? "webengine" + if build.with? "qtwebkit" + (buildpath/"qtwebkit").install resource("qt-webkit") + inreplace ".gitmodules", /.*status = obsolete\n((\s*)project = WebKit\.pro)/, "\\1\n\\2initrepo = true" + end + system "./configure", *args system "make" ENV.j1