summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2018-04-23 03:42:39 +0700
committerAndrey Grozin <grozin@gentoo.org>2018-04-23 03:42:39 +0700
commit6031f5f01a4e141b7ab47ad6191c173c0b75ba0e (patch)
tree2642cfa640291a9faefcb1d7f3aadcc26b977e48 /dev-python
parentapp-office/lyx: amd64 stable wrt bug #631798 (diff)
downloadgentoo-6031f5f01a4e141b7ab47ad6191c173c0b75ba0e.tar.gz
gentoo-6031f5f01a4e141b7ab47ad6191c173c0b75ba0e.tar.bz2
gentoo-6031f5f01a4e141b7ab47ad6191c173c0b75ba0e.zip
dev-python/QtPy: bump to 1.4.0 and support QtWebengine
Suggested-by: holgersson@posteo.de Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/QtPy/Manifest1
-rw-r--r--dev-python/QtPy/QtPy-1.4.0.ebuild48
-rw-r--r--dev-python/QtPy/metadata.xml1
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/QtPy/Manifest b/dev-python/QtPy/Manifest
index f66f23724c60..ee88062e92c9 100644
--- a/dev-python/QtPy/Manifest
+++ b/dev-python/QtPy/Manifest
@@ -1,2 +1,3 @@
DIST QtPy-1.2.1.tar.gz 29210 BLAKE2B a0b091902c7c7ccde1dbe8cc7e235de2340f3b2d9bfb5869a66d50d61cdf9cebf9ba2fa4458290a6f47c7a9c46227c5d8a8a9d7f2cac86f1528a7d6e350638b1 SHA512 7f9609b479a11daf1d8302040552f3926aa869eb775d23e32282a80ae9f5a39bf9be6b18cd62a6094a176ee8e7b4aef896fa8687eb2ce9ab9486f02aeeb756d7
DIST QtPy-1.3.1.tar.gz 25061 BLAKE2B 5e504c9fd6182c23ec7f3160f6d2c073bb64bf3145b4336420be39dfda2d942633792abdcf2b7c0772ca7066e497d456667cbec2067a7798114929b0c9ca2d7d SHA512 3d06359b2793a57d8da715384b83e332cbc40d9f55699a2ddff0ebb04f527b9c629ea74b385103fd2ca98a79b02c8a582d16fa594048e7d56a32bda743da2008
+DIST QtPy-1.4.0.tar.gz 27019 BLAKE2B 6b90876f4801a19c98ddb8c4d678737a3b3ad61af1fe47c79b59b970ea4a895774bc554dfb9c99a4d806ad0316fb7c00e731c32a9d3f0a929a1f8bd4352851ab SHA512 7a989011114c17de29d5de6ff075935efdf9ebbae72d14580646bc81ce877f0beceaac511cade9e750dd9ee7e9f0f133c5676fa192ea906e7483feb543743379
diff --git a/dev-python/QtPy/QtPy-1.4.0.ebuild b/dev-python/QtPy/QtPy-1.4.0.ebuild
new file mode 100644
index 000000000000..67ff013c69fe
--- /dev/null
+++ b/dev-python/QtPy/QtPy-1.4.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 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="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 +pyqt5 pyside svg testlib webkit webengine"
+
+REQUIRED_USE="|| ( pyqt5 pyside ) webkit? ( pyqt5 )"
+
+RDEPEND="
+ pyqt5? (
+ dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?,webengine?]
+ gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] )
+ testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] )
+ )
+ pyside? (
+ dev-python/pyside[${PYTHON_USEDEP},designer?,opengl?,svg?]
+ gui? ( dev-python/pyside[${PYTHON_USEDEP},X] )
+ testlib? ( dev-python/pyside[${PYTHON_USEDEP},X] )
+ )
+"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ default
+
+ 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
+ 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 58c106d81874..f7b2b130bc4a 100644
--- a/dev-python/QtPy/metadata.xml
+++ b/dev-python/QtPy/metadata.xml
@@ -22,6 +22,7 @@
<flag name="pyside">Enable the <pkg>dev-python/pyside</pkg> backend</flag>
<flag name="svg">Build bindings for the QtSvg module</flag>
<flag name="testlib">Build bindings for the QtTest module</flag>
+ <flag name="webengine">Build bindings for the QtWebEngine module</flag>
<flag name="webkit">Build bindings for the QtWebKit module</flag>
</use>
<upstream>