Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/QtPy/
Date: Thu, 10 May 2018 14:10:46
Message-Id: 1525961422.12aaf19b09317d73f8dc6d087bc52f7307ccbf1c.asturm@gentoo
1 commit: 12aaf19b09317d73f8dc6d087bc52f7307ccbf1c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 10 11:35:04 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu May 10 14:10:22 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12aaf19b
7
8 dev-python/QtPy: Drop USE=pyside,pyqt5
9
10 Package-Manager: Portage-2.3.36, Repoman-2.3.9
11
12 dev-python/QtPy/QtPy-1.3.1-r1.ebuild | 32 ++++++++++++++++++++++++++++++++
13 dev-python/QtPy/QtPy-1.4.0-r1.ebuild | 32 ++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/QtPy/QtPy-1.3.1-r1.ebuild b/dev-python/QtPy/QtPy-1.3.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..7987c23cfe1
19 --- /dev/null
20 +++ b/dev-python/QtPy/QtPy-1.3.1-r1.ebuild
21 @@ -0,0 +1,32 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Abstraction layer for PyQt5/PySide"
32 +HOMEPAGE="https://github.com/spyder-ide/qtpy"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
38 +IUSE="designer gui opengl svg testlib webkit"
39 +
40 +RDEPEND="
41 + dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?]
42 + gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] )
43 + testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] )
44 +"
45 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
46 +
47 +src_prepare() {
48 + default
49 +
50 + sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die
51 + sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die
52 + sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die
53 +}
54
55 diff --git a/dev-python/QtPy/QtPy-1.4.0-r1.ebuild b/dev-python/QtPy/QtPy-1.4.0-r1.ebuild
56 new file mode 100644
57 index 00000000000..0ec5a63afb8
58 --- /dev/null
59 +++ b/dev-python/QtPy/QtPy-1.4.0-r1.ebuild
60 @@ -0,0 +1,32 @@
61 +# Copyright 1999-2018 Gentoo Foundation
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=6
65 +
66 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
67 +
68 +inherit distutils-r1
69 +
70 +DESCRIPTION="Abstraction layer for PyQt5/PySide"
71 +HOMEPAGE="https://github.com/spyder-ide/qtpy"
72 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
73 +
74 +LICENSE="MIT"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
77 +IUSE="designer gui opengl svg testlib webkit webengine"
78 +
79 +RDEPEND="
80 + dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?,webengine?]
81 + gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] )
82 + testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] )
83 +"
84 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
85 +
86 +src_prepare() {
87 + default
88 +
89 + sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die
90 + sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die
91 + sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die
92 +}