Gentoo Archives: gentoo-commits

From: "Theo Chatzimichos (tampakrap)" <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/PyQt4: ChangeLog PyQt4-4.7.7-r1.ebuild
Date: Wed, 06 Oct 2010 12:02:49
Message-Id: 20101006110505.6EFA820054@flycatcher.gentoo.org
1 tampakrap 10/10/06 11:05:05
2
3 Modified: ChangeLog
4 Added: PyQt4-4.7.7-r1.ebuild
5 Log:
6 Revision bump, add patch that fixes compilation with PyKDE 4.5.2
7
8 (Portage version: 2.2_rc89/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.130 dev-python/PyQt4/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.130&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.130&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.129&r2=1.130
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
20 retrieving revision 1.129
21 retrieving revision 1.130
22 diff -u -r1.129 -r1.130
23 --- ChangeLog 21 Sep 2010 12:14:58 -0000 1.129
24 +++ ChangeLog 6 Oct 2010 11:05:05 -0000 1.130
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/PyQt4
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.129 2010/09/21 12:14:58 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.130 2010/10/06 11:05:05 tampakrap Exp $
30 +
31 +*PyQt4-4.7.7-r1 (06 Oct 2010)
32 +
33 + 06 Oct 2010; Theo Chatzimichos <tampakrap@g.o>
34 + +PyQt4-4.7.7-r1.ebuild, +files/PyQt4-4.7.7-fix-scpk-and-flag-issue.diff:
35 + Revision bump, add patch that fixes compilation with PyKDE 4.5.2
36
37 *PyQt4-4.7.7 (21 Sep 2010)
38
39
40
41
42 1.1 dev-python/PyQt4/PyQt4-4.7.7-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.7.7-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.7.7-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: PyQt4-4.7.7-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 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.7.7-r1.ebuild,v 1.1 2010/10/06 11:05:05 tampakrap Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="*"
55 PYTHON_EXPORT_PHASE_FUNCTIONS="1"
56 SUPPORT_PYTHON_ABIS="1"
57
58 inherit qt4-r2 python toolchain-funcs
59
60 MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
61 QTVER="4.6.2" # minimal Qt version this is supposed to work with
62
63 DESCRIPTION="A set of Python bindings for the Qt toolkit"
64 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
65 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
66
67 SLOT="0"
68 LICENSE="|| ( GPL-2 GPL-3 )"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
70 IUSE="X assistant +dbus debug doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
71
72 DEPEND=">=dev-python/sip-4.11
73 >=x11-libs/qt-core-${QTVER}:4
74 >=x11-libs/qt-script-${QTVER}:4
75 >=x11-libs/qt-test-${QTVER}:4
76 X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?] )
77 assistant? ( >=x11-libs/qt-assistant-${QTVER}:4 )
78 dbus? (
79 >=dev-python/dbus-python-0.80
80 >=x11-libs/qt-dbus-${QTVER}:4
81 )
82 multimedia? ( >=x11-libs/qt-multimedia-${QTVER}:4 )
83 opengl? ( >=x11-libs/qt-opengl-${QTVER}:4 )
84 phonon? (
85 !kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-sound/phonon ) )
86 kde? ( media-sound/phonon )
87 )
88 sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
89 svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
90 webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
91 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
92 RDEPEND="${DEPEND}"
93
94 S=${WORKDIR}/${MY_P}
95
96 PATCHES=(
97 "${FILESDIR}/${PN}-4.6.1-configure-multilib.patch"
98 "${FILESDIR}/${PN}-4.7.2-configure.py.patch"
99 "${FILESDIR}/${P}-fix-scpk-and-flag-issue.diff"
100 )
101
102 src_prepare() {
103 if ! use dbus; then
104 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
105 "${S}"/configure.py || die
106 fi
107
108 # Patch to support qreal for arm architecture
109 # wrt 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 dir
115 sed -e "s|/usr/include|${EPREFIX}/usr/include|g" \
116 -i configure.py
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) 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 QtGui)
149 $(pyqt4_use_enable X QtDesigner)
150 $(pyqt4_use_enable X QtScriptTools)
151 $(pyqt4_use_enable assistant QtAssistant)
152 $(pyqt4_use_enable assistant QtHelp)
153 $(pyqt4_use_enable multimedia QtMultimedia)
154 $(pyqt4_use_enable opengl QtOpenGL)
155 $(pyqt4_use_enable phonon)
156 $(pyqt4_use_enable sql QtSql)
157 $(pyqt4_use_enable svg QtSvg)
158 $(pyqt4_use_enable webkit QtWebKit)
159 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
160 CC=$(tc-getCC) CXX=$(tc-getCXX)
161 LINK=$(tc-getCXX) LINK_SHLIB=$(tc-getCXX)
162 CFLAGS='${CFLAGS}' CXXFLAGS='${CXXFLAGS}' LFLAGS='${LDFLAGS}'"
163 echo ${myconf}
164 eval ${myconf} || return 1
165
166 for mod in QtCore $(use X && echo 'QtDesigner QtGui'); do
167 # Run eqmake4 inside the qpy subdirs to prevent
168 # stripping and many other QA issues
169 pushd qpy/${mod} > /dev/null || die
170 eqmake4 $(ls w_qpy*.pro)
171 popd > /dev/null || die
172
173 # Fix insecure runpaths
174 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" \
175 ${mod}/Makefile || die "failed to fix rpath issues"
176 done
177
178 # Fix pre-stripping of libpythonplugin.so
179 if use X; then
180 cd "${BUILDDIR}"/designer
181 eqmake4 python.pro
182 fi
183 }
184 python_execute_function -s configuration
185 }
186
187 src_compile() {
188 python_src_compile
189 }
190
191 src_install() {
192 installation() {
193 # INSTALL_ROOT is needed for the QtDesigner module,
194 # the other Makefiles use DESTDIR.
195 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
196 }
197 python_execute_function -s installation
198
199 dodoc doc/pyqt4ref.txt NEWS THANKS || die
200
201 if use doc; then
202 dohtml -r doc/* || die
203 fi
204
205 if use examples; then
206 insinto /usr/share/doc/${PF}
207 doins -r examples || die
208 fi
209 }
210
211 pkg_postinst() {
212 python_mod_optimize PyQt4
213 }
214
215 pkg_postrm() {
216 python_mod_cleanup PyQt4
217 }