diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-10-15 00:21:46 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-10-16 16:54:31 +0200 |
commit | c3eb993546e9ebf478e25605fe92960f48cd949e (patch) | |
tree | 169236cd4f4e8f6245a9f6529e3351f4ca187728 /dev-python/QtPy | |
parent | net-wireless/wpa_supplicant: remove one vuln ebuild (diff) | |
download | gentoo-c3eb993546e9ebf478e25605fe92960f48cd949e.tar.gz gentoo-c3eb993546e9ebf478e25605fe92960f48cd949e.tar.bz2 gentoo-c3eb993546e9ebf478e25605fe92960f48cd949e.zip |
dev-python/QtPy: Drop PyQt4 and pyside[webkit] options
Gentoo-bug: 620684
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'dev-python/QtPy')
-rw-r--r-- | dev-python/QtPy/QtPy-1.2.1.ebuild | 26 | ||||
-rw-r--r-- | dev-python/QtPy/QtPy-1.3.1.ebuild | 17 | ||||
-rw-r--r-- | dev-python/QtPy/metadata.xml | 1 |
3 files changed, 17 insertions, 27 deletions
diff --git a/dev-python/QtPy/QtPy-1.2.1.ebuild b/dev-python/QtPy/QtPy-1.2.1.ebuild index 86fa7592ebdc..51f9d64960b2 100644 --- a/dev-python/QtPy/QtPy-1.2.1.ebuild +++ b/dev-python/QtPy/QtPy-1.2.1.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) inherit distutils-r1 -DESCRIPTION="Abtraction layer for PyQt5/PyQt4/PySide" +DESCRIPTION="Abstraction layer for PyQt5/PySide" HOMEPAGE="https://github.com/spyder-ide/qtpy" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" @@ -18,20 +18,18 @@ KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" IUSE="designer gui opengl svg testlib webkit" RDEPEND=" - || ( - dev-python/PyQt5[${PYTHON_USEDEP},designer=,opengl=,svg=,webkit=] - dev-python/PyQt4[${PYTHON_USEDEP},designer=,opengl=,svg=,webkit=] - dev-python/pyside[${PYTHON_USEDEP},designer=,opengl=,svg=,webkit=] - ) gui? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] - dev-python/PyQt4[${PYTHON_USEDEP},X] - dev-python/pyside[${PYTHON_USEDEP},X] + dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] + dev-python/pyside[${PYTHON_USEDEP},X] ) ) testlib? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},testlib] - dev-python/PyQt4[${PYTHON_USEDEP},testlib] - dev-python/pyside[${PYTHON_USEDEP},X] - ) )" - + dev-python/PyQt5[${PYTHON_USEDEP},testlib] + dev-python/pyside[${PYTHON_USEDEP},X] + ) ) + webkit? ( dev-python/PyQt5[${PYTHON_USEDEP},designer=,opengl=,svg=,webkit=] ) + !webkit? ( || ( + dev-python/PyQt5[${PYTHON_USEDEP},designer=,opengl=,svg=] + dev-python/pyside[${PYTHON_USEDEP},designer=,opengl=,svg=] + ) ) +" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" diff --git a/dev-python/QtPy/QtPy-1.3.1.ebuild b/dev-python/QtPy/QtPy-1.3.1.ebuild index 5d5c3d3f23c8..de40764e990a 100644 --- a/dev-python/QtPy/QtPy-1.3.1.ebuild +++ b/dev-python/QtPy/QtPy-1.3.1.ebuild @@ -7,30 +7,25 @@ PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) inherit distutils-r1 -DESCRIPTION="Abtraction layer for PyQt5/PyQt4/PySide" +DESCRIPTION="Abstraction layer for PyQt5/PySide" HOMEPAGE="https://github.com/spyder-ide/qtpy" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="designer gui opengl pyqt4 +pyqt5 pyside svg testlib webkit" +IUSE="designer gui opengl +pyqt5 pyside svg testlib webkit" -REQUIRED_USE="|| ( pyqt4 pyqt5 pyside )" +REQUIRED_USE="|| ( pyqt5 pyside ) webkit? ( pyqt5 )" RDEPEND=" - pyqt4? ( - dev-python/PyQt4[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?] - gui? ( dev-python/PyQt4[${PYTHON_USEDEP},X] ) - testlib? ( dev-python/PyQt4[${PYTHON_USEDEP},testlib] ) - ) pyqt5? ( dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?] gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] ) testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] ) ) pyside? ( - dev-python/pyside[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?] + dev-python/pyside[${PYTHON_USEDEP},designer?,opengl?,svg?] gui? ( dev-python/pyside[${PYTHON_USEDEP},X] ) testlib? ( dev-python/pyside[${PYTHON_USEDEP},X] ) ) @@ -40,9 +35,7 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" src_prepare() { default - if ! use pyqt4; then - sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die - fi + sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die if ! use pyqt5; then sed -i -e "s/from PyQt5.Qt import/raise ImportError #/" qtpy/__init__.py || die diff --git a/dev-python/QtPy/metadata.xml b/dev-python/QtPy/metadata.xml index 85ca2f8aaa37..58c106d81874 100644 --- a/dev-python/QtPy/metadata.xml +++ b/dev-python/QtPy/metadata.xml @@ -18,7 +18,6 @@ <use> <flag name="designer">Build bindings for the QtDesigner module and enable the designer plugin</flag> <flag name="gui">Build bindings for the QtGui module</flag> - <flag name="pyqt4">Enable the <pkg>dev-python/PyQt4</pkg> backend</flag> <flag name="pyqt5">Enable the <pkg>dev-python/PyQt5</pkg> backend</flag> <flag name="pyside">Enable the <pkg>dev-python/pyside</pkg> backend</flag> <flag name="svg">Build bindings for the QtSvg module</flag> |