From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/QtPy/Manifest | 5 +++++ dev-python/QtPy/QtPy-1.3.1-r1.ebuild | 32 ++++++++++++++++++++++++++++++++ dev-python/QtPy/QtPy-1.4.0-r1.ebuild | 32 ++++++++++++++++++++++++++++++++ dev-python/QtPy/metadata.xml | 30 ++++++++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 dev-python/QtPy/Manifest create mode 100644 dev-python/QtPy/QtPy-1.3.1-r1.ebuild create mode 100644 dev-python/QtPy/QtPy-1.4.0-r1.ebuild create mode 100644 dev-python/QtPy/metadata.xml (limited to 'dev-python/QtPy') diff --git a/dev-python/QtPy/Manifest b/dev-python/QtPy/Manifest new file mode 100644 index 000000000000..18bcb9486d84 --- /dev/null +++ b/dev-python/QtPy/Manifest @@ -0,0 +1,5 @@ +DIST QtPy-1.3.1.tar.gz 25061 BLAKE2B 5e504c9fd6182c23ec7f3160f6d2c073bb64bf3145b4336420be39dfda2d942633792abdcf2b7c0772ca7066e497d456667cbec2067a7798114929b0c9ca2d7d SHA512 3d06359b2793a57d8da715384b83e332cbc40d9f55699a2ddff0ebb04f527b9c629ea74b385103fd2ca98a79b02c8a582d16fa594048e7d56a32bda743da2008 +DIST QtPy-1.4.0.tar.gz 27019 BLAKE2B 6b90876f4801a19c98ddb8c4d678737a3b3ad61af1fe47c79b59b970ea4a895774bc554dfb9c99a4d806ad0316fb7c00e731c32a9d3f0a929a1f8bd4352851ab SHA512 7a989011114c17de29d5de6ff075935efdf9ebbae72d14580646bc81ce877f0beceaac511cade9e750dd9ee7e9f0f133c5676fa192ea906e7483feb543743379 +EBUILD QtPy-1.3.1-r1.ebuild 957 BLAKE2B afa6ce6eb0b35d063fc3bc7b0f26b79c844984553705f1e97d67089f67981a59a09477cf27baf18fb39a3b862a2468c787482ec1b6b65ac5aa490935105a50e4 SHA512 df950c18cafa27ad96f59c7f6cbb55df6d9d62b6d608d983a43cd09907f6f42e8dbb4e091a8c1e1b2c8242642a8ab43b15f23efb030552c050bcfe0fe4ae00a9 +EBUILD QtPy-1.4.0-r1.ebuild 980 BLAKE2B 8e44bc8639e870b349f81f0ccb5a11439e5f897645da1f0c99e6ce110ca412ec10072895c723920e2cfacc72a6015392f0020cde7c23783c8ce100536ea63f1f SHA512 fa31c3ab20096a44d6f7c367e2858757e9a66b77a7e991002104dd566e678cf9e3e753d8a52411be89bca7e3acb886f935c750743a33e7267220f689e7c28510 +MISC metadata.xml 1338 BLAKE2B 7eee8e39324b18bd84a076882dc539fe2e18f38ec68a539ab40968a3a6023ac0cdfc6899305df0ef0c7561409ca81526d474a1154fb645dccdffdb0779282b12 SHA512 08a2e0b2d0aaecaf91bffb82dbba9d24d4b4753801610102db08c3e29b3ff51f1bd6d46f9c2a706f4b9a887be781a97ead1c753631717f82cd44080d44b67c4c diff --git a/dev-python/QtPy/QtPy-1.3.1-r1.ebuild b/dev-python/QtPy/QtPy-1.3.1-r1.ebuild new file mode 100644 index 000000000000..80c9638f28b4 --- /dev/null +++ b/dev-python/QtPy/QtPy-1.3.1-r1.ebuild @@ -0,0 +1,32 @@ +# 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 svg testlib webkit" + +RDEPEND=" + dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?] + gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] ) + testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] ) +" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +src_prepare() { + default + + sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die + 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 +} diff --git a/dev-python/QtPy/QtPy-1.4.0-r1.ebuild b/dev-python/QtPy/QtPy-1.4.0-r1.ebuild new file mode 100644 index 000000000000..0ec5a63afb85 --- /dev/null +++ b/dev-python/QtPy/QtPy-1.4.0-r1.ebuild @@ -0,0 +1,32 @@ +# 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 svg testlib webkit webengine" + +RDEPEND=" + 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] ) +" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +src_prepare() { + default + + sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die + 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 +} diff --git a/dev-python/QtPy/metadata.xml b/dev-python/QtPy/metadata.xml new file mode 100644 index 000000000000..e1b8d6e3aa72 --- /dev/null +++ b/dev-python/QtPy/metadata.xml @@ -0,0 +1,30 @@ + + + + + python@gentoo.org + Gentoo Python Project + + + QtPy is a small abstraction layer that lets you write + applications using a single API call to either PyQt or + PySide. QtPy also provides a set of additional QWidgets. It + provides support for PyQt5, PyQt4 and PySide using the PyQt5 + layout (where the QtGui module has been split into QtGui and + QtWidgets). + Basically, you write your code as if you were using PyQt5 but + import qt from QtPy instead of PyQt5. + + + Build bindings for the QtDesigner module and enable the designer plugin + Build bindings for the QtGui module + Build bindings for the QtSvg module + Build bindings for the QtTest module + Build bindings for the QtWebEngine module + Build bindings for the QtWebKit module + + + spyder-ide/qtpy + QtPy + + -- cgit v1.2.3