Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-python/PyQt4/, dev-python/sip/files/, dev-python/sip/
Date: Wed, 21 May 2014 21:50:16
Message-Id: 1400708955.591e84b6611409f879db853adbe79806b797b9fe.pesa@gentoo
1 commit: 591e84b6611409f879db853adbe79806b797b9fe
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 21 21:49:15 2014 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Wed May 21 21:49:15 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=591e84b6
7
8 [sip/PyQt4] Sync with portage (but the snapshots are still very old...)
9
10 ---
11 dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild | 33 +++++++++++++-----------
12 dev-python/PyQt4/metadata.xml | 6 ++---
13 dev-python/sip/files/sip-4.15.5-darwin.patch | 30 +++++++++++++++++++++
14 dev-python/sip/metadata.xml | 1 -
15 dev-python/sip/sip-4.9999.ebuild | 6 ++---
16 5 files changed, 54 insertions(+), 22 deletions(-)
17
18 diff --git a/dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild b/dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild
19 index 6c3eff7..5660ecf 100644
20 --- a/dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild
21 +++ b/dev-python/PyQt4/PyQt4-4.10.2_pre20130505.ebuild
22 @@ -1,15 +1,15 @@
23 # Copyright 1999-2014 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.10.3-r1.ebuild,v 1.1 2013/10/23 10:14:55 mgorny Exp $
26 +# $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 $
27
28 EAPI=5
29 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
30 REVISION=6f54723ef2ba
31
32 -inherit eutils qt4-r2 python-r1 toolchain-funcs
33 +inherit eutils multibuild python-r1 qmake-utils toolchain-funcs
34
35 DESCRIPTION="Python bindings for the Qt toolkit"
36 -HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
37 +HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ https://pypi.python.org/pypi/PyQt4"
38
39 if [[ ${PV} == *_pre* ]]; then
40 MY_P="PyQt-x11-gpl-snapshot-${PV%_pre*}-${REVISION}"
41 @@ -23,10 +23,11 @@ LICENSE="|| ( GPL-2 GPL-3 )"
42 SLOT="0"
43 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
44
45 -IUSE="X dbus debug declarative doc examples help kde multimedia opengl phonon script scripttools sql svg webkit xmlpatterns"
46 +IUSE="X dbus debug declarative designer doc examples help kde multimedia opengl phonon script scripttools sql svg webkit xmlpatterns"
47 REQUIRED_USE="
48 ${PYTHON_REQUIRED_USE}
49 declarative? ( X )
50 + designer? ( X )
51 help? ( X )
52 multimedia? ( X )
53 opengl? ( X )
54 @@ -42,12 +43,10 @@ QT_PV="4.8.0:4"
55
56 RDEPEND="
57 ${PYTHON_DEPS}
58 - dev-python/python-exec:2[${PYTHON_USEDEP}]
59 >=dev-python/sip-4.15.0:=[${PYTHON_USEDEP}]
60 >=dev-qt/qtcore-${QT_PV}
61 X? (
62 >=dev-qt/qtgui-${QT_PV}
63 - || ( dev-qt/designer:4 <dev-qt/qtgui-4.8.5:4 )
64 >=dev-qt/qttest-${QT_PV}
65 )
66 dbus? (
67 @@ -55,6 +54,7 @@ RDEPEND="
68 >=dev-qt/qtdbus-${QT_PV}
69 )
70 declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
71 + designer? ( || ( dev-qt/designer:4 <dev-qt/qtgui-4.8.5:4 ) )
72 help? ( >=dev-qt/qthelp-${QT_PV} )
73 multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
74 opengl? ( >=dev-qt/qtopengl-${QT_PV} )
75 @@ -75,8 +75,6 @@ DEPEND="${RDEPEND}
76 S=${WORKDIR}/${MY_P}
77
78 src_prepare() {
79 - qt4-r2_src_prepare
80 -
81 # Support qreal on arm architecture (bug 322349).
82 use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
83
84 @@ -121,11 +119,11 @@ src_configure() {
85 --enable=QtCore
86 --enable=QtNetwork
87 --enable=QtXml
88 - $(pyqt4_use_enable X QtDesigner) $(use X || echo --no-designer-plugin)
89 $(pyqt4_use_enable X QtGui)
90 $(pyqt4_use_enable X QtTest)
91 $(pyqt4_use_enable dbus QtDBus)
92 $(pyqt4_use_enable declarative)
93 + $(pyqt4_use_enable designer) $(use designer || echo --no-designer-plugin)
94 $(pyqt4_use_enable help)
95 $(pyqt4_use_enable multimedia)
96 $(pyqt4_use_enable opengl QtOpenGL)
97 @@ -155,9 +153,10 @@ src_configure() {
98
99 local mod
100 for mod in QtCore \
101 - $(use X && echo QtDesigner QtGui) \
102 + $(use X && echo QtGui) \
103 $(use dbus && echo QtDBus) \
104 $(use declarative && echo QtDeclarative) \
105 + $(use designer && echo QtDesigner) \
106 $(use opengl && echo QtOpenGL); do
107 # Run eqmake4 inside the qpy subdirectories to respect
108 # CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS and avoid stripping.
109 @@ -171,7 +170,7 @@ src_configure() {
110 done
111
112 # Avoid stripping of libpythonplugin.so.
113 - if use X; then
114 + if use designer; then
115 pushd designer > /dev/null || return
116 eqmake4 python.pro
117 popd > /dev/null || return
118 @@ -186,15 +185,19 @@ src_compile() {
119
120 src_install() {
121 installation() {
122 + local tmp_root=${D%/}/tmp
123 +
124 # INSTALL_ROOT is used by designer/Makefile, other Makefiles use DESTDIR.
125 - emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
126 - mkdir -p "${ED}"/usr/lib/python-exec/${EPYTHON} || die
127 - mv "${ED}"/usr/bin/pyuic4 "${ED}"/usr/lib/python-exec/${EPYTHON}/ || die
128 + emake DESTDIR="${tmp_root}" INSTALL_ROOT="${tmp_root}" install
129 +
130 + python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4
131 + rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die
132 +
133 + multibuild_merge_root "${tmp_root}" "${D}"
134 python_optimize
135 }
136 python_foreach_impl run_in_build_dir installation
137
138 - dosym ../lib/python-exec/python-exec2 /usr/bin/pyuic4
139 dodoc NEWS THANKS
140
141 if use doc; then
142
143 diff --git a/dev-python/PyQt4/metadata.xml b/dev-python/PyQt4/metadata.xml
144 index 8d6135d..02d3937 100644
145 --- a/dev-python/PyQt4/metadata.xml
146 +++ b/dev-python/PyQt4/metadata.xml
147 @@ -2,10 +2,10 @@
148 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
149 <pkgmetadata>
150 <herd>qt</herd>
151 - <herd>python</herd>
152 <use>
153 - <flag name="X">Build QtGui, QtDesigner and QtScriptTools modules</flag>
154 + <flag name="X">Build QtGui and QtTest modules</flag>
155 <flag name="declarative">Build QtDeclarative module</flag>
156 + <flag name="designer">Build QtDesigner module</flag>
157 <flag name="help">Build QtHelp module</flag>
158 <flag name="kde">Select <pkg>media-libs/phonon</pkg> as Phonon variant (needed for KDE)</flag>
159 <flag name="multimedia">Build QtMultimedia module</flag>
160 @@ -24,6 +24,6 @@
161 <name>Phil Thompson</name>
162 </maintainer>
163 <bugs-to>mailto:pyqt@××××××××××××××××××.com</bugs-to>
164 - <remote-id type="pypi">PyQt</remote-id>
165 + <remote-id type="pypi">PyQt4</remote-id>
166 </upstream>
167 </pkgmetadata>
168
169 diff --git a/dev-python/sip/files/sip-4.15.5-darwin.patch b/dev-python/sip/files/sip-4.15.5-darwin.patch
170 new file mode 100644
171 index 0000000..b625d15
172 --- /dev/null
173 +++ b/dev-python/sip/files/sip-4.15.5-darwin.patch
174 @@ -0,0 +1,30 @@
175 +diff -ur sip-4.15.5.orig/siputils.py sip-4.15.5/siputils.py
176 +--- siputils.py 2014-02-21 18:31:35.000000000 +0800
177 ++++ siputils.py 2014-04-01 23:21:41.895036589 +0800
178 +@@ -945,8 +945,6 @@
179 + """
180 + if self.generator in ("MSVC", "MSVC.NET", "MSBUILD", "BMAKE"):
181 + plib = clib + ".lib"
182 +- elif sys.platform == "darwin" and framework:
183 +- plib = "-framework " + clib
184 + else:
185 + plib = "-l" + clib
186 +
187 +@@ -961,8 +959,6 @@
188 + """
189 + if self.generator in ("MSVC", "MSVC.NET", "MSBUILD", "BMAKE"):
190 + prl_name = os.path.join(self.config.qt_lib_dir, clib + ".prl")
191 +- elif sys.platform == "darwin" and framework:
192 +- prl_name = os.path.join(self.config.qt_lib_dir, clib + ".framework", clib + ".prl")
193 + else:
194 + prl_name = os.path.join(self.config.qt_lib_dir, "lib" + clib + ".prl")
195 +
196 +@@ -1633,7 +1629,7 @@
197 + if sys.platform == "win32":
198 + ext = "pyd"
199 + elif sys.platform == "darwin":
200 +- ext = "so"
201 ++ ext = "bundle"
202 + elif sys.platform == "cygwin":
203 + ext = "dll"
204 + else:
205
206 diff --git a/dev-python/sip/metadata.xml b/dev-python/sip/metadata.xml
207 index cbe6e6d..ff3d49f 100644
208 --- a/dev-python/sip/metadata.xml
209 +++ b/dev-python/sip/metadata.xml
210 @@ -2,7 +2,6 @@
211 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
212 <pkgmetadata>
213 <herd>qt</herd>
214 - <herd>python</herd>
215 <upstream>
216 <maintainer status="active">
217 <email>phil@××××××××××××××××××.com</email>
218
219 diff --git a/dev-python/sip/sip-4.9999.ebuild b/dev-python/sip/sip-4.9999.ebuild
220 index b9e8808..1e5d202 100644
221 --- a/dev-python/sip/sip-4.9999.ebuild
222 +++ b/dev-python/sip/sip-4.9999.ebuild
223 @@ -3,7 +3,7 @@
224 # $Header: $
225
226 EAPI=5
227 -PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
228 +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
229
230 inherit eutils python-r1 toolchain-funcs
231
232 @@ -27,7 +27,7 @@ else
233 fi
234
235 # Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h.in
236 -SLOT="0/10"
237 +SLOT="0/11"
238 KEYWORDS=""
239 IUSE="debug doc"
240
241 @@ -44,7 +44,7 @@ RDEPEND="${DEPEND}"
242 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
243
244 src_prepare() {
245 - epatch "${FILESDIR}"/${PN}-4.9.3-darwin.patch
246 + epatch "${FILESDIR}"/${PN}-4.15.5-darwin.patch
247
248 if [[ ${PV} == *9999* ]]; then
249 python2 build.py prepare || die