Gentoo Archives: gentoo-commits

From: "Michael Palimaka (kensington)" <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/PyQt4: PyQt4-4.10.1.ebuild ChangeLog
Date: Wed, 22 May 2013 07:58:18
Message-Id: 20130522075812.38CBD2171D@flycatcher.gentoo.org
1 kensington 13/05/22 07:58:12
2
3 Modified: ChangeLog
4 Added: PyQt4-4.10.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)
9
10 Revision Changes Path
11 1.223 dev-python/PyQt4/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.223&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.223&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.222&r2=1.223
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
20 retrieving revision 1.222
21 retrieving revision 1.223
22 diff -u -r1.222 -r1.223
23 --- ChangeLog 10 May 2013 03:41:13 -0000 1.222
24 +++ ChangeLog 22 May 2013 07:58:12 -0000 1.223
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/PyQt4
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.222 2013/05/10 03:41:13 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.223 2013/05/22 07:58:12 kensington Exp $
30 +
31 +*PyQt4-4.10.1 (22 May 2013)
32 +
33 + 22 May 2013; Michael Palimaka <kensington@g.o> +PyQt4-4.10.1.ebuild:
34 + Version bump.
35
36 10 May 2013; Patrick Lauer <patrick@g.o> metadata.xml:
37 Remove unused flag description from metadata
38
39
40
41 1.1 dev-python/PyQt4/PyQt4-4.10.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.10.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.10.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: PyQt4-4.10.1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.10.1.ebuild,v 1.1 2013/05/22 07:58:12 kensington Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
54
55 inherit eutils qt4-r2 python-r1 toolchain-funcs
56
57 DESCRIPTION="Python bindings for the Qt toolkit"
58 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
59
60 if [[ ${PV} == *_pre* ]]; then
61 MY_P="PyQt-x11-gpl-snapshot-${PV%_pre*}-${REVISION}"
62 SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.gz"
63 else
64 MY_P="PyQt-x11-gpl-${PV}"
65 SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
66 fi
67
68 LICENSE="|| ( GPL-2 GPL-3 )"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
71
72 IUSE="X dbus debug declarative doc examples help kde multimedia opengl phonon script scripttools sql svg webkit xmlpatterns"
73 REQUIRED_USE="
74 declarative? ( X )
75 help? ( X )
76 multimedia? ( X )
77 opengl? ( X )
78 phonon? ( X )
79 scripttools? ( X script )
80 sql? ( X )
81 svg? ( X )
82 webkit? ( X )
83 "
84
85 # Minimal supported version of Qt.
86 QT_PV="4.8.0:4"
87
88 RDEPEND="
89 ${PYTHON_DEPS}
90 >=dev-python/sip-4.14.3:=[${PYTHON_USEDEP}]
91 >=dev-qt/qtcore-${QT_PV}
92 X? (
93 >=dev-qt/qtgui-${QT_PV}[dbus?]
94 >=dev-qt/qttest-${QT_PV}
95 )
96 dbus? (
97 >=dev-python/dbus-python-0.80
98 >=dev-qt/qtdbus-${QT_PV}
99 )
100 declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
101 help? ( >=dev-qt/qthelp-${QT_PV} )
102 multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
103 opengl? ( >=dev-qt/qtopengl-${QT_PV} )
104 phonon? (
105 kde? ( media-libs/phonon )
106 !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} media-libs/phonon ) )
107 )
108 script? ( >=dev-qt/qtscript-${QT_PV} )
109 sql? ( >=dev-qt/qtsql-${QT_PV} )
110 svg? ( >=dev-qt/qtsvg-${QT_PV} )
111 webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
112 xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
113 "
114 DEPEND="${RDEPEND}
115 dbus? ( virtual/pkgconfig )
116 "
117
118 S=${WORKDIR}/${MY_P}
119
120 src_prepare() {
121 qt4-r2_src_prepare
122
123 # Support qreal on arm architecture (bug 322349).
124 use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
125
126 # Allow building against KDE's phonon (bug 433944 and others).
127 sed -i \
128 -e "s:VideoWidget()\":&, extra_include_dirs=[\"${EPREFIX}/usr/include/qt4/QtGui\"]:" \
129 -e "s:^\s\+generate_code(\"phonon\":&, extra_include_dirs=[\"${EPREFIX}/usr/include/phonon\"]:" \
130 configure.py || die
131
132 if ! use dbus; then
133 sed -i -e 's/^\(\s\+\)check_dbus()/\1pass/' configure.py || die
134 fi
135
136 python_copy_sources
137
138 preparation() {
139 if [[ ${EPYTHON} == python3.* ]]; then
140 rm -fr pyuic/uic/port_v2
141 else
142 rm -fr pyuic/uic/port_v3
143 fi
144 }
145 python_foreach_impl run_in_build_dir preparation
146 }
147
148 pyqt4_use_enable() {
149 use $1 && echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}}
150 }
151
152 src_configure() {
153 configuration() {
154 local myconf=(
155 "${PYTHON}" configure.py
156 --confirm-license
157 --bindir="${EPREFIX}/usr/bin"
158 --destdir="$(python_get_sitedir)"
159 --sipdir="${EPREFIX}/usr/share/sip"
160 --assume-shared
161 --no-timestamp
162 --qsci-api
163 $(use debug && echo --debug)
164 --enable=QtCore
165 --enable=QtNetwork
166 --enable=QtXml
167 $(pyqt4_use_enable X QtDesigner) $(use X || echo --no-designer-plugin)
168 $(pyqt4_use_enable X QtGui)
169 $(pyqt4_use_enable X QtTest)
170 $(pyqt4_use_enable dbus QtDBus)
171 $(pyqt4_use_enable declarative)
172 $(pyqt4_use_enable help)
173 $(pyqt4_use_enable multimedia)
174 $(pyqt4_use_enable opengl QtOpenGL)
175 $(pyqt4_use_enable phonon phonon)
176 $(pyqt4_use_enable script)
177 $(pyqt4_use_enable scripttools QtScriptTools)
178 $(pyqt4_use_enable sql)
179 $(pyqt4_use_enable svg)
180 $(pyqt4_use_enable webkit QtWebKit)
181 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
182 AR="$(tc-getAR) cqs"
183 CC="$(tc-getCC)"
184 CFLAGS="${CFLAGS}"
185 CFLAGS_RELEASE=
186 CXX="$(tc-getCXX)"
187 CXXFLAGS="${CXXFLAGS}"
188 CXXFLAGS_RELEASE=
189 LINK="$(tc-getCXX)"
190 LINK_SHLIB="$(tc-getCXX)"
191 LFLAGS="${LDFLAGS}"
192 LFLAGS_RELEASE=
193 RANLIB=
194 STRIP=
195 )
196 echo "${myconf[@]}"
197 "${myconf[@]}" || die
198
199 local mod
200 for mod in QtCore \
201 $(use X && echo QtDesigner QtGui) \
202 $(use dbus && echo QtDBus) \
203 $(use declarative && echo QtDeclarative) \
204 $(use opengl && echo QtOpenGL); do
205 # Run eqmake4 inside the qpy subdirectories to respect
206 # CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS and avoid stripping.
207 pushd qpy/${mod} > /dev/null || return
208 eqmake4 $(ls w_qpy*.pro)
209 popd > /dev/null || return
210
211 # Fix insecure runpaths.
212 sed -i -e "/^LFLAGS\s*=/ s:-Wl,-rpath,${BUILD_DIR}/qpy/${mod}::" \
213 ${mod}/Makefile || die "failed to fix rpath for ${mod}"
214 done
215
216 # Avoid stripping of libpythonplugin.so.
217 if use X; then
218 pushd designer > /dev/null || return
219 eqmake4 python.pro
220 popd > /dev/null || return
221 fi
222 }
223 python_parallel_foreach_impl run_in_build_dir configuration
224 }
225
226 src_compile() {
227 python_foreach_impl run_in_build_dir default
228 }
229
230 src_install() {
231 installation() {
232 # INSTALL_ROOT is used by designer/Makefile, other Makefiles use DESTDIR.
233 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
234 mv "${ED}"/usr/bin/pyuic4{,-${EPYTHON}} || die
235 python_optimize
236 }
237 python_foreach_impl run_in_build_dir installation
238
239 dosym python-exec /usr/bin/pyuic4
240 dodoc NEWS THANKS
241
242 if use doc; then
243 dohtml -r doc/html/*
244 fi
245
246 if use examples; then
247 insinto /usr/share/doc/${PF}
248 doins -r examples
249 fi
250 }