@@ -14,6 +14,7 @@ class Qt < Formula
1414 { "GPL-3.0-only" => { with : "Qt-GPL-exception-1.0" } } ,
1515 "LGPL-3.0-only" ,
1616 ]
17+ revision 1
1718 head "https://code.qt.io/qt/qt5.git" , branch : "dev"
1819
1920 # The first-party website doesn't make version information readily available,
@@ -26,11 +27,11 @@ class Qt < Formula
2627 no_autobump! because : :requires_manual_review
2728
2829 bottle do
29- sha256 cellar : :any , arm64_sonoma : "861acfe809369d19c8cbc923afa94c62f48784f087a150e09d3522e5eeb15f9e "
30- sha256 cellar : :any , arm64_ventura : "f30408e5e2a56aef97597398e4d552da3286b9fb45ba040e405291584009bea8 "
31- sha256 cellar : :any , sonoma : "1cb92af62ec86c41bd6901428356fc8908ab98706a1f4b1e7791f09fd6cad498 "
32- sha256 cellar : :any , ventura : "3f55e107498966094f5b47f6e729728c7cc97d503f9deed8c59d87ca9f69cfa4 "
33- sha256 x86_64_linux : "0f25abc1c0b90ec910b12b3d5c4db85e77e5f0888a2a8446f2d2dc5c973ede78 "
30+ sha256 cellar : :any , arm64_sonoma : "71178e8d39b2d61ecd4077e26997a6ba813d3b0159cdb6e3ca8a1b615d6b1a2f "
31+ sha256 cellar : :any , arm64_ventura : "57a2d1d83efa9804b2286df9ff9ff0ea80a058ead20a59f9478951e73876e318 "
32+ sha256 cellar : :any , sonoma : "cc1193691023ea31e664b5170685c2fdfec4016de0cefbc18cfe017ed31d7a0a "
33+ sha256 cellar : :any , ventura : "9051e4898c848f50a3919aa026dc082b043ac5e0343d3032e3d25f85d6de3035 "
34+ sha256 x86_64_linux : "69b20bb5da2b644a0f96564833a4bdace8701fd40ca2208e7dc5916ecabb0d50 "
3435 end
3536
3637 depends_on "cmake" => [ :build , :test ]
@@ -43,7 +44,7 @@ class Qt < Formula
4344 depends_on "vulkan-loader" => [ :build , :test ]
4445 depends_on xcode : :build
4546
46- depends_on "assimp"
47+ depends_on "assimp@5 "
4748 depends_on "brotli"
4849 depends_on "dbus"
4950 depends_on "double-conversion"
@@ -139,6 +140,10 @@ class Qt < Formula
139140 sha256 "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
140141 end
141142
143+ # Fix for `invalid use of attribute 'fallthrough'` with GCC <= 12 and gperf >= 3.2
144+ # https://bugreports.qt.io/browse/QTBUG-137278 (fixed in 6.9.2)
145+ patch :DATA
146+
142147 def install
143148 python3 = "python3.13"
144149
@@ -220,6 +225,8 @@ def install
220225 # See https://bugreports.qt.io/browse/QTBUG-130922
221226 cmake_args << "-DBUILD_qtwebengine=OFF" if MacOS ::Xcode . version < "15.3"
222227
228+ cmake_args << "-DQT_FORCE_WARN_APPLE_SDK_AND_XCODE_CHECK=ON" if MacOS . version <= :monterey
229+
223230 %W[
224231 -DCMAKE_OSX_DEPLOYMENT_TARGET=#{ MacOS . version } .0
225232 -DQT_FEATURE_ffmpeg=OFF
@@ -412,3 +419,22 @@ def caveats
412419 assert_equal HOMEBREW_PREFIX . to_s , shell_output ( "#{ bin } /qmake -query QT_INSTALL_PREFIX" ) . chomp
413420 end
414421end
422+ __END__
423+ --- a/qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/build/scripts/gperf.py 2025-05-29 21:23:49.565413007 +0000
424+ +++ b/qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/build/scripts/gperf.py 2025-05-29 21:24:07.164764001 +0000
425+ @@ -35,8 +35,11 @@
426+ # https://savannah.gnu.org/bugs/index.php?53028
427+ gperf_output = re.sub(r'\bregister ', '', gperf_output)
428+ # -Wimplicit-fallthrough needs an explicit fallthrough statement,
429+ - # so replace gperf's /*FALLTHROUGH*/ comment with the statement.
430+ - # https://savannah.gnu.org/bugs/index.php?53029
431+ - gperf_output = gperf_output.replace('/*FALLTHROUGH*/',
432+ - ' [[fallthrough]];')
433+ + # so replace gperf 3.1's /*FALLTHROUGH*/ comment with the statement.
434+ + # https://savannah.gnu.org/bugs/index.php?53029 (fixed in 3.2)
435+ + if re.search(
436+ + r'/\* C\+\+ code produced by gperf version 3\.[01](\.\d+)? \*/',
437+ + gperf_output):
438+ + gperf_output = gperf_output.replace('/*FALLTHROUGH*/',
439+ + ' [[fallthrough]];')
440+ # -Wpointer-to-int-cast warns about casting pointers to smaller ints
0 commit comments