Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/PyQt4: ChangeLog PyQt4-4.8.3.ebuild
Date: Tue, 25 Jan 2011 17:24:59
Message-Id: 20110125172441.83B4520054@flycatcher.gentoo.org
1 arfrever 11/01/25 17:24:41
2
3 Modified: ChangeLog
4 Added: PyQt4-4.8.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha19_p1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.145 dev-python/PyQt4/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.145&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.145&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.144&r2=1.145
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
20 retrieving revision 1.144
21 retrieving revision 1.145
22 diff -u -r1.144 -r1.145
23 --- ChangeLog 16 Jan 2011 10:06:11 -0000 1.144
24 +++ ChangeLog 25 Jan 2011 17:24:41 -0000 1.145
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/PyQt4
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.144 2011/01/16 10:06:11 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.145 2011/01/25 17:24:41 arfrever Exp $
30 +
31 +*PyQt4-4.8.3 (25 Jan 2011)
32 +
33 + 25 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +PyQt4-4.8.3.ebuild, +files/PyQt4-4.8.3-configure-multilib.patch:
35 + Version bump.
36
37 16 Jan 2011; Pawel Hajdan jr <phajdan.jr@g.o> PyQt4-4.8.1.ebuild:
38 x86 stable wrt bug #349607
39
40
41
42 1.1 dev-python/PyQt4/PyQt4-4.8.3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: PyQt4-4.8.3.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.3.ebuild,v 1.1 2011/01/25 17:24:41 arfrever Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="*"
55 PYTHON_EXPORT_PHASE_FUNCTIONS="1"
56 SUPPORT_PYTHON_ABIS="1"
57 RESTRICT_PYTHON_ABIS="*-jython"
58
59 inherit python qt4-r2 toolchain-funcs
60
61 MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
62
63 # Minimal supported version of Qt.
64 QT_VER="4.6.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 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
69
70 LICENSE="|| ( GPL-2 GPL-3 )"
71 SLOT="0"
72 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
73 IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
74
75 DEPEND=">=dev-python/sip-4.12
76 >=x11-libs/qt-core-${QT_VER}:4
77 >=x11-libs/qt-script-${QT_VER}:4
78 >=x11-libs/qt-test-${QT_VER}:4
79 X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] )
80 assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
81 dbus? (
82 >=dev-python/dbus-python-0.80
83 >=x11-libs/qt-dbus-${QT_VER}:4
84 )
85 declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
86 multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
87 opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) )
88 phonon? (
89 !kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-sound/phonon ) )
90 kde? ( media-sound/phonon )
91 )
92 sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
93 svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
94 webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
95 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )"
96 RDEPEND="${DEPEND}"
97
98 S=${WORKDIR}/${MY_P}
99
100 PATCHES=(
101 "${FILESDIR}/${PN}-4.8.3-configure-multilib.patch"
102 "${FILESDIR}/${PN}-4.7.2-configure.py.patch"
103 )
104
105 src_prepare() {
106 if ! use dbus; then
107 sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
108 fi
109
110 # Support qreal for arm architecture (bug #322349).
111 use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
112
113 qt4-r2_src_prepare
114
115 # Use proper include directory.
116 sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
117
118 python_copy_sources
119
120 preparation() {
121 if [[ "$(python_get_version --major)" == "3" ]]; then
122 rm -fr pyuic/uic/port_v2
123 else
124 rm -fr pyuic/uic/port_v3
125 fi
126 }
127 python_execute_function -s preparation
128 }
129
130 pyqt4_use_enable() {
131 use $1 && echo "--enable=${2:-$1}"
132 }
133
134 src_configure() {
135 configuration() {
136 local myconf=("$(PYTHON)"
137 configure.py
138 --confirm-license
139 --bindir="${EPREFIX}/usr/bin"
140 --destdir="${EPREFIX}$(python_get_sitedir)"
141 --sipdir="${EPREFIX}/usr/share/sip"
142 --qsci-api
143 $(use debug && echo --debug)
144 --enable=QtCore
145 --enable=QtNetwork
146 --enable=QtScript
147 --enable=QtTest
148 --enable=QtXml
149 $(pyqt4_use_enable X QtDesigner)
150 $(pyqt4_use_enable X QtGui)
151 $(pyqt4_use_enable X QtScriptTools)
152 # QtAssistant module is not available with Qt >=4.7.0.
153 $(pyqt4_use_enable assistant QtAssistant)
154 $(pyqt4_use_enable assistant QtHelp)
155 $(pyqt4_use_enable declarative QtDeclarative)
156 $(pyqt4_use_enable multimedia QtMultimedia)
157 $(pyqt4_use_enable opengl QtOpenGL)
158 $(pyqt4_use_enable phonon)
159 $(pyqt4_use_enable sql QtSql)
160 $(pyqt4_use_enable svg QtSvg)
161 $(pyqt4_use_enable webkit QtWebKit)
162 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
163 CC="$(tc-getCC)"
164 CXX="$(tc-getCXX)"
165 LINK="$(tc-getCXX)"
166 LINK_SHLIB="$(tc-getCXX)"
167 CFLAGS="${CFLAGS}"
168 CXXFLAGS="${CXXFLAGS}"
169 LFLAGS="${LDFLAGS}")
170 echo "${myconf[@]}"
171 "${myconf[@]}" || return 1
172
173 local mod
174 for mod in QtCore $(use X && echo QtDesigner QtGui) $(use declarative && echo QtDeclarative); do
175 # Run eqmake4 inside the qpy subdirectories to respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS and avoid stripping.
176 pushd qpy/${mod} > /dev/null || return 1
177 eqmake4 $(ls w_qpy*.pro)
178 popd > /dev/null || return 1
179
180 # Fix insecure runpaths.
181 sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of runpaths failed"
182 done
183
184 # Avoid stripping of libpythonplugin.so.
185 if use X; then
186 pushd designer > /dev/null || return 1
187 eqmake4 python.pro
188 popd > /dev/null || return 1
189 fi
190 }
191 python_execute_function -s configuration
192 }
193
194 src_compile() {
195 python_src_compile
196 }
197
198 src_install() {
199 installation() {
200 # INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR.
201 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
202 }
203 python_execute_function -s installation
204
205 dodoc NEWS THANKS || die "dodoc failed"
206
207 if use doc; then
208 dohtml -r doc/html/* || die "dohtml failed"
209 fi
210
211 if use examples; then
212 insinto /usr/share/doc/${PF}
213 doins -r examples || die "doins failed"
214 fi
215 }
216
217 pkg_postinst() {
218 python_mod_optimize PyQt4
219 }
220
221 pkg_postrm() {
222 python_mod_cleanup PyQt4
223 }