diff --git a/dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch b/dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch new file mode 100644 index 0000000000000..1147e23e2a414 --- /dev/null +++ b/dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch @@ -0,0 +1,21 @@ +Quick fix to build with (still unrleeased) Qt 6.12.0. +--- a/sip/QtCore/QtCoremod.sip ++++ b/sip/QtCore/QtCoremod.sip +@@ -23,5 +23,5 @@ + %Module(name=PyQt6.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt6, keyword_arguments="Optional", use_limited_api=True, py_ssize_t_clean=True) + +-%Timeline {Qt_6_0_0 Qt_6_1_0 Qt_6_2_0 Qt_6_3_0 Qt_6_4_0 Qt_6_5_0 Qt_6_6_0 Qt_6_7_0 Qt_6_8_0 Qt_6_9_0 Qt_6_10_0 Qt_6_11_0} ++%Timeline {Qt_6_0_0 Qt_6_1_0 Qt_6_2_0 Qt_6_3_0 Qt_6_4_0 Qt_6_5_0 Qt_6_6_0 Qt_6_7_0 Qt_6_8_0 Qt_6_9_0 Qt_6_10_0 Qt_6_11_0 Qt_6_12_0} + + %Platforms {Android iOS Linux macOS WebAssembly Windows} +--- a/sip/QtCore/qcoreevent.sip ++++ b/sip/QtCore/qcoreevent.sip +@@ -201,6 +201,8 @@ + TabletTrackingChange, + GraphicsSceneLeave, ++%If (- Qt_6_12_0) + EnterEditFocus, + LeaveEditFocus, ++%End + %If (Qt_6_6_0 -) + DevicePixelRatioChange, diff --git a/dev-python/pyqt6/pyqt6-6.11.0.ebuild b/dev-python/pyqt6/pyqt6-6.11.0.ebuild index 45fd28c07b3c4..8bd32130547c9 100644 --- a/dev-python/pyqt6/pyqt6-6.11.0.ebuild +++ b/dev-python/pyqt6/pyqt6-6.11.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=sip -PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_COMPAT=( python3_{12..14} ) inherit distutils-r1 flag-o-matic multiprocessing pypi qmake-utils # can work with older Qt depending on the features the ebuild enables, @@ -98,6 +98,10 @@ BDEPEND=" dbus? ( virtual/pkgconfig ) " +PATCHES=( + "${FILESDIR}"/${PN}-6.11.0-qt6.12.patch +) + src_prepare() { default