Gentoo Archives: gentoo-commits

From: "Alex Alexander (wired)" <wired@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/PyQt4: PyQt4-4.6.1-r1.ebuild ChangeLog
Date: Thu, 05 Nov 2009 07:59:38
Message-Id: E1N5xFn-0004W2-FS@stork.gentoo.org
1 wired 09/11/05 07:59:35
2
3 Modified: ChangeLog
4 Added: PyQt4-4.6.1-r1.ebuild
5 Log:
6 added multilib patch wrt bug #283936
7 (Portage version: 2.2_rc48/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.95 dev-python/PyQt4/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.95&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.95&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.94&r2=1.95
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
19 retrieving revision 1.94
20 retrieving revision 1.95
21 diff -u -r1.94 -r1.95
22 --- ChangeLog 28 Oct 2009 15:49:19 -0000 1.94
23 +++ ChangeLog 5 Nov 2009 07:59:34 -0000 1.95
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/PyQt4
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.94 2009/10/28 15:49:19 hwoarang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.95 2009/11/05 07:59:34 wired Exp $
29 +
30 +*PyQt4-4.6.1-r1 (05 Nov 2009)
31 +
32 + 05 Nov 2009; Alex Alexander <wired@g.o> +PyQt4-4.6.1-r1.ebuild,
33 + +files/PyQt4-4.6.1-configure-multilib.patch:
34 + added multilib patch wrt bug #283936
35
36 *PyQt4-4.6.1 (28 Oct 2009)
37
38
39
40
41 1.1 dev-python/PyQt4/PyQt4-4.6.1-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.6.1-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.6.1-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: PyQt4-4.6.1-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.6.1-r1.ebuild,v 1.1 2009/11/05 07:59:34 wired Exp $
51
52 EAPI="2"
53 SUPPORT_PYTHON_ABIS="1"
54
55 inherit python qt4 toolchain-funcs
56
57 MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
58 QTVER="4.5.1"
59
60 DESCRIPTION="A set of Python bindings for the Qt toolkit"
61 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/"
62 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
63
64 SLOT="0"
65 LICENSE="|| ( GPL-2 GPL-3 )"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
67 IUSE="X assistant +dbus debug doc examples kde opengl phonon sql svg webkit xmlpatterns"
68
69 DEPEND=">=dev-python/sip-4.9
70 >=x11-libs/qt-core-${QTVER}:4
71 >=x11-libs/qt-script-${QTVER}:4
72 >=x11-libs/qt-test-${QTVER}:4
73 X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?] )
74 assistant? ( >=x11-libs/qt-assistant-${QTVER}:4 )
75 dbus? (
76 >=dev-python/dbus-python-0.80
77 >=x11-libs/qt-dbus-${QTVER}:4
78 )
79 opengl? ( >=x11-libs/qt-opengl-${QTVER}:4 )
80 phonon? (
81 !kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-sound/phonon ) )
82 kde? ( media-sound/phonon )
83 )
84 sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
85 svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
86 webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
87 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
88 RDEPEND="${DEPEND}"
89
90 S="${WORKDIR}/${MY_P}"
91
92 PATCHES=(
93 "${FILESDIR}/configure-${PV}.py.patch"
94 "${FILESDIR}/${P}-configure-multilib.patch"
95 )
96
97 src_prepare() {
98 if ! use dbus; then
99 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
100 "${S}"/configure.py || die
101 fi
102 qt4_src_prepare
103
104 python_copy_sources
105
106 preparation() {
107 if [[ "${PYTHON_ABI:0:1}" == "3" ]]; then
108 rm -fr pyuic/uic/port_v2
109 else
110 rm -fr pyuic/uic/port_v3
111 fi
112 }
113 python_execute_function -s preparation
114 }
115
116 pyqt4_use_enable() {
117 use $1 && echo "--enable=${2:-$1}"
118 }
119
120 src_configure() {
121 configuration() {
122 local myconf="$(PYTHON) configure.py
123 --confirm-license
124 --bindir=/usr/bin
125 --destdir=$(python_get_sitedir)
126 --sipdir=/usr/share/sip
127 $(use debug && echo '--debug')
128 --enable=QtCore
129 --enable=QtNetwork
130 --enable=QtScript
131 --enable=QtTest
132 --enable=QtXml
133 $(pyqt4_use_enable X QtGui)
134 $(pyqt4_use_enable X QtDesigner)
135 $(pyqt4_use_enable X QtScriptTools)
136 $(pyqt4_use_enable assistant QtAssistant)
137 $(pyqt4_use_enable assistant QtHelp)
138 $(pyqt4_use_enable opengl QtOpenGL)
139 $(pyqt4_use_enable phonon)
140 $(pyqt4_use_enable sql QtSql)
141 $(pyqt4_use_enable svg QtSvg)
142 $(pyqt4_use_enable webkit QtWebKit)
143 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
144 CC=$(tc-getCC) CXX=$(tc-getCXX)
145 LINK=$(tc-getCXX) LINK_SHLIB=$(tc-getCXX)
146 CFLAGS='${CFLAGS}' CXXFLAGS='${CXXFLAGS}' LFLAGS='${LDFLAGS}'"
147 echo ${myconf}
148 eval ${myconf} || return 1
149
150 for mod in QtCore $(use X && echo 'QtDesigner QtGui'); do
151 # Run eqmake4 inside the qpy subdirs to prevent
152 # stripping and many other QA issues
153 pushd qpy/${mod} > /dev/null || die
154 eqmake4 $(ls w_qpy*.pro)
155 popd > /dev/null || die
156
157 # Fix insecure runpaths
158 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" \
159 ${mod}/Makefile || die "failed to fix rpath issues"
160 done
161
162 # Fix pre-stripping of libpythonplugin.so
163 if use X; then
164 cd "${BUILDDIR}"/designer
165 eqmake4 python.pro
166 fi
167 }
168 python_execute_function -s configuration
169 }
170
171 src_compile() {
172 python_execute_function -d -s
173 }
174
175 src_install() {
176 python_need_rebuild
177
178 installation() {
179 # INSTALL_ROOT is needed for the QtDesigner module,
180 # the other Makefiles use DESTDIR.
181 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
182 }
183 python_execute_function -s installation
184
185 dodoc ChangeLog doc/pyqt4ref.txt NEWS THANKS || die
186
187 if use doc; then
188 dohtml -r doc/* || die
189 fi
190
191 if use examples; then
192 insinto /usr/share/doc/${PF}
193 doins -r examples || die
194 fi
195 }
196
197 pkg_postinst() {
198 python_mod_optimize PyQt4
199 }
200
201 pkg_postrm() {
202 python_mod_cleanup PyQt4
203 }