Gentoo Archives: gentoo-commits

From: "Davide Pesavento (pesa)" <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/PyQt4: PyQt4-4.9.4.ebuild ChangeLog PyQt4-4.9.3.ebuild
Date: Mon, 02 Jul 2012 14:09:40
Message-Id: 20120702140925.57D612004B@flycatcher.gentoo.org
1 pesa 12/07/02 14:09:25
2
3 Modified: ChangeLog
4 Added: PyQt4-4.9.4.ebuild
5 Removed: PyQt4-4.9.3.ebuild
6 Log:
7 Version bump.
8
9 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.189 dev-python/PyQt4/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.189&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.189&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.188&r2=1.189
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
21 retrieving revision 1.188
22 retrieving revision 1.189
23 diff -u -r1.188 -r1.189
24 --- ChangeLog 27 Jun 2012 10:36:57 -0000 1.188
25 +++ ChangeLog 2 Jul 2012 14:09:25 -0000 1.189
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-python/PyQt4
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.188 2012/06/27 10:36:57 pesa Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.189 2012/07/02 14:09:25 pesa Exp $
31 +
32 +*PyQt4-4.9.4 (02 Jul 2012)
33 +
34 + 02 Jul 2012; Davide Pesavento <pesa@g.o> +PyQt4-4.9.4.ebuild,
35 + -PyQt4-4.9.3.ebuild:
36 + Version bump.
37
38 *PyQt4-4.9.3 (27 Jun 2012)
39
40
41
42
43 1.1 dev-python/PyQt4/PyQt4-4.9.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.9.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.9.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: PyQt4-4.9.4.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.9.4.ebuild,v 1.1 2012/07/02 14:09:25 pesa Exp $
53
54 EAPI=4
55
56 PYTHON_DEPEND="*"
57 PYTHON_EXPORT_PHASE_FUNCTIONS="1"
58 SUPPORT_PYTHON_ABIS="1"
59 RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
60
61 inherit eutils toolchain-funcs qt4-r2 python
62
63 # Minimal supported version of Qt.
64 QT_VER="4.7.2"
65
66 DESCRIPTION="Python bindings for the Qt toolkit"
67 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
68
69 if [[ ${PV} == *_pre* ]]; then
70 MY_P="PyQt-x11-gpl-snapshot-${PV%_pre*}-${REVISION}"
71 SRC_URI="http://www.gentoo-el.org/~hwoarang/distfiles/${MY_P}.tar.gz"
72 else
73 MY_P="PyQt-x11-gpl-${PV}"
74 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
75 fi
76
77 LICENSE="|| ( GPL-2 GPL-3 )"
78 SLOT="0"
79 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
80 IUSE="X assistant dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
81
82 REQUIRED_USE="
83 assistant? ( X )
84 declarative? ( X )
85 multimedia? ( X )
86 opengl? ( X )
87 phonon? ( X )
88 sql? ( X )
89 svg? ( X )
90 webkit? ( X )
91 "
92
93 RDEPEND="
94 >=dev-python/sip-4.13.3
95 >=x11-libs/qt-core-${QT_VER}:4
96 >=x11-libs/qt-script-${QT_VER}:4
97 X? (
98 >=x11-libs/qt-gui-${QT_VER}:4[dbus?]
99 >=x11-libs/qt-test-${QT_VER}:4
100 )
101 assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
102 dbus? (
103 >=dev-python/dbus-python-0.80
104 >=x11-libs/qt-dbus-${QT_VER}:4
105 )
106 declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
107 multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
108 opengl? (
109 >=x11-libs/qt-opengl-${QT_VER}:4
110 || ( >=x11-libs/qt-opengl-4.8.0:4 <x11-libs/qt-opengl-4.8.0:4[-egl] )
111 )
112 phonon? (
113 !kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) )
114 kde? ( media-libs/phonon )
115 )
116 sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
117 svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
118 webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
119 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )
120 "
121 DEPEND="${RDEPEND}
122 dbus? ( virtual/pkgconfig )
123 "
124
125 S=${WORKDIR}/${MY_P}
126
127 PATCHES=(
128 "${FILESDIR}/${PN}-4.7.2-configure.py.patch"
129 )
130
131 PYTHON_VERSIONED_EXECUTABLES=("/usr/bin/pyuic4")
132
133 src_prepare() {
134 if ! use dbus; then
135 sed -e 's/^\([[:blank:]]\+\)check_dbus()/\1pass/' -i configure.py || die
136 fi
137
138 # Support qreal for arm architecture (bug #322349).
139 use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
140
141 qt4-r2_src_prepare
142
143 # Use proper include directory.
144 sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die
145
146 python_copy_sources
147
148 preparation() {
149 if [[ $(python_get_version -l --major) == 3 ]]; then
150 rm -fr pyuic/uic/port_v2
151 else
152 rm -fr pyuic/uic/port_v3
153 fi
154 }
155 python_execute_function -s preparation
156 }
157
158 pyqt4_use_enable() {
159 use $1 && echo "--enable=${2:-$1}"
160 }
161
162 src_configure() {
163 configuration() {
164 local myconf=("$(PYTHON)"
165 configure.py
166 --confirm-license
167 --bindir="${EPREFIX}/usr/bin"
168 --destdir="${EPREFIX}$(python_get_sitedir)"
169 --sipdir="${EPREFIX}/usr/share/sip"
170 --assume-shared
171 --no-timestamp
172 --qsci-api
173 $(use debug && echo --debug)
174 --enable=QtCore
175 --enable=QtNetwork
176 --enable=QtScript
177 --enable=QtXml
178 $(pyqt4_use_enable X QtGui)
179 $(pyqt4_use_enable X QtDesigner) $(use X || echo --no-designer-plugin)
180 $(pyqt4_use_enable X QtScriptTools)
181 $(pyqt4_use_enable X QtTest)
182 $(pyqt4_use_enable assistant QtHelp)
183 $(pyqt4_use_enable dbus QtDBus)
184 $(pyqt4_use_enable declarative QtDeclarative)
185 $(pyqt4_use_enable multimedia QtMultimedia)
186 $(pyqt4_use_enable opengl QtOpenGL)
187 $(pyqt4_use_enable phonon)
188 $(pyqt4_use_enable sql QtSql)
189 $(pyqt4_use_enable svg QtSvg)
190 $(pyqt4_use_enable webkit QtWebKit)
191 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
192 CC="$(tc-getCC)"
193 CXX="$(tc-getCXX)"
194 LINK="$(tc-getCXX)"
195 LINK_SHLIB="$(tc-getCXX)"
196 CFLAGS="${CFLAGS}"
197 CXXFLAGS="${CXXFLAGS}"
198 LFLAGS="${LDFLAGS}")
199 echo "${myconf[@]}"
200 "${myconf[@]}" || die
201
202 local mod
203 for mod in QtCore \
204 $(use X && echo QtDesigner QtGui) \
205 $(use dbus && echo QtDBus) \
206 $(use declarative && echo QtDeclarative) \
207 $(use opengl && echo QtOpenGL); do
208 # Run eqmake4 inside the qpy subdirectories to respect
209 # CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS and avoid stripping.
210 pushd qpy/${mod} > /dev/null || return 1
211 eqmake4 $(ls w_qpy*.pro)
212 popd > /dev/null || return 1
213
214 # Fix insecure runpaths.
215 sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" \
216 -i ${mod}/Makefile || die "Failed to fix rpath for ${mod}"
217 done
218
219 # Avoid stripping of libpythonplugin.so.
220 if use X; then
221 pushd designer > /dev/null || return 1
222 eqmake4 python.pro
223 popd > /dev/null || return 1
224 fi
225 }
226 python_execute_function -s configuration
227 }
228
229 src_install() {
230 installation() {
231 # INSTALL_ROOT is used by designer/Makefile, other Makefiles use DESTDIR.
232 emake DESTDIR="${T}/images/${PYTHON_ABI}" INSTALL_ROOT="${T}/images/${PYTHON_ABI}" install
233 }
234 python_execute_function -s installation
235 python_merge_intermediate_installation_images "${T}/images"
236
237 dodoc NEWS THANKS
238
239 if use doc; then
240 dohtml -r doc/html/*
241 fi
242
243 if use examples; then
244 insinto /usr/share/doc/${PF}
245 doins -r examples
246 fi
247 }
248
249 pkg_postinst() {
250 python_mod_optimize PyQt4
251
252 ewarn "When updating dev-python/PyQt4, you usually need to rebuild packages that depend on it,"
253 ewarn "such as dev-python/qscintilla-python and kde-base/pykde4. If you have app-portage/gentoolkit"
254 ewarn "installed, you can find these packages with \`equery d dev-python/PyQt4\`."
255 }
256
257 pkg_postrm() {
258 python_mod_cleanup PyQt4
259 }