From e013b64a1aadb52f2e365fe1c7b7fa130dce8884 Mon Sep 17 00:00:00 2001 From: Christopher Kerr Date: Sun, 18 Sep 2022 21:12:01 +0300 Subject: [PATCH] Add ppc64 support to QtPy with PyQt5 Disable using PySide2 with package.use.mask because this package is not keyworded on ppc64 --- dev-python/QtPy/QtPy-2.1.0-r4.ebuild | 13 +++++++++---- profiles/arch/powerpc/package.use.mask | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dev-python/QtPy/QtPy-2.1.0-r4.ebuild b/dev-python/QtPy/QtPy-2.1.0-r4.ebuild index ddebeff472..956d3b9c5a 100644 --- a/dev-python/QtPy/QtPy-2.1.0-r4.ebuild +++ b/dev-python/QtPy/QtPy-2.1.0-r4.ebuild @@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm arm64 x86" +KEYWORDS="amd64 ~arm arm64 ~ppc64 x86" _IUSE_QT_MODULES=" declarative designer gui help location multimedia network opengl @@ -91,10 +91,11 @@ BDEPEND=" dev-python/mock[${PYTHON_USEDEP}] pyqt5? ( dev-python/PyQt5[${PYTHON_USEDEP}] - dev-python/PyQt5[bluetooth,dbus,declarative,designer,gui,help,location] + dev-python/PyQt5[dbus,declarative,designer,gui,help] dev-python/PyQt5[multimedia,network,opengl,positioning,printsupport] - dev-python/PyQt5[sensors,serialport,speech(-),sql,svg,testlib,webchannel] + dev-python/PyQt5[sensors,serialport,sql,svg,testlib,webchannel] dev-python/PyQt5[websockets,widgets,x11extras,xml(+),xmlpatterns] + !ppc64? ( dev-python/PyQt5[bluetooth,location,speech(-)] ) dev-python/PyQtWebEngine[${PYTHON_USEDEP}] ) pyside2? ( @@ -129,7 +130,11 @@ src_prepare() { python_test() { if use pyqt5; then - QT_API="pyqt5" virtx epytest + if use ppc64; then + QT_API="pyqt5" virtx epytest --deselect 'qtpy/tests/test_qtlocation.py::' --deselect 'qtpy/tests/test_qttexttospeech.py::' + else + QT_API="pyqt5" virtx epytest + fi fi if use pyside2; then QT_API="pyside2" virtx epytest diff --git a/profiles/arch/powerpc/package.use.mask b/profiles/arch/powerpc/package.use.mask index 1d7466db7d..ace75789b2 100644 --- a/profiles/arch/powerpc/package.use.mask +++ b/profiles/arch/powerpc/package.use.mask @@ -211,6 +211,7 @@ dev-db/percona-server -numa # The corresponding Qt5 modules are not keyworded on ppc, and we don't want to # keyword them solely because of PyQt5 while there are no other in-tree users. dev-python/PyQt5 bluetooth location speech +dev-python/QtPy location pyside2 speech # Michael Palimaka (2016-07-07) # Requires unkeyworded dependencies -- 2.35.1