1 |
commit: f825780d71b5783c4f7a3845fa0fb61c68ed0194 |
2 |
Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 21 04:22:05 2019 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 3 01:00:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f825780d |
7 |
|
8 |
dev-python/PyQtWebEngine: new package |
9 |
|
10 |
PyQtWebEngine is a set of Python bindings for Qt WebEngine framework. |
11 |
Before PyQt5-5.12 these bindings were a part of PyQt5. Now it is a |
12 |
separate package. |
13 |
|
14 |
Packages that depended on dev-python/PyQt5[webengine] now must depend on |
15 |
dev-python/PyQtWebEngine. |
16 |
|
17 |
Closes: https://bugs.gentoo.org/679202 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/11432 |
19 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
20 |
Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com> |
21 |
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org> |
22 |
|
23 |
dev-python/PyQtWebEngine/Manifest | 1 + |
24 |
.../PyQtWebEngine/PyQtWebEngine-5.12.1.ebuild | 73 ++++++++++++++++++++++ |
25 |
dev-python/PyQtWebEngine/metadata.xml | 32 ++++++++++ |
26 |
3 files changed, 106 insertions(+) |
27 |
|
28 |
diff --git a/dev-python/PyQtWebEngine/Manifest b/dev-python/PyQtWebEngine/Manifest |
29 |
new file mode 100644 |
30 |
index 00000000000..f8fee855550 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/PyQtWebEngine/Manifest |
33 |
@@ -0,0 +1 @@ |
34 |
+DIST PyQtWebEngine_gpl-5.12.1.tar.gz 42474 BLAKE2B 6cb333d8e429ae6b9f8c20a7486754767639693351605e85c0226ab3f1f065a549d40d69669d91f501fdf2c30346304a547e36b416d275a8bfe4ea621c0633b7 SHA512 2bcb0e4da51de9cfb5128e03c03ada77f2d4b99b0885da910584717681b96759ce4301c325cbbf43602d46746e2d37d81ed62f77dd63b33359fd5fae74d7f010 |
35 |
|
36 |
diff --git a/dev-python/PyQtWebEngine/PyQtWebEngine-5.12.1.ebuild b/dev-python/PyQtWebEngine/PyQtWebEngine-5.12.1.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..3ce48a7c942 |
39 |
--- /dev/null |
40 |
+++ b/dev-python/PyQtWebEngine/PyQtWebEngine-5.12.1.ebuild |
41 |
@@ -0,0 +1,73 @@ |
42 |
+# Copyright 1999-2019 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+ |
47 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
48 |
+inherit python-r1 qmake-utils |
49 |
+ |
50 |
+DESCRIPTION="Python bindings for QtWebEngine" |
51 |
+HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/intro" |
52 |
+ |
53 |
+MY_PN=PyQtWebEngine |
54 |
+MY_P=${MY_PN}_gpl-${PV/_pre/.dev} |
55 |
+if [[ ${PV} == *_pre* ]]; then |
56 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
57 |
+else |
58 |
+ SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" |
59 |
+fi |
60 |
+ |
61 |
+LICENSE="GPL-3" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
64 |
+IUSE="debug" |
65 |
+ |
66 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ ${PYTHON_DEPS} |
70 |
+ >=dev-python/PyQt5-5.12[gui,network,printsupport,webchannel,widgets,${PYTHON_USEDEP}] |
71 |
+ >=dev-python/PyQt5-sip-4.19.14:=[${PYTHON_USEDEP}] |
72 |
+ dev-qt/qtcore:5 |
73 |
+ dev-qt/qtwebengine:5[widgets] |
74 |
+" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ >=dev-python/sip-4.19.14[${PYTHON_USEDEP}] |
77 |
+" |
78 |
+ |
79 |
+S=${WORKDIR}/${MY_P} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ configuration() { |
83 |
+ local myconf=( |
84 |
+ "${PYTHON}" |
85 |
+ "${S}"/configure.py |
86 |
+ --qmake="$(qt5_get_bindir)"/qmake |
87 |
+ $(usex debug '--debug --trace' '') |
88 |
+ --verbose |
89 |
+ ) |
90 |
+ echo "${myconf[@]}" |
91 |
+ "${myconf[@]}" || die |
92 |
+ |
93 |
+ # Fix parallel install failure |
94 |
+ sed -i -e '/INSTALLS += distinfo/i distinfo.depends = install_subtargets' ${MY_PN}.pro || die |
95 |
+ |
96 |
+ # Run eqmake to respect toolchain and build flags |
97 |
+ eqmake5 -recursive ${MY_PN}.pro |
98 |
+ } |
99 |
+ python_foreach_impl run_in_build_dir configuration |
100 |
+} |
101 |
+ |
102 |
+src_compile() { |
103 |
+ python_foreach_impl run_in_build_dir default |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ installation() { |
108 |
+ emake INSTALL_ROOT="${D}" install |
109 |
+ python_optimize |
110 |
+ } |
111 |
+ python_foreach_impl run_in_build_dir installation |
112 |
+ |
113 |
+ einstalldocs |
114 |
+} |
115 |
|
116 |
diff --git a/dev-python/PyQtWebEngine/metadata.xml b/dev-python/PyQtWebEngine/metadata.xml |
117 |
new file mode 100644 |
118 |
index 00000000000..c63098a37ce |
119 |
--- /dev/null |
120 |
+++ b/dev-python/PyQtWebEngine/metadata.xml |
121 |
@@ -0,0 +1,32 @@ |
122 |
+<?xml version="1.0" encoding="UTF-8"?> |
123 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
124 |
+<pkgmetadata> |
125 |
+ <maintainer type="project"> |
126 |
+ <email>qt@g.o</email> |
127 |
+ <name>Gentoo Qt Project</name> |
128 |
+ </maintainer> |
129 |
+ <maintainer type="person"> |
130 |
+ <email>stefan.strogin@×××××.com</email> |
131 |
+ <name>Stefan Strogin</name> |
132 |
+ </maintainer> |
133 |
+ <maintainer type="project"> |
134 |
+ <email>proxy-maint@g.o</email> |
135 |
+ <name>Proxy Maintainers</name> |
136 |
+ </maintainer> |
137 |
+ <longdescription lang="en"> |
138 |
+ PyQtWebEngine is a set of Python bindings for The Qt Company's |
139 |
+ Qt WebEngine libraries. The bindings sit on top of PyQt5 and |
140 |
+ are implemented as a set of three modules. Prior to v5.12 these |
141 |
+ bindings were part of PyQt5 itself. |
142 |
+ </longdescription> |
143 |
+ <upstream> |
144 |
+ <maintainer status="active"> |
145 |
+ <email>phil@××××××××××××××××××.com</email> |
146 |
+ <name>Phil Thompson</name> |
147 |
+ </maintainer> |
148 |
+ <changelog>https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/ChangeLog</changelog> |
149 |
+ <doc>https://www.riverbankcomputing.com/static/Docs/PyQt5/</doc> |
150 |
+ <bugs-to>mailto:pyqt@××××××××××××××××××.com</bugs-to> |
151 |
+ <remote-id type="pypi">PyQtWebEngine</remote-id> |
152 |
+ </upstream> |
153 |
+</pkgmetadata> |