commit:     91f91926e801af9a19969127534b0feeb4fdacdd
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 13 08:31:03 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Aug 13 14:18:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f91926

dev-python/QtPy: take pyqt6/pyside6 into account 2.1.0

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/QtPy/{QtPy-2.1.0-r3.ebuild => QtPy-2.1.0-r4.ebuild} | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-python/QtPy/QtPy-2.1.0-r3.ebuild 
b/dev-python/QtPy/QtPy-2.1.0-r4.ebuild
similarity index 95%
rename from dev-python/QtPy/QtPy-2.1.0-r3.ebuild
rename to dev-python/QtPy/QtPy-2.1.0-r4.ebuild
index 967021dd8836..ddebeff472ae 100644
--- a/dev-python/QtPy/QtPy-2.1.0-r3.ebuild
+++ b/dev-python/QtPy/QtPy-2.1.0-r4.ebuild
@@ -122,6 +122,9 @@ src_prepare() {
                sed -i -e "s/from PySide2 import/raise ImportError #/" 
qtpy/__init__.py || die
                sed -i -e "s/from PySide2.QtCore import/raise ImportError #/" 
qtpy/__init__.py || die
        fi
+       sed -i -e "s/from PyQt6.QtCore import/raise ImportError #/" 
qtpy/__init__.py || die
+       sed -i -e "s/from PySide6 import/raise ImportError #/" qtpy/__init__.py 
|| die
+       sed -i -e "s/from PySide6.QtCore import/raise ImportError #/" 
qtpy/__init__.py
 }
 
 python_test() {

Reply via email to