From 649ce73ba08a5fd8af802937b3b44fab8e9a4a82 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Thu, 28 Sep 2017 22:21:39 +1000 Subject: [PATCH] dev-python/QtPy: version bump 1.3.1 Closes: https://bugs.gentoo.org/602528 Closes: https://bugs.gentoo.org/611856 Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- dev-python/QtPy/Manifest | 1 + dev-python/QtPy/QtPy-1.3.1.ebuild | 55 +++++++++++++++++++++++++++++++ dev-python/QtPy/metadata.xml | 3 ++ 3 files changed, 59 insertions(+) create mode 100644 dev-python/QtPy/QtPy-1.3.1.ebuild diff --git a/dev-python/QtPy/Manifest b/dev-python/QtPy/Manifest index 464e0adcfcc5..568620d06cf7 100644 --- a/dev-python/QtPy/Manifest +++ b/dev-python/QtPy/Manifest @@ -1 +1,2 @@ DIST QtPy-1.2.1.tar.gz 29210 SHA256 5803ce31f50b24295e8e600b76cc91d7f2a3140a5a0d526d40226f9ec5e9097d SHA512 7f9609b479a11daf1d8302040552f3926aa869eb775d23e32282a80ae9f5a39bf9be6b18cd62a6094a176ee8e7b4aef896fa8687eb2ce9ab9486f02aeeb756d7 WHIRLPOOL c598789661a43c96b3b4db8fb766fbfdcc746a8c6bdf270175b4e3f2733b666939e44921a056c1f77d2d6683ec73a4221ab409c320c840cdc7ee2d00ccec6184 +DIST QtPy-1.3.1.tar.gz 25061 SHA256 08af2525d59f9eb639946d5ed7a72b002103c5b7369c0ef0dd70ad2696845313 SHA512 3d06359b2793a57d8da715384b83e332cbc40d9f55699a2ddff0ebb04f527b9c629ea74b385103fd2ca98a79b02c8a582d16fa594048e7d56a32bda743da2008 WHIRLPOOL 7bd85d95fcbcea6f93d781d2c8e12252f4eff17dcfec269f24d97998d5aad50dec24f702641d1b5432c1235ba13f9ed5ec43f2ef20ff0b23d00873af8410e340 diff --git a/dev-python/QtPy/QtPy-1.3.1.ebuild b/dev-python/QtPy/QtPy-1.3.1.ebuild new file mode 100644 index 000000000000..5d5c3d3f23c8 --- /dev/null +++ b/dev-python/QtPy/QtPy-1.3.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Abtraction layer for PyQt5/PyQt4/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" + +REQUIRED_USE="|| ( pyqt4 pyqt5 pyside )" + +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?] + gui? ( dev-python/pyside[${PYTHON_USEDEP},X] ) + testlib? ( dev-python/pyside[${PYTHON_USEDEP},X] ) + ) +" +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 + + if ! use pyqt5; then + sed -i -e "s/from PyQt5.Qt import/raise ImportError #/" qtpy/__init__.py || die + fi + + if ! use pyside; then + sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die + sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die + fi +} diff --git a/dev-python/QtPy/metadata.xml b/dev-python/QtPy/metadata.xml index 2acbd329e3d4..85ca2f8aaa37 100644 --- a/dev-python/QtPy/metadata.xml +++ b/dev-python/QtPy/metadata.xml @@ -18,6 +18,9 @@ Build bindings for the QtDesigner module and enable the designer plugin Build bindings for the QtGui module + Enable the dev-python/PyQt4 backend + Enable the dev-python/PyQt5 backend + Enable the dev-python/pyside backend Build bindings for the QtSvg module Build bindings for the QtTest module Build bindings for the QtWebKit module -- 2.26.2