qt@5 5.15.8

Closes #119769.

Signed-off-by: Michael Cho <20700669+cho-m@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
مهدي شينون (Mehdi Chinoune) 2023-01-04 20:58:51 +01:00 committed by BrewTestBot
parent 897c844260
commit 34fda21324
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 8 additions and 35 deletions

View File

@ -3,12 +3,11 @@
class QtAT5 < Formula class QtAT5 < Formula
desc "Cross-platform application and UI framework" desc "Cross-platform application and UI framework"
homepage "https://www.qt.io/" homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/5.15/5.15.7/single/qt-everywhere-opensource-src-5.15.7.tar.xz" url "https://download.qt.io/official_releases/qt/5.15/5.15.8/single/qt-everywhere-opensource-src-5.15.8.tar.xz"
mirror "https://mirrors.dotsrc.org/qtproject/archive/qt/5.15/5.15.7/single/qt-everywhere-opensource-src-5.15.7.tar.xz" mirror "https://mirrors.dotsrc.org/qtproject/archive/qt/5.15/5.15.8/single/qt-everywhere-opensource-src-5.15.8.tar.xz"
mirror "https://mirrors.ocf.berkeley.edu/qt/archive/qt/5.15/5.15.7/single/qt-everywhere-opensource-src-5.15.7.tar.xz" mirror "https://mirrors.ocf.berkeley.edu/qt/archive/qt/5.15/5.15.8/single/qt-everywhere-opensource-src-5.15.8.tar.xz"
sha256 "8a71986676a3f37a198a9113acedbfd5bc5606a459b6b85816d951458adbe9a0" sha256 "776a9302c336671f9406a53bd30b8e36f825742b2ec44a57c08217bff0fa86b9"
license all_of: ["GFDL-1.3-only", "GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"] license all_of: ["GFDL-1.3-only", "GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"]
revision 1
bottle do bottle do
sha256 cellar: :any, arm64_ventura: "839df853c3d9394cad3e64dbcc2120be50e0058e190e1e2d114cea8ce172722f" sha256 cellar: :any, arm64_ventura: "839df853c3d9394cad3e64dbcc2120be50e0058e190e1e2d114cea8ce172722f"
@ -120,35 +119,20 @@ class QtAT5 < Formula
revision: "5eedfe23148a234211ba477f76fc2ea2e8529189" revision: "5eedfe23148a234211ba477f76fc2ea2e8529189"
end end
# Backport of https://code.qt.io/cgit/qt/qtbase.git/commit/src/plugins/platforms/cocoa?id=dece6f5840463ae2ddf927d65eb1b3680e34a547
# to fix the build with Xcode 13.
# The original commit is for Qt 6 and cannot be applied cleanly to Qt 5.
patch :DATA
# Fix build for GCC 11 # Fix build for GCC 11
patch do patch do
url "https://invent.kde.org/qt/qt/qtbase/commit/b340ca80cf4f994c26f01b017b8ca395a79324da.patch" url "https://invent.kde.org/qt/qt/qtbase/commit/ee7aed5e1020fa88f86777701948c8a236db4fc5.patch"
sha256 "d9b2e5e1745bd75912f244f713f1d31a8bdda0a2975e16734f5a785ca891d7bc" sha256 "ed082ed3cac51158ede4a0f4236eedf99c0981b3451c69f34e116fa8487fa333"
directory "qtbase" directory "qtbase"
end end
# https://download.qt.io/official_releases/qt/5.15/CVE-2022-25255-qprocess5-15.diff # https://download.qt.io/official_releases/qt/5.15/CVE-2022-25255-qprocess5-15.diff
patch do patch do
url "https://invent.kde.org/qt/qt/qtbase/commit/1eb66b24c3dd1232b1eaec57d6014edfe41954dc.patch" url "https://invent.kde.org/qt/qt/qtbase/commit/12df089a0095645daae4f932c495258751d881fc.patch"
sha256 "7aa710337cc8e1b0fec83c65a5f2446659ca1619550e8573a8224c8193dff55b" sha256 "43ba11c26de2fa57bf541be02d3078bde4e8fecabda97e28e35e1f9252c4264b"
directory "qtbase" directory "qtbase"
end end
# Patch for qmake on ARM
# https://codereview.qt-project.org/c/qt/qtbase/+/327649
patch do
on_arm do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/9dc732/qt/qt-split-arch.patch"
sha256 "36915fde68093af9a147d76f88a4e205b789eec38c0c6f422c21ae1e576d45c0"
directory "qtbase"
end
end
def install def install
rm_r "qtwebengine" rm_r "qtwebengine"
@ -285,14 +269,3 @@ class QtAT5 < Formula
system "./hello" system "./hello"
end end
end end
__END__
--- a/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
+++ b/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
@@ -43,4 +43,6 @@
#include <qpa/qplatformgraphicsbuffer.h>
#include <private/qcore_mac_p.h>
+
+#include <CoreGraphics/CGColorSpace.h>
QT_BEGIN_NAMESPACE