qt5: add webkit option (#4107)
This commit is contained in:
parent
909781b2a7
commit
8db9d1b515
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue