Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyQtWebEngine/
Date: Fri, 27 Dec 2019 03:33:57
Message-Id: 1577417618.f1da070123f21ae9e7e325fecfcdce08b8347e3c.pesa@gentoo
1 commit: f1da070123f21ae9e7e325fecfcdce08b8347e3c
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 27 03:33:17 2019 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 27 03:33:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1da0701
7
8 dev-python/PyQtWebEngine: add 5.14.0
9
10 Closes: https://bugs.gentoo.org/703532
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>
13
14 dev-python/PyQtWebEngine/Manifest | 1 +
15 .../PyQtWebEngine/PyQtWebEngine-5.14.0.ebuild | 75 ++++++++++++++++++++++
16 2 files changed, 76 insertions(+)
17
18 diff --git a/dev-python/PyQtWebEngine/Manifest b/dev-python/PyQtWebEngine/Manifest
19 index 8bb432a9015..9731db3973e 100644
20 --- a/dev-python/PyQtWebEngine/Manifest
21 +++ b/dev-python/PyQtWebEngine/Manifest
22 @@ -1,2 +1,3 @@
23 DIST PyQtWebEngine-5.13.2.tar.gz 45234 BLAKE2B 4ad3aa63856cf3627c2f4ba29d93394f13297deb5e54bdd200bd419f71322d541ae72e45d70cff09cc53808f0d2430f8922d44f18bbf177c42a6b9c827854d6e SHA512 778aff78ea731230029e8dd993f4bc59a32bf74d65f06a8b3d1467efdc67e3b3caf0d9a968682c6c275c8ffdb8d85d9c756cb51727769949656620e944c736d3
24 +DIST PyQtWebEngine-5.14.0.tar.gz 47794 BLAKE2B 28f4a577ab5d8c1bea439b11e836008d27b4a49f31f230885013b515147a95c97e398328d1fc3a99619c3fd6eca3da7e94bf5873de9ac6511e0f59e467d4490c SHA512 c5274ce5ba1c80c6851971c3e18acf33121cd5863f613bd1789fdb40323b52429b55b54f3dcbb3127c85343e11f14c004ad54711b2b59cab95fd440f90fe5f2e
25 DIST PyQtWebEngine_gpl-5.12.1.tar.gz 42474 BLAKE2B 6cb333d8e429ae6b9f8c20a7486754767639693351605e85c0226ab3f1f065a549d40d69669d91f501fdf2c30346304a547e36b416d275a8bfe4ea621c0633b7 SHA512 2bcb0e4da51de9cfb5128e03c03ada77f2d4b99b0885da910584717681b96759ce4301c325cbbf43602d46746e2d37d81ed62f77dd63b33359fd5fae74d7f010
26
27 diff --git a/dev-python/PyQtWebEngine/PyQtWebEngine-5.14.0.ebuild b/dev-python/PyQtWebEngine/PyQtWebEngine-5.14.0.ebuild
28 new file mode 100644
29 index 00000000000..384c51314f2
30 --- /dev/null
31 +++ b/dev-python/PyQtWebEngine/PyQtWebEngine-5.14.0.ebuild
32 @@ -0,0 +1,75 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
39 +inherit python-r1 qmake-utils
40 +
41 +DESCRIPTION="Python bindings for QtWebEngine"
42 +HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
43 +
44 +MY_P=${PN}-${PV/_pre/.dev}
45 +if [[ ${PV} == *_pre* ]]; then
46 + SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
47 +else
48 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
49 +fi
50 +
51 +LICENSE="GPL-3"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
54 +IUSE="debug"
55 +
56 +REQUIRED_USE="
57 + ${PYTHON_REQUIRED_USE}
58 +"
59 +
60 +RDEPEND="
61 + ${PYTHON_DEPS}
62 + >=dev-python/PyQt5-5.13.1[gui,network,printsupport,ssl,webchannel,widgets,${PYTHON_USEDEP}]
63 + >=dev-python/PyQt5-sip-4.19.20:=[${PYTHON_USEDEP}]
64 + dev-qt/qtcore:5
65 + dev-qt/qtwebengine:5[widgets]
66 +"
67 +DEPEND="${RDEPEND}
68 + >=dev-python/sip-4.19.20[${PYTHON_USEDEP}]
69 +"
70 +
71 +S=${WORKDIR}/${MY_P}
72 +
73 +src_configure() {
74 + configuration() {
75 + local myconf=(
76 + "${PYTHON}"
77 + "${S}"/configure.py
78 + --qmake="$(qt5_get_bindir)"/qmake
79 + $(usex debug '--debug --trace' '')
80 + --verbose
81 + )
82 + echo "${myconf[@]}"
83 + "${myconf[@]}" || die
84 +
85 + # Fix parallel install failure
86 + sed -i -e '/INSTALLS += distinfo/i distinfo.depends = install_subtargets install_pep484_stubs install_api' \
87 + ${PN}.pro || die
88 +
89 + # Run eqmake to respect toolchain and build flags
90 + eqmake5 -recursive ${PN}.pro
91 + }
92 + python_foreach_impl run_in_build_dir configuration
93 +}
94 +
95 +src_compile() {
96 + python_foreach_impl run_in_build_dir default
97 +}
98 +
99 +src_install() {
100 + installation() {
101 + emake INSTALL_ROOT="${D}" install
102 + python_optimize
103 + }
104 + python_foreach_impl run_in_build_dir installation
105 +
106 + einstalldocs
107 +}