From: Andrew Ammerlaan Date: Mon, 16 Dec 2019 08:56:29 +0000 (+0100) Subject: dev-python/QtPy: Version bump 1.9.0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=24f35e2e29792f2e2c16d9ed08195e6cdff048f4;p=gentoo.git dev-python/QtPy: Version bump 1.9.0 Remove python{2_7,3_5}, drop {amd64,x86}-linux keywords. Bug: https://github.com/gentoo/gentoo/pull/13988 Bug: https://bugs.gentoo.org/702458 Closes: https://github.com/gentoo/gentoo/pull/14009 Signed-off-by: Andrew Ammerlaan Signed-off-by: Benda Xu Package-Manager: Portage-2.3.81, Repoman-2.3.20 --- diff --git a/dev-python/QtPy/Manifest b/dev-python/QtPy/Manifest index 914a769263a6..bb4317acd145 100644 --- a/dev-python/QtPy/Manifest +++ b/dev-python/QtPy/Manifest @@ -1 +1,2 @@ DIST QtPy-1.4.2.tar.gz 27471 BLAKE2B d70de67944a4019031b52cd3f6c588261537a74ce8b968d9577b016d18767e3e2b6981dae983573bd1644949b13ee271a10beaef9a371ac41b3cd1b9cb506cb2 SHA512 eb8a059f110f3262ab62f8198019b9826a5b834da62e59791fb3a6c235eb797291e4f180b31704d7d61811791e5b245a05b57fc385de358480561508e3b29a4d +DIST QtPy-1.9.0.tar.gz 35522 BLAKE2B 05b700c1f804cc535c3065c8f819d1d7fb0e02d43f199082d2e0d2c575ff8dbfdbf0053ddb3b155108cf55350ff4daf75166ab39a60374a35a86a1707724a4a1 SHA512 2492c531f0df3afc9e0f8875a2b2e39cc8b09542fb9f251900b8596c0db7767390bb85365cc39efd6cd37ae852a00655354e6f9f3d795023e4fd86dbf8bd5fa7 diff --git a/dev-python/QtPy/QtPy-1.9.0.ebuild b/dev-python/QtPy/QtPy-1.9.0.ebuild new file mode 100644 index 000000000000..85c3f572b63e --- /dev/null +++ b/dev-python/QtPy/QtPy-1.9.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +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" +IUSE="designer gui opengl svg testlib webkit webengine" + +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] ) + 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 +}