Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/PyQt4: PyQt4-4.7.6.ebuild ChangeLog PyQt4-4.7.2.ebuild
Date: Wed, 08 Sep 2010 23:30:36
Message-Id: 20100908233031.C944320051@flycatcher.gentoo.org
1 hwoarang 10/09/08 23:30:31
2
3 Modified: ChangeLog
4 Added: PyQt4-4.7.6.ebuild
5 Removed: PyQt4-4.7.2.ebuild
6 Log:
7 Version bump. Remove old ebuild
8
9 (Portage version: 2.2_rc77/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.125 dev-python/PyQt4/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.125&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.125&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.124&r2=1.125
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
21 retrieving revision 1.124
22 retrieving revision 1.125
23 diff -u -r1.124 -r1.125
24 --- ChangeLog 1 Sep 2010 20:20:00 -0000 1.124
25 +++ ChangeLog 8 Sep 2010 23:30:31 -0000 1.125
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-python/PyQt4
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.124 2010/09/01 20:20:00 hwoarang Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.125 2010/09/08 23:30:31 hwoarang Exp $
31 +
32 +*PyQt4-4.7.6 (08 Sep 2010)
33 +
34 + 08 Sep 2010; Markos Chandras <hwoarang@g.o> -PyQt4-4.7.2.ebuild,
35 + +PyQt4-4.7.6.ebuild:
36 + Version bump. Remove old ebuild
37
38 01 Sep 2010; Markos Chandras <hwoarang@g.o> -PyQt4-4.7.4.ebuild,
39 PyQt4-4.7.5.ebuild:
40
41
42
43 1.1 dev-python/PyQt4/PyQt4-4.7.6.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.7.6.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.7.6.ebuild?rev=1.1&content-type=text/plain
47
48 Index: PyQt4-4.7.6.ebuild
49 ===================================================================
50 # Copyright 1999-2010 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.7.6.ebuild,v 1.1 2010/09/08 23:30:31 hwoarang Exp $
53
54 EAPI="2"
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 )
100
101 src_prepare() {
102 use prefix || EPREFIX=
103
104 if ! use dbus; then
105 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
106 "${S}"/configure.py || die
107 fi
108
109 # Patch to support qreal for arm architecture
110 # wrt 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 dir
116 sed -e "s|/usr/include|${EPREFIX}/usr/include|g" \
117 -i configure.py
118
119 python_copy_sources
120
121 preparation() {
122 if [[ "${PYTHON_ABI:0:1}" == "3" ]]; then
123 rm -fr pyuic/uic/port_v2
124 else
125 rm -fr pyuic/uic/port_v3
126 fi
127 }
128 python_execute_function -s preparation
129 }
130
131 pyqt4_use_enable() {
132 use $1 && echo "--enable=${2:-$1}"
133 }
134
135 src_configure() {
136 use prefix || EPREFIX=
137
138 configuration() {
139 local myconf="$(PYTHON) configure.py
140 --confirm-license
141 --bindir="${EPREFIX}"/usr/bin
142 --destdir="${EPREFIX}"$(python_get_sitedir)
143 --sipdir="${EPREFIX}"/usr/share/sip
144 --qsci-api
145 $(use debug && echo '--debug')
146 --enable=QtCore
147 --enable=QtNetwork
148 --enable=QtScript
149 --enable=QtTest
150 --enable=QtXml
151 $(pyqt4_use_enable X QtGui)
152 $(pyqt4_use_enable X QtDesigner)
153 $(pyqt4_use_enable X QtScriptTools)
154 $(pyqt4_use_enable assistant QtAssistant)
155 $(pyqt4_use_enable assistant QtHelp)
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) CXX=$(tc-getCXX)
164 LINK=$(tc-getCXX) LINK_SHLIB=$(tc-getCXX)
165 CFLAGS='${CFLAGS}' CXXFLAGS='${CXXFLAGS}' LFLAGS='${LDFLAGS}'"
166 echo ${myconf}
167 eval ${myconf} || return 1
168
169 for mod in QtCore $(use X && echo 'QtDesigner QtGui'); do
170 # Run eqmake4 inside the qpy subdirs to prevent
171 # stripping and many other QA issues
172 pushd qpy/${mod} > /dev/null || die
173 eqmake4 $(ls w_qpy*.pro)
174 popd > /dev/null || die
175
176 # Fix insecure runpaths
177 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" \
178 ${mod}/Makefile || die "failed to fix rpath issues"
179 done
180
181 # Fix pre-stripping of libpythonplugin.so
182 if use X; then
183 cd "${BUILDDIR}"/designer
184 eqmake4 python.pro
185 fi
186 }
187 python_execute_function -s configuration
188 }
189
190 src_compile() {
191 python_src_compile
192 }
193
194 src_install() {
195 installation() {
196 # INSTALL_ROOT is needed for the QtDesigner module,
197 # the other Makefiles use DESTDIR.
198 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
199 }
200 python_execute_function -s installation
201
202 dodoc doc/pyqt4ref.txt NEWS THANKS || die
203
204 if use doc; then
205 dohtml -r doc/* || die
206 fi
207
208 if use examples; then
209 insinto /usr/share/doc/${PF}
210 doins -r examples || die
211 fi
212 }
213
214 pkg_postinst() {
215 python_mod_optimize PyQt4
216 }
217
218 pkg_postrm() {
219 python_mod_cleanup PyQt4
220 }