Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-python/PyQt4/, dev-python/PyQt4/files/
Date: Tue, 10 Jun 2014 08:07:04
Message-Id: 1402387569.c4fb1a83d92d4187f147c7b2e3edbb71cf36d99c.kensington@gentoo
1 commit: c4fb1a83d92d4187f147c7b2e3edbb71cf36d99c
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 10 08:06:09 2014 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 10 08:06:09 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=c4fb1a83
7
8 [dev-python/PyQt4] Remove old snapshot.
9
10 ---
11 dev-python/PyQt4/Manifest | 1 -
12 dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild | 211 ------------------
13 .../files/PyQt4-4.7.3-qreal_float_support.patch | 239 ---------------------
14 dev-python/PyQt4/metadata.xml | 29 ---
15 4 files changed, 480 deletions(-)
16
17 diff --git a/dev-python/PyQt4/Manifest b/dev-python/PyQt4/Manifest
18 deleted file mode 100644
19 index 3bbadd1..0000000
20 --- a/dev-python/PyQt4/Manifest
21 +++ /dev/null
22 @@ -1 +0,0 @@
23 -DIST PyQt-x11-gpl-snapshot-4.10.2-6f54723ef2ba.tar.gz 11462772 SHA256 bbcf488599dfde14d621204a6081aedbd988771a98eec2a1151864cc90ee9c3f SHA512 56a0fb1363a5df6a4d761f7056f86469e4135cb71db01180966b26601e1edd9c9f00d7608fdeabf1938f9b4b34c19c9f37315dc55f02b8eda60c8e9a441b08cd WHIRLPOOL 790c28b669b27dfa56396049c2e6d91d049099a6b30bed3ae86e51ab71cbcf6c48f954dc2e909a34f9ec3ba08cb78c4f67ad20e5bcb40d676e39133bf5fe9557
24
25 diff --git a/dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild b/dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild
26 deleted file mode 100644
27 index 5660ecf..0000000
28 --- a/dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild
29 +++ /dev/null
30 @@ -1,211 +0,0 @@
31 -# Copyright 1999-2014 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.10.3-r3.ebuild,v 1.2 2014/05/21 21:29:32 pesa Exp $
34 -
35 -EAPI=5
36 -PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
37 -REVISION=6f54723ef2ba
38 -
39 -inherit eutils multibuild python-r1 qmake-utils toolchain-funcs
40 -
41 -DESCRIPTION="Python bindings for the Qt toolkit"
42 -HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ https://pypi.python.org/pypi/PyQt4"
43 -
44 -if [[ ${PV} == *_pre* ]]; then
45 - MY_P="PyQt-x11-gpl-snapshot-${PV%_pre*}-${REVISION}"
46 - SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.gz"
47 -else
48 - MY_P="PyQt-x11-gpl-${PV}"
49 - SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
50 -fi
51 -
52 -LICENSE="|| ( GPL-2 GPL-3 )"
53 -SLOT="0"
54 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
55 -
56 -IUSE="X dbus debug declarative designer doc examples help kde multimedia opengl phonon script scripttools sql svg webkit xmlpatterns"
57 -REQUIRED_USE="
58 - ${PYTHON_REQUIRED_USE}
59 - declarative? ( X )
60 - designer? ( X )
61 - help? ( X )
62 - multimedia? ( X )
63 - opengl? ( X )
64 - phonon? ( X )
65 - scripttools? ( X script )
66 - sql? ( X )
67 - svg? ( X )
68 - webkit? ( X )
69 -"
70 -
71 -# Minimal supported version of Qt.
72 -QT_PV="4.8.0:4"
73 -
74 -RDEPEND="
75 - ${PYTHON_DEPS}
76 - >=dev-python/sip-4.15.0:=[${PYTHON_USEDEP}]
77 - >=dev-qt/qtcore-${QT_PV}
78 - X? (
79 - >=dev-qt/qtgui-${QT_PV}
80 - >=dev-qt/qttest-${QT_PV}
81 - )
82 - dbus? (
83 - >=dev-python/dbus-python-0.80[${PYTHON_USEDEP}]
84 - >=dev-qt/qtdbus-${QT_PV}
85 - )
86 - declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
87 - designer? ( || ( dev-qt/designer:4 <dev-qt/qtgui-4.8.5:4 ) )
88 - help? ( >=dev-qt/qthelp-${QT_PV} )
89 - multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
90 - opengl? ( >=dev-qt/qtopengl-${QT_PV} )
91 - phonon? (
92 - kde? ( media-libs/phonon )
93 - !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} media-libs/phonon ) )
94 - )
95 - script? ( >=dev-qt/qtscript-${QT_PV} )
96 - sql? ( >=dev-qt/qtsql-${QT_PV} )
97 - svg? ( >=dev-qt/qtsvg-${QT_PV} )
98 - webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
99 - xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
100 -"
101 -DEPEND="${RDEPEND}
102 - dbus? ( virtual/pkgconfig )
103 -"
104 -
105 -S=${WORKDIR}/${MY_P}
106 -
107 -src_prepare() {
108 - # Support qreal on arm architecture (bug 322349).
109 - use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
110 -
111 - # Allow building against KDE's phonon (bug 433944 and others).
112 - sed -i \
113 - -e "s:VideoWidget()\":&, extra_include_dirs=[\"${EPREFIX}/usr/include/qt4/QtGui\"]:" \
114 - -e "s:^\s\+generate_code(\"phonon\":&, extra_include_dirs=[\"${EPREFIX}/usr/include/phonon\"]:" \
115 - configure.py || die
116 -
117 - if ! use dbus; then
118 - sed -i -e 's/^\(\s\+\)check_dbus()/\1pass/' configure.py || die
119 - fi
120 -
121 - python_copy_sources
122 -
123 - preparation() {
124 - if [[ ${EPYTHON} == python3.* ]]; then
125 - rm -fr pyuic/uic/port_v2
126 - else
127 - rm -fr pyuic/uic/port_v3
128 - fi
129 - }
130 - python_foreach_impl run_in_build_dir preparation
131 -}
132 -
133 -pyqt4_use_enable() {
134 - use $1 && echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}}
135 -}
136 -
137 -src_configure() {
138 - configuration() {
139 - local myconf=(
140 - "${PYTHON}" configure.py
141 - --confirm-license
142 - --bindir="${EPREFIX}/usr/bin"
143 - --destdir="$(python_get_sitedir)"
144 - --sipdir="${EPREFIX}/usr/share/sip"
145 - --assume-shared
146 - --no-timestamp
147 - --qsci-api
148 - $(use debug && echo --debug)
149 - --enable=QtCore
150 - --enable=QtNetwork
151 - --enable=QtXml
152 - $(pyqt4_use_enable X QtGui)
153 - $(pyqt4_use_enable X QtTest)
154 - $(pyqt4_use_enable dbus QtDBus)
155 - $(pyqt4_use_enable declarative)
156 - $(pyqt4_use_enable designer) $(use designer || echo --no-designer-plugin)
157 - $(pyqt4_use_enable help)
158 - $(pyqt4_use_enable multimedia)
159 - $(pyqt4_use_enable opengl QtOpenGL)
160 - $(pyqt4_use_enable phonon phonon)
161 - $(pyqt4_use_enable script)
162 - $(pyqt4_use_enable scripttools QtScriptTools)
163 - $(pyqt4_use_enable sql)
164 - $(pyqt4_use_enable svg)
165 - $(pyqt4_use_enable webkit QtWebKit)
166 - $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
167 - AR="$(tc-getAR) cqs"
168 - CC="$(tc-getCC)"
169 - CFLAGS="${CFLAGS}"
170 - CFLAGS_RELEASE=
171 - CXX="$(tc-getCXX)"
172 - CXXFLAGS="${CXXFLAGS}"
173 - CXXFLAGS_RELEASE=
174 - LINK="$(tc-getCXX)"
175 - LINK_SHLIB="$(tc-getCXX)"
176 - LFLAGS="${LDFLAGS}"
177 - LFLAGS_RELEASE=
178 - RANLIB=
179 - STRIP=
180 - )
181 - echo "${myconf[@]}"
182 - "${myconf[@]}" || die
183 -
184 - local mod
185 - for mod in QtCore \
186 - $(use X && echo QtGui) \
187 - $(use dbus && echo QtDBus) \
188 - $(use declarative && echo QtDeclarative) \
189 - $(use designer && echo QtDesigner) \
190 - $(use opengl && echo QtOpenGL); do
191 - # Run eqmake4 inside the qpy subdirectories to respect
192 - # CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS and avoid stripping.
193 - pushd qpy/${mod} > /dev/null || return
194 - eqmake4 $(ls w_qpy*.pro)
195 - popd > /dev/null || return
196 -
197 - # Fix insecure runpaths.
198 - sed -i -e "/^LFLAGS\s*=/ s:-Wl,-rpath,${BUILD_DIR}/qpy/${mod}::" \
199 - ${mod}/Makefile || die "failed to fix rpath for ${mod}"
200 - done
201 -
202 - # Avoid stripping of libpythonplugin.so.
203 - if use designer; then
204 - pushd designer > /dev/null || return
205 - eqmake4 python.pro
206 - popd > /dev/null || return
207 - fi
208 - }
209 - python_parallel_foreach_impl run_in_build_dir configuration
210 -}
211 -
212 -src_compile() {
213 - python_foreach_impl run_in_build_dir default
214 -}
215 -
216 -src_install() {
217 - installation() {
218 - local tmp_root=${D%/}/tmp
219 -
220 - # INSTALL_ROOT is used by designer/Makefile, other Makefiles use DESTDIR.
221 - emake DESTDIR="${tmp_root}" INSTALL_ROOT="${tmp_root}" install
222 -
223 - python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4
224 - rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die
225 -
226 - multibuild_merge_root "${tmp_root}" "${D}"
227 - python_optimize
228 - }
229 - python_foreach_impl run_in_build_dir installation
230 -
231 - dodoc NEWS THANKS
232 -
233 - if use doc; then
234 - dohtml -r doc/html/*
235 - fi
236 -
237 - if use examples; then
238 - insinto /usr/share/doc/${PF}
239 - doins -r examples
240 - fi
241 -}
242
243 diff --git a/dev-python/PyQt4/files/PyQt4-4.7.3-qreal_float_support.patch b/dev-python/PyQt4/files/PyQt4-4.7.3-qreal_float_support.patch
244 deleted file mode 100644
245 index 37e1e69..0000000
246 --- a/dev-python/PyQt4/files/PyQt4-4.7.3-qreal_float_support.patch
247 +++ /dev/null
248 @@ -1,239 +0,0 @@
249 -#! /bin/sh /usr/share/dpatch/dpatch-run
250 -## 03_qreal_float_support.dpatch by Michael Casadevall <sonicmctails@×××××.com>
251 -##
252 -## DP: Corrects a configure test, and adds explicate double handling
253 -## to qlist.sip on architectures where qreal != double
254 -
255 -@DPATCH@
256 -Index: python-qt4-4.7.2/sip/QtCore/qlist.sip
257 -===================================================================
258 ---- python-qt4-4.7.2.orig/sip/QtCore/qlist.sip 2010-03-17 19:29:26.000000000 +0100
259 -+++ python-qt4-4.7.2/sip/QtCore/qlist.sip 2010-03-25 23:53:55.468631945 +0100
260 -@@ -749,3 +749,227 @@
261 - return sipGetState(sipTransferObj);
262 - %End
263 - };
264 -+
265 -+// If we're on an architecture where qreal != double, then we need to also
266 -+// explicately handle doubles. On architectures where qreal == double, they
267 -+// will automaticially be cast upwards
268 -+
269 -+%If (!PyQt_qreal_double)
270 -+
271 -+%If (Qt_4_3_0 -)
272 -+// QList<QPair<double, double> > is implemented as a Python list of 2-element tuples.
273 -+%MappedType QList<QPair<double, double> >
274 -+{
275 -+%TypeHeaderCode
276 -+#include <qlist.h>
277 -+#include <qpair.h>
278 -+%End
279 -+
280 -+%ConvertFromTypeCode
281 -+ // Create the list.
282 -+ PyObject *l;
283 -+
284 -+ if ((l = PyList_New(sipCpp->size())) == NULL)
285 -+ return NULL;
286 -+
287 -+ // Set the list elements.
288 -+ for (int i = 0; i < sipCpp->size(); ++i)
289 -+ {
290 -+ const QPair<double, double> &p = sipCpp->at(i);
291 -+ PyObject *pobj;
292 -+
293 -+ if ((pobj = Py_BuildValue((char *)"dd", p.first, p.second)) == NULL)
294 -+ {
295 -+ Py_DECREF(l);
296 -+
297 -+ return NULL;
298 -+ }
299 -+
300 -+ PyList_SET_ITEM(l, i, pobj);
301 -+ }
302 -+
303 -+ return l;
304 -+%End
305 -+
306 -+%ConvertToTypeCode
307 -+ SIP_SSIZE_T len;
308 -+
309 -+ // Check the type if that is all that is required.
310 -+ if (sipIsErr == NULL)
311 -+ {
312 -+ if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
313 -+ return 0;
314 -+
315 -+ for (SIP_SSIZE_T i = 0; i < len; ++i)
316 -+ {
317 -+ PyObject *tup = PySequence_ITEM(sipPy, i);
318 -+
319 -+ if (!PySequence_Check(tup) || PySequence_Size(tup) != 2)
320 -+ return 0;
321 -+ }
322 -+
323 -+ return 1;
324 -+ }
325 -+
326 -+ QList<QPair<double, double> > *ql = new QList<QPair<double, double> >;
327 -+ len = PySequence_Size(sipPy);
328 -+
329 -+ for (SIP_SSIZE_T i = 0; i < len; ++i)
330 -+ {
331 -+ PyObject *tup = PySequence_ITEM(sipPy, i);
332 -+
333 -+ double first = PyFloat_AsDouble(PySequence_ITEM(tup, 0));
334 -+ double second = PyFloat_AsDouble(PySequence_ITEM(tup, 1));
335 -+
336 -+ ql->append(QPair<double, double>(first, second));
337 -+ }
338 -+
339 -+ *sipCppPtr = ql;
340 -+
341 -+ return sipGetState(sipTransferObj);
342 -+%End
343 -+};
344 -+%End
345 -+%If (Qt_4_3_0 -)
346 -+// QList<QPair<double, TYPE> > is implemented as a Python list of 2-element tuples.
347 -+template<double, TYPE>
348 -+%MappedType QList<QPair<double, TYPE> >
349 -+{
350 -+%TypeHeaderCode
351 -+#include <qlist.h>
352 -+#include <qpair.h>
353 -+%End
354 -+
355 -+%ConvertFromTypeCode
356 -+ // Create the list.
357 -+ PyObject *l;
358 -+
359 -+ if ((l = PyList_New(sipCpp->size())) == NULL)
360 -+ return NULL;
361 -+
362 -+ // Set the list elements.
363 -+ for (int i = 0; i < sipCpp->size(); ++i)
364 -+ {
365 -+ const QPair<double, TYPE> &p = sipCpp->at(i);
366 -+ TYPE *t = new TYPE(p.second);
367 -+ PyObject *pobj;
368 -+
369 -+ if ((pobj = sipBuildResult(NULL, "(dB)", p.first, t, sipClass_TYPE, sipTransferObj)) == NULL)
370 -+ {
371 -+ Py_DECREF(l);
372 -+ delete t;
373 -+
374 -+ return NULL;
375 -+ }
376 -+
377 -+ PyList_SET_ITEM(l, i, pobj);
378 -+ }
379 -+
380 -+ return l;
381 -+%End
382 -+
383 -+%ConvertToTypeCode
384 -+ SIP_SSIZE_T len;
385 -+
386 -+ // Check the type if that is all that is required.
387 -+ if (sipIsErr == NULL)
388 -+ {
389 -+ if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
390 -+ return 0;
391 -+
392 -+ for (SIP_SSIZE_T i = 0; i < len; ++i)
393 -+ {
394 -+ PyObject *tup = PySequence_ITEM(sipPy, i);
395 -+
396 -+ if (!PySequence_Check(tup) || PySequence_Size(tup) != 2)
397 -+ return 0;
398 -+
399 -+ if (!sipCanConvertToInstance(PySequence_ITEM(tup, 1), sipClass_TYPE, SIP_NOT_NONE))
400 -+ return 0;
401 -+ }
402 -+
403 -+ return 1;
404 -+ }
405 -+
406 -+ QList<QPair<double, TYPE> > *ql = new QList<QPair<double, TYPE> >;
407 -+ len = PySequence_Size(sipPy);
408 -+
409 -+ for (SIP_SSIZE_T i = 0; i < len; ++i)
410 -+ {
411 -+ PyObject *tup = PySequence_ITEM(sipPy, i);
412 -+ double d;
413 -+ int state;
414 -+
415 -+ d = PyFloat_AsDouble(PySequence_ITEM(tup, 0));
416 -+ TYPE *t = reinterpret_cast<TYPE *>(sipConvertToInstance(PySequence_ITEM(tup, 1), sipClass_TYPE, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
417 -+
418 -+ if (*sipIsErr)
419 -+ {
420 -+ sipReleaseInstance(t, sipClass_TYPE, state);
421 -+
422 -+ delete ql;
423 -+ return 0;
424 -+ }
425 -+
426 -+ ql->append(QPair<double, TYPE>(d, *t));
427 -+
428 -+ sipReleaseInstance(t, sipClass_TYPE, state);
429 -+ }
430 -+
431 -+ *sipCppPtr = ql;
432 -+
433 -+ return sipGetState(sipTransferObj);
434 -+%End
435 -+};
436 -+%End
437 -+
438 -+// QList<double> is implemented as a Python list of doubles.
439 -+%MappedType QList<double>
440 -+{
441 -+%TypeHeaderCode
442 -+#include <qlist.h>
443 -+%End
444 -+
445 -+%ConvertFromTypeCode
446 -+ // Create the list.
447 -+ PyObject *l;
448 -+
449 -+ if ((l = PyList_New(sipCpp->size())) == NULL)
450 -+ return NULL;
451 -+
452 -+ // Set the list elements.
453 -+ for (int i = 0; i < sipCpp->size(); ++i)
454 -+ {
455 -+ PyObject *pobj;
456 -+
457 -+ if ((pobj = PyFloat_FromDouble(sipCpp->value(i))) == NULL)
458 -+ {
459 -+ Py_DECREF(l);
460 -+
461 -+ return NULL;
462 -+ }
463 -+
464 -+ PyList_SET_ITEM(l, i, pobj);
465 -+ }
466 -+
467 -+ return l;
468 -+%End
469 -+
470 -+%ConvertToTypeCode
471 -+ // Check the type if that is all that is required.
472 -+ if (sipIsErr == NULL)
473 -+ return (PySequence_Check(sipPy) && PySequence_Size(sipPy) >= 0);
474 -+
475 -+ QList<double> *ql = new QList<double>;
476 -+ SIP_SSIZE_T len = PySequence_Size(sipPy);
477 -+
478 -+ for (SIP_SSIZE_T i = 0; i < len; ++i)
479 -+ ql->append(PyFloat_AsDouble(PySequence_ITEM(sipPy, i)));
480 -+
481 -+ *sipCppPtr = ql;
482 -+
483 -+ return sipGetState(sipTransferObj);
484 -+%End
485 -+};
486 -+
487 -+%End
488
489 diff --git a/dev-python/PyQt4/metadata.xml b/dev-python/PyQt4/metadata.xml
490 deleted file mode 100644
491 index 02d3937..0000000
492 --- a/dev-python/PyQt4/metadata.xml
493 +++ /dev/null
494 @@ -1,29 +0,0 @@
495 -<?xml version="1.0" encoding="UTF-8"?>
496 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
497 -<pkgmetadata>
498 - <herd>qt</herd>
499 - <use>
500 - <flag name="X">Build QtGui and QtTest modules</flag>
501 - <flag name="declarative">Build QtDeclarative module</flag>
502 - <flag name="designer">Build QtDesigner module</flag>
503 - <flag name="help">Build QtHelp module</flag>
504 - <flag name="kde">Select <pkg>media-libs/phonon</pkg> as Phonon variant (needed for KDE)</flag>
505 - <flag name="multimedia">Build QtMultimedia module</flag>
506 - <flag name="opengl">Build QtOpenGL module</flag>
507 - <flag name="phonon">Build phonon module</flag>
508 - <flag name="script">Build QtScript module</flag>
509 - <flag name="scripttools">Build QtScriptTools module</flag>
510 - <flag name="sql">Build QtSql module</flag>
511 - <flag name="svg">Build QtSvg module</flag>
512 - <flag name="webkit">Build QtWebKit module</flag>
513 - <flag name="xmlpatterns">Build QtXmlPatterns module</flag>
514 - </use>
515 - <upstream>
516 - <maintainer status="active">
517 - <email>phil@××××××××××××××××××.com</email>
518 - <name>Phil Thompson</name>
519 - </maintainer>
520 - <bugs-to>mailto:pyqt@××××××××××××××××××.com</bugs-to>
521 - <remote-id type="pypi">PyQt4</remote-id>
522 - </upstream>
523 -</pkgmetadata>