summaryrefslogtreecommitdiff
path: root/dev-python/pyqt6
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-02-26 18:53:23 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-02-26 18:53:23 +0000
commitbe5d8130969e5d6299693b4d5118d809eb80385f (patch)
treeb6f1fca55aa37175481b5f10fcdd85c68699a39e /dev-python/pyqt6
parentdbc3ccb751192120fdb582a3e036a54fd3888ccd (diff)
downloadbaldeagleos-repo-be5d8130969e5d6299693b4d5118d809eb80385f.tar.gz
baldeagleos-repo-be5d8130969e5d6299693b4d5118d809eb80385f.tar.xz
baldeagleos-repo-be5d8130969e5d6299693b4d5118d809eb80385f.zip
Adding metadata
Diffstat (limited to 'dev-python/pyqt6')
-rw-r--r--dev-python/pyqt6/files/pyqt6-6.8.1-qt690.patch43
-rw-r--r--dev-python/pyqt6/pyqt6-6.8.1.ebuild4
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/pyqt6/files/pyqt6-6.8.1-qt690.patch b/dev-python/pyqt6/files/pyqt6-6.8.1-qt690.patch
new file mode 100644
index 000000000000..898bda7810a5
--- /dev/null
+++ b/dev-python/pyqt6/files/pyqt6-6.8.1-qt690.patch
@@ -0,0 +1,43 @@
+Quick fix to build against (still unreleased) Qt 6.9.
+--- a/qpy/QtCore/qpycore_enums_flags_metatype.cpp
++++ b/qpy/QtCore/qpycore_enums_flags_metatype.cpp
+@@ -46,5 +46,9 @@
+ mti->alignment = alignof(unsigned);
+ mti->size = sizeof(unsigned);
++#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
++ mti->flags = QtPrivate::QMetaTypeForType<unsigned>::flags() | QMetaType::IsEnumeration | QMetaType::IsUnsignedEnumeration;
++#else
+ mti->flags = QtPrivate::QMetaTypeForType<unsigned>::Flags | QMetaType::IsEnumeration | QMetaType::IsUnsignedEnumeration;
++#endif
+ mti->defaultCtr = QtPrivate::QMetaTypeForType<unsigned>::getDefaultCtr();
+ mti->copyCtr = QtPrivate::QMetaTypeForType<unsigned>::getCopyCtr();
+@@ -62,5 +66,9 @@
+ mti->alignment = alignof(int);
+ mti->size = sizeof(int);
++#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
++ mti->flags = QtPrivate::QMetaTypeForType<int>::flags() | QMetaType::IsEnumeration;
++#else
+ mti->flags = QtPrivate::QMetaTypeForType<int>::Flags | QMetaType::IsEnumeration;
++#endif
+ mti->defaultCtr = QtPrivate::QMetaTypeForType<int>::getDefaultCtr();
+ mti->copyCtr = QtPrivate::QMetaTypeForType<int>::getCopyCtr();
+--- 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}
++%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}
+
+ %Platforms {Android iOS Linux macOS WebAssembly Windows}
+--- a/sip/QtXml/qdom.sip
++++ b/sip/QtXml/qdom.sip
+@@ -159,6 +159,8 @@
+ QDomNodeList(const QDomNodeList &);
+ ~QDomNodeList();
++%If (- Qt_6_9_0)
+ bool operator==(const QDomNodeList &) const;
+ bool operator!=(const QDomNodeList &) const;
++%End
+ QDomNode item(int index) const;
+ QDomNode at(int index) const;
diff --git a/dev-python/pyqt6/pyqt6-6.8.1.ebuild b/dev-python/pyqt6/pyqt6-6.8.1.ebuild
index d236a0b441f8..1e4b67b9d5f5 100644
--- a/dev-python/pyqt6/pyqt6-6.8.1.ebuild
+++ b/dev-python/pyqt6/pyqt6-6.8.1.ebuild
@@ -97,6 +97,10 @@ BDEPEND="
dbus? ( virtual/pkgconfig )
"
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.8.1-qt690.patch
+)
+
src_prepare() {
default