From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/QtPy/Manifest | 1 + dev-python/QtPy/QtPy-1.9.0-r2.ebuild | 31 +++++++++++++++++++++++++++++++ dev-python/QtPy/metadata.xml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 dev-python/QtPy/Manifest create mode 100644 dev-python/QtPy/QtPy-1.9.0-r2.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..b8374d6358e3 --- /dev/null +++ b/dev-python/QtPy/Manifest @@ -0,0 +1 @@ +DIST QtPy-1.9.0.tar.gz 35522 BLAKE2B 05b700c1f804cc535c3065c8f819d1d7fb0e02d43f199082d2e0d2c575ff8dbfdbf0053ddb3b155108cf55350ff4daf75166ab39a60374a35a86a1707724a4a1 SHA512 2492c531f0df3afc9e0f8875a2b2e39cc8b09542fb9f251900b8596c0db7767390bb85365cc39efd6cd37ae852a00655354e6f9f3d795023e4fd86dbf8bd5fa7 diff --git a/dev-python/QtPy/QtPy-1.9.0-r2.ebuild b/dev-python/QtPy/QtPy-1.9.0-r2.ebuild new file mode 100644 index 000000000000..ea4bf2866229 --- /dev/null +++ b/dev-python/QtPy/QtPy-1.9.0-r2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +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 ~arm64 x86" +IUSE="designer gui opengl svg testlib webengine" + +RDEPEND=" + dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?] + gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] ) + testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] ) + webengine? ( dev-python/PyQtWebEngine[${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..1e5039fd6faa --- /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 + + + spyder-ide/qtpy + QtPy + + gentoo-staging + -- cgit v1.3.1