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.4.ebuild
Date: Mon, 02 May 2011 19:56:04
Message-Id: 20110502195554.EE04C20054@flycatcher.gentoo.org
1 arfrever 11/05/02 19:55:54
2
3 Modified: ChangeLog
4 Added: PyQt4-4.8.4.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha30_p35/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.151 dev-python/PyQt4/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.151&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.151&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.150&r2=1.151
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
20 retrieving revision 1.150
21 retrieving revision 1.151
22 diff -u -r1.150 -r1.151
23 --- ChangeLog 26 Mar 2011 16:38:02 -0000 1.150
24 +++ ChangeLog 2 May 2011 19:55:54 -0000 1.151
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.150 2011/03/26 16:38:02 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.151 2011/05/02 19:55:54 arfrever Exp $
30 +
31 +*PyQt4-4.8.4 (02 May 2011)
32 +
33 + 02 May 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +PyQt4-4.8.4.ebuild:
35 + Version bump.
36
37 26 Mar 2011; Andreas K. Huettel <dilfridge@g.o> PyQt4-4.7.3.ebuild,
38 PyQt4-4.7.7-r1.ebuild, PyQt4-4.8.1.ebuild, PyQt4-4.8.1-r1.ebuild,
39
40
41
42 1.1 dev-python/PyQt4/PyQt4-4.8.4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: PyQt4-4.8.4.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.4.ebuild,v 1.1 2011/05/02 19:55:54 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.2
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-libs/phonon ) )
90 kde? ( media-libs/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.7.2-configure.py.patch"
102 )
103
104 src_prepare() {
105 if ! use dbus; then
106 sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
107 fi
108
109 # Support qreal for arm architecture (bug #322349).
110 use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
111
112 qt4-r2_src_prepare
113
114 # Use proper include directory.
115 sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
116
117 python_copy_sources
118
119 preparation() {
120 if [[ "$(python_get_version --major)" == "3" ]]; then
121 rm -fr pyuic/uic/port_v2
122 else
123 rm -fr pyuic/uic/port_v3
124 fi
125 }
126 python_execute_function -s preparation
127 }
128
129 pyqt4_use_enable() {
130 use $1 && echo "--enable=${2:-$1}"
131 }
132
133 src_configure() {
134 configuration() {
135 local myconf=("$(PYTHON)"
136 configure.py
137 --confirm-license
138 --bindir="${EPREFIX}/usr/bin"
139 --destdir="${EPREFIX}$(python_get_sitedir)"
140 --sipdir="${EPREFIX}/usr/share/sip"
141 --qsci-api
142 $(use debug && echo --debug)
143 --enable=QtCore
144 --enable=QtNetwork
145 --enable=QtScript
146 --enable=QtTest
147 --enable=QtXml
148 $(pyqt4_use_enable X QtDesigner)
149 $(pyqt4_use_enable X QtGui)
150 $(pyqt4_use_enable X QtScriptTools)
151 # QtAssistant module is not available with Qt >=4.7.0.
152 $(pyqt4_use_enable assistant QtAssistant)
153 $(pyqt4_use_enable assistant QtHelp)
154 $(pyqt4_use_enable declarative QtDeclarative)
155 $(pyqt4_use_enable multimedia QtMultimedia)
156 $(pyqt4_use_enable opengl QtOpenGL)
157 $(pyqt4_use_enable phonon)
158 $(pyqt4_use_enable sql QtSql)
159 $(pyqt4_use_enable svg QtSvg)
160 $(pyqt4_use_enable webkit QtWebKit)
161 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
162 CC="$(tc-getCC)"
163 CXX="$(tc-getCXX)"
164 LINK="$(tc-getCXX)"
165 LINK_SHLIB="$(tc-getCXX)"
166 CFLAGS="${CFLAGS}"
167 CXXFLAGS="${CXXFLAGS}"
168 LFLAGS="${LDFLAGS}")
169 echo "${myconf[@]}"
170 "${myconf[@]}" || return 1
171
172 local mod
173 for mod in QtCore $(use X && echo QtDesigner QtGui) $(use declarative && echo QtDeclarative); do
174 # Run eqmake4 inside the qpy subdirectories to respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS and avoid stripping.
175 pushd qpy/${mod} > /dev/null || return 1
176 eqmake4 $(ls w_qpy*.pro)
177 popd > /dev/null || return 1
178
179 # Fix insecure runpaths.
180 sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of runpaths failed"
181 done
182
183 # Avoid stripping of libpythonplugin.so.
184 if use X; then
185 pushd designer > /dev/null || return 1
186 eqmake4 python.pro
187 popd > /dev/null || return 1
188 fi
189 }
190 python_execute_function -s configuration
191 }
192
193 src_compile() {
194 python_src_compile
195 }
196
197 src_install() {
198 installation() {
199 # INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR.
200 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
201 }
202 python_execute_function -s installation
203
204 dodoc NEWS THANKS || die "dodoc failed"
205
206 if use doc; then
207 dohtml -r doc/html/* || die "dohtml failed"
208 fi
209
210 if use examples; then
211 insinto /usr/share/doc/${PF}
212 doins -r examples || die "doins failed"
213 fi
214 }
215
216 pkg_postinst() {
217 python_mod_optimize PyQt4
218 }
219
220 pkg_postrm() {
221 python_mod_cleanup PyQt4
222 }