1 |
commit: eeb517cf2549005ad68175d8105b178633bc8161 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 29 05:37:22 2016 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 29 05:38:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeb517cf |
7 |
|
8 |
dev-python/PyQt5: version bump, added bluetooth/location/webengine support |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/PyQt5/Manifest | 1 + |
13 |
dev-python/PyQt5/PyQt5-5.7.ebuild | 198 +++++++++++++++++++++ |
14 |
dev-python/PyQt5/metadata.xml | 3 + |
15 |
profiles/arch/arm/package.use.mask | 5 + |
16 |
profiles/arch/arm/package.use.stable.mask | 2 +- |
17 |
profiles/arch/powerpc/package.use.mask | 5 + |
18 |
profiles/base/package.use.stable.mask | 4 - |
19 |
profiles/default/linux/uclibc/arm/package.use.mask | 5 + |
20 |
.../linux/uclibc/arm/package.use.stable.mask | 2 +- |
21 |
.../linux/uclibc/arm/package.use.stable.mask | 9 - |
22 |
10 files changed, 219 insertions(+), 15 deletions(-) |
23 |
|
24 |
diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest |
25 |
index 155ff2d..8e06769 100644 |
26 |
--- a/dev-python/PyQt5/Manifest |
27 |
+++ b/dev-python/PyQt5/Manifest |
28 |
@@ -1,2 +1,3 @@ |
29 |
DIST PyQt-gpl-5.5.1.tar.gz 3705749 SHA256 0a70ef94fbffcf674b0dde024aae2a2a7a3f5a8c42806109ff7df2c941bd8386 SHA512 ed9a4f30a50c0879f25b6a0841247f3f0de86942b55c1de9efea963bfbf64ee963a9e5c09be036ff2dec76164863b3b6235e45e8662776425f15378fa0abeab4 WHIRLPOOL 199a36ff1ee3689a76d0aae9d2bee586f9de3a0e3cf23c5b625c1f62b5f19311450afd9d009cbdb4f5be63ba024326c63ff0e6c9ea515216c686db9d8e07bcb3 |
30 |
DIST PyQt5_gpl-5.6.1.dev1604271126.tar.xz 2300884 SHA256 2a9ac535ac921bcd3678e33655bb3842a14f4cf6836eb29f32d0a62335ea061b SHA512 281d48cd8a875c454e970d6cecb0af2a2299f2ea6d062de599736d613c413dbab67072c80a80d490980eacf18bb35819b94255cd5891abbf6e291101bcd5b578 WHIRLPOOL e8255192a318529307b67992cdd12f9c9d4983099c1cece82761140bf3615fc36e1db52a9a795645c8ca93e21b801826802fd1b0fb3cf867c0f80d380a45c279 |
31 |
+DIST PyQt5_gpl-5.7.tar.gz 3729111 SHA256 892693ba5f79989abb2061dad2d5c4e6f127e9dd3240f73f8220c7152cd35b05 SHA512 b22fd40f967776c25de9f5fb37a3308df15599f257e4deab23ec3072d4c8f2dceb8aadc2869d1ab7a5068992e86320969b694cf6da3312ddedae54fd388873ec WHIRLPOOL bddc2f4818a8179020b827572e808f87d64fed3c220903b4d879d76581346728592e4dbf6679cc240c5ac2d736d4b1264de35e770e89dc1b01e41e82e6bf82cd |
32 |
|
33 |
diff --git a/dev-python/PyQt5/PyQt5-5.7.ebuild b/dev-python/PyQt5/PyQt5-5.7.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..2a87ef1 |
36 |
--- /dev/null |
37 |
+++ b/dev-python/PyQt5/PyQt5-5.7.ebuild |
38 |
@@ -0,0 +1,198 @@ |
39 |
+# Copyright 1999-2016 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+# $Id$ |
42 |
+ |
43 |
+EAPI=6 |
44 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
45 |
+ |
46 |
+inherit multibuild python-r1 qmake-utils |
47 |
+ |
48 |
+DESCRIPTION="Python bindings for the Qt framework" |
49 |
+HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/intro |
50 |
+ https://pypi.python.org/pypi/PyQt5" |
51 |
+ |
52 |
+MY_P=${PN}_gpl-${PV/_pre/.dev} |
53 |
+if [[ ${PV} == *_pre* ]]; then |
54 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" |
55 |
+else |
56 |
+ SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
57 |
+fi |
58 |
+ |
59 |
+LICENSE="GPL-3" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86" |
62 |
+ |
63 |
+# TODO: QtNfc |
64 |
+IUSE="bluetooth dbus debug declarative designer doc examples gles2 gui help location |
65 |
+ multimedia network opengl positioning printsupport sensors serialport sql svg |
66 |
+ testlib webchannel webengine webkit websockets widgets x11extras xmlpatterns" |
67 |
+ |
68 |
+# The requirements below were extracted from configure.py |
69 |
+# and from the output of 'grep -r "%Import " "${S}"/sip' |
70 |
+REQUIRED_USE=" |
71 |
+ ${PYTHON_REQUIRED_USE} |
72 |
+ bluetooth? ( gui ) |
73 |
+ declarative? ( gui network ) |
74 |
+ designer? ( widgets ) |
75 |
+ help? ( gui widgets ) |
76 |
+ location? ( positioning ) |
77 |
+ multimedia? ( gui network ) |
78 |
+ opengl? ( gui widgets ) |
79 |
+ positioning? ( gui ) |
80 |
+ printsupport? ( gui widgets ) |
81 |
+ sensors? ( gui ) |
82 |
+ serialport? ( gui ) |
83 |
+ sql? ( widgets ) |
84 |
+ svg? ( gui widgets ) |
85 |
+ testlib? ( gui widgets ) |
86 |
+ webchannel? ( network ) |
87 |
+ webengine? ( network widgets? ( webchannel ) ) |
88 |
+ webkit? ( gui network printsupport widgets ) |
89 |
+ websockets? ( network ) |
90 |
+ widgets? ( gui ) |
91 |
+ xmlpatterns? ( network ) |
92 |
+" |
93 |
+ |
94 |
+# Minimal supported version of Qt. |
95 |
+QT_PV="5.6.0:5" |
96 |
+ |
97 |
+RDEPEND=" |
98 |
+ ${PYTHON_DEPS} |
99 |
+ >=dev-python/sip-4.18:=[${PYTHON_USEDEP}] |
100 |
+ >=dev-qt/qtcore-${QT_PV} |
101 |
+ >=dev-qt/qtxml-${QT_PV} |
102 |
+ bluetooth? ( >=dev-qt/qtbluetooth-${QT_PV} ) |
103 |
+ dbus? ( |
104 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
105 |
+ >=dev-qt/qtdbus-${QT_PV} |
106 |
+ ) |
107 |
+ declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] ) |
108 |
+ designer? ( >=dev-qt/designer-${QT_PV} ) |
109 |
+ gui? ( >=dev-qt/qtgui-${QT_PV}[gles2=] ) |
110 |
+ help? ( >=dev-qt/qthelp-${QT_PV} ) |
111 |
+ location? ( >=dev-qt/qtlocation-${QT_PV} ) |
112 |
+ multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] ) |
113 |
+ network? ( >=dev-qt/qtnetwork-${QT_PV} ) |
114 |
+ opengl? ( >=dev-qt/qtopengl-${QT_PV} ) |
115 |
+ positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) |
116 |
+ printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} ) |
117 |
+ sensors? ( >=dev-qt/qtsensors-${QT_PV} ) |
118 |
+ serialport? ( >=dev-qt/qtserialport-${QT_PV} ) |
119 |
+ sql? ( >=dev-qt/qtsql-${QT_PV} ) |
120 |
+ svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
121 |
+ testlib? ( >=dev-qt/qttest-${QT_PV} ) |
122 |
+ webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) |
123 |
+ webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] ) |
124 |
+ webkit? ( >=dev-qt/qtwebkit-${QT_PV}[printsupport] ) |
125 |
+ websockets? ( >=dev-qt/qtwebsockets-${QT_PV} ) |
126 |
+ widgets? ( >=dev-qt/qtwidgets-${QT_PV} ) |
127 |
+ x11extras? ( >=dev-qt/qtx11extras-${QT_PV} ) |
128 |
+ xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) |
129 |
+" |
130 |
+DEPEND="${RDEPEND} |
131 |
+ dbus? ( virtual/pkgconfig ) |
132 |
+" |
133 |
+ |
134 |
+S=${WORKDIR}/${MY_P} |
135 |
+ |
136 |
+DOCS=( "${S}"/{ChangeLog,NEWS} ) |
137 |
+ |
138 |
+pyqt_use_enable() { |
139 |
+ use "$1" || return |
140 |
+ |
141 |
+ if [[ $# -eq 1 ]]; then |
142 |
+ echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1} |
143 |
+ else |
144 |
+ shift |
145 |
+ echo ${@/#/--enable=} |
146 |
+ fi |
147 |
+} |
148 |
+ |
149 |
+src_configure() { |
150 |
+ configuration() { |
151 |
+ local myconf=( |
152 |
+ "${PYTHON}" |
153 |
+ "${S}"/configure.py |
154 |
+ $(usex debug '--debug --trace' '') |
155 |
+ --verbose |
156 |
+ --confirm-license |
157 |
+ --qmake="$(qt5_get_bindir)"/qmake |
158 |
+ --bindir="${EPREFIX}/usr/bin" |
159 |
+ --destdir="$(python_get_sitedir)" |
160 |
+ --sip-incdir="$(python_get_includedir)" |
161 |
+ --qsci-api |
162 |
+ --enable=QtCore |
163 |
+ --enable=QtXml |
164 |
+ $(pyqt_use_enable bluetooth) |
165 |
+ $(pyqt_use_enable dbus QtDBus) |
166 |
+ $(usex dbus '' --no-python-dbus) |
167 |
+ $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets '')) |
168 |
+ $(usex declarative '' --no-qml-plugin) |
169 |
+ $(pyqt_use_enable designer) |
170 |
+ $(usex designer '' --no-designer-plugin) |
171 |
+ $(pyqt_use_enable gui) |
172 |
+ $(pyqt_use_enable gui $(use gles2 && echo _QOpenGLFunctions_ES2 || echo _QOpenGLFunctions_{2_0,2_1,4_1_Core})) |
173 |
+ $(pyqt_use_enable help) |
174 |
+ $(pyqt_use_enable location) |
175 |
+ $(pyqt_use_enable multimedia QtMultimedia $(usex widgets QtMultimediaWidgets '')) |
176 |
+ $(pyqt_use_enable network) |
177 |
+ $(pyqt_use_enable opengl QtOpenGL) |
178 |
+ $(pyqt_use_enable positioning) |
179 |
+ $(pyqt_use_enable printsupport QtPrintSupport) |
180 |
+ $(pyqt_use_enable sensors) |
181 |
+ $(pyqt_use_enable serialport QtSerialPort) |
182 |
+ $(pyqt_use_enable sql) |
183 |
+ $(pyqt_use_enable svg) |
184 |
+ $(pyqt_use_enable testlib QtTest) |
185 |
+ $(pyqt_use_enable webchannel QtWebChannel) |
186 |
+ $(pyqt_use_enable webengine QtWebEngineCore $(usex widgets QtWebEngineWidgets '')) |
187 |
+ $(pyqt_use_enable webkit QtWebKit QtWebKitWidgets) |
188 |
+ $(pyqt_use_enable websockets QtWebSockets) |
189 |
+ $(pyqt_use_enable widgets) |
190 |
+ $(pyqt_use_enable x11extras QtX11Extras) |
191 |
+ $(pyqt_use_enable xmlpatterns QtXmlPatterns) |
192 |
+ ) |
193 |
+ echo "${myconf[@]}" |
194 |
+ "${myconf[@]}" || die |
195 |
+ |
196 |
+ eqmake5 -recursive ${PN}.pro |
197 |
+ } |
198 |
+ python_foreach_impl run_in_build_dir configuration |
199 |
+} |
200 |
+ |
201 |
+src_compile() { |
202 |
+ python_foreach_impl run_in_build_dir default |
203 |
+} |
204 |
+ |
205 |
+src_install() { |
206 |
+ installation() { |
207 |
+ local tmp_root=${D%/}/tmp |
208 |
+ emake INSTALL_ROOT="${tmp_root}" install |
209 |
+ |
210 |
+ local bin_dir=${tmp_root}${EPREFIX}/usr/bin |
211 |
+ local exe |
212 |
+ for exe in pylupdate5 pyrcc5 pyuic5; do |
213 |
+ python_doexe "${bin_dir}/${exe}" |
214 |
+ rm "${bin_dir}/${exe}" || die |
215 |
+ done |
216 |
+ |
217 |
+ local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic |
218 |
+ if python_is_python3; then |
219 |
+ rm -r "${uic_dir}"/port_v2 || die |
220 |
+ else |
221 |
+ rm -r "${uic_dir}"/port_v3 || die |
222 |
+ fi |
223 |
+ |
224 |
+ multibuild_merge_root "${tmp_root}" "${D}" |
225 |
+ python_optimize |
226 |
+ } |
227 |
+ python_foreach_impl run_in_build_dir installation |
228 |
+ |
229 |
+ einstalldocs |
230 |
+ use doc && dodoc -r doc/html |
231 |
+ |
232 |
+ if use examples; then |
233 |
+ insinto /usr/share/doc/${PF} |
234 |
+ doins -r examples |
235 |
+ fi |
236 |
+} |
237 |
|
238 |
diff --git a/dev-python/PyQt5/metadata.xml b/dev-python/PyQt5/metadata.xml |
239 |
index f623206..6540bb2 100644 |
240 |
--- a/dev-python/PyQt5/metadata.xml |
241 |
+++ b/dev-python/PyQt5/metadata.xml |
242 |
@@ -6,12 +6,14 @@ |
243 |
<name>Gentoo Qt Project</name> |
244 |
</maintainer> |
245 |
<use> |
246 |
+ <flag name="bluetooth">Build bindings for the QtBluetooth module</flag> |
247 |
<flag name="dbus">Build bindings for the QtDBus module</flag> |
248 |
<flag name="declarative">Build bindings for the QtQml/QtQuick modules and enable the qmlscene plugin</flag> |
249 |
<flag name="designer">Build bindings for the QtDesigner module and enable the designer plugin</flag> |
250 |
<flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag> |
251 |
<flag name="gui">Build bindings for the QtGui module</flag> |
252 |
<flag name="help">Build bindings for the QtHelp module</flag> |
253 |
+ <flag name="location">Build bindings for the QtLocation module</flag> |
254 |
<flag name="multimedia">Build bindings for the QtMultimedia module</flag> |
255 |
<flag name="network">Build bindings for the QtNetwork module</flag> |
256 |
<flag name="opengl">Build bindings for the QtOpenGL module</flag> |
257 |
@@ -23,6 +25,7 @@ |
258 |
<flag name="svg">Build bindings for the QtSvg module</flag> |
259 |
<flag name="testlib">Build bindings for the QtTest module</flag> |
260 |
<flag name="webchannel">Build bindings for the QtWebChannel module</flag> |
261 |
+ <flag name="webengine">Build bindings for the QtWebEngine module</flag> |
262 |
<flag name="webkit">Build bindings for the QtWebKit module</flag> |
263 |
<flag name="websockets">Build bindings for the QtWebSockets module</flag> |
264 |
<flag name="widgets">Build bindings for the QtWidgets module</flag> |
265 |
|
266 |
diff --git a/profiles/arch/arm/package.use.mask b/profiles/arch/arm/package.use.mask |
267 |
index 2d05f0b..ed36552 100644 |
268 |
--- a/profiles/arch/arm/package.use.mask |
269 |
+++ b/profiles/arch/arm/package.use.mask |
270 |
@@ -2,6 +2,11 @@ |
271 |
# Distributed under the terms of the GNU General Public License v2 |
272 |
# $Id$ |
273 |
|
274 |
+# Davide Pesavento <pesa@g.o> (28 Jul 2016) |
275 |
+# The corresponding Qt5 modules are not keyworded on arm, and we don't want to |
276 |
+# keyword them solely because of PyQt5 while there are no other in-tree users. |
277 |
+dev-python/PyQt5 location webengine |
278 |
+ |
279 |
# Alexandre Rostovtsev <tetromino@g.o> (28 Jun 2016) |
280 |
# Missing keywords on app-text/gspell - bug #587368 |
281 |
>=app-editors/gedit-3.20 spell |
282 |
|
283 |
diff --git a/profiles/arch/arm/package.use.stable.mask b/profiles/arch/arm/package.use.stable.mask |
284 |
index 4716525..e0afbee 100644 |
285 |
--- a/profiles/arch/arm/package.use.stable.mask |
286 |
+++ b/profiles/arch/arm/package.use.stable.mask |
287 |
@@ -6,7 +6,7 @@ |
288 |
# The corresponding Qt5 modules are not stable on arm, and we don't |
289 |
# want to stabilize them solely because of PyQt5 while there are no |
290 |
# other in-tree users. |
291 |
-dev-python/PyQt5 serialport websockets |
292 |
+dev-python/PyQt5 bluetooth serialport websockets |
293 |
|
294 |
# Ian Delaney <idella4@g.o> (13 Apr 2016) |
295 |
# on behalf of Ilya Tumaykin <itumaykin+gentoo@×××××.com> |
296 |
|
297 |
diff --git a/profiles/arch/powerpc/package.use.mask b/profiles/arch/powerpc/package.use.mask |
298 |
index 7553ef8..b11801c 100644 |
299 |
--- a/profiles/arch/powerpc/package.use.mask |
300 |
+++ b/profiles/arch/powerpc/package.use.mask |
301 |
@@ -2,6 +2,11 @@ |
302 |
# Distributed under the terms of the GNU General Public License v2 |
303 |
# $Id$ |
304 |
|
305 |
+# Davide Pesavento <pesa@g.o> (28 Jul 2016) |
306 |
+# The corresponding Qt5 modules are not keyworded on ppc, and we don't want to |
307 |
+# keyword them solely because of PyQt5 while there are no other in-tree users. |
308 |
+dev-python/PyQt5 bluetooth location webengine |
309 |
+ |
310 |
# Michael Palimaka <kensington@g.o> (07 Jul 2016) |
311 |
# Requires unkeyworded dependencies |
312 |
app-misc/hachoir-metadata kde |
313 |
|
314 |
diff --git a/profiles/base/package.use.stable.mask b/profiles/base/package.use.stable.mask |
315 |
index e4675f9..fd07d63 100644 |
316 |
--- a/profiles/base/package.use.stable.mask |
317 |
+++ b/profiles/base/package.use.stable.mask |
318 |
@@ -37,10 +37,6 @@ dev-lang/python-exec -python_targets_python3_5 |
319 |
=app-office/libreoffice-5.0* gtk3 |
320 |
=app-office/libreoffice-5.1* gtk3 |
321 |
|
322 |
-# Davide Pesavento <pesa@g.o> (26 Aug 2015) |
323 |
-# dev-qt/qtserialport:5 not stable yet, bug 577074 |
324 |
-dev-python/PyQt5 serialport |
325 |
- |
326 |
# Pacho Ramos <pacho@g.o> (15 May 2015) |
327 |
# Version compatible with current ffmpeg is not ready to be stabilized |
328 |
# bug #539212 |
329 |
|
330 |
diff --git a/profiles/default/linux/uclibc/arm/package.use.mask b/profiles/default/linux/uclibc/arm/package.use.mask |
331 |
index 8230b8d..861a3b0 100644 |
332 |
--- a/profiles/default/linux/uclibc/arm/package.use.mask |
333 |
+++ b/profiles/default/linux/uclibc/arm/package.use.mask |
334 |
@@ -2,6 +2,11 @@ |
335 |
# Distributed under the terms of the GNU General Public License v2 |
336 |
# $Id$ |
337 |
|
338 |
+# Davide Pesavento <pesa@g.o> (28 Jul 2016) |
339 |
+# The corresponding Qt5 modules are not keyworded on arm, and we don't want to |
340 |
+# keyword them solely because of PyQt5 while there are no other in-tree users. |
341 |
+dev-python/PyQt5 location webengine |
342 |
+ |
343 |
# Davide Pesavento <pesa@g.o> (13 May 2016) |
344 |
# dev-qt/qtwebengine:5 not keyworded, bug 581478 |
345 |
dev-qt/qt-creator webengine |
346 |
|
347 |
diff --git a/profiles/default/linux/uclibc/arm/package.use.stable.mask b/profiles/default/linux/uclibc/arm/package.use.stable.mask |
348 |
index 6c8b60b..0e99307 100644 |
349 |
--- a/profiles/default/linux/uclibc/arm/package.use.stable.mask |
350 |
+++ b/profiles/default/linux/uclibc/arm/package.use.stable.mask |
351 |
@@ -6,4 +6,4 @@ |
352 |
# The corresponding Qt5 modules are not stable on arm, and we don't |
353 |
# want to stabilize them solely because of PyQt5 while there are no |
354 |
# other in-tree users. |
355 |
-dev-python/PyQt5 serialport websockets |
356 |
+dev-python/PyQt5 bluetooth serialport websockets |
357 |
|
358 |
diff --git a/profiles/hardened/linux/uclibc/arm/package.use.stable.mask b/profiles/hardened/linux/uclibc/arm/package.use.stable.mask |
359 |
deleted file mode 100644 |
360 |
index 6c8b60b..0000000 |
361 |
--- a/profiles/hardened/linux/uclibc/arm/package.use.stable.mask |
362 |
+++ /dev/null |
363 |
@@ -1,9 +0,0 @@ |
364 |
-# Copyright 1999-2016 Gentoo Foundation |
365 |
-# Distributed under the terms of the GNU General Public License v2 |
366 |
-# $Id$ |
367 |
- |
368 |
-# Davide Pesavento <pesa@g.o> (08 Jun 2016) |
369 |
-# The corresponding Qt5 modules are not stable on arm, and we don't |
370 |
-# want to stabilize them solely because of PyQt5 while there are no |
371 |
-# other in-tree users. |
372 |
-dev-python/PyQt5 serialport websockets |