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: ChangeLog PyQt4-4.6.1.ebuild
Date: Wed, 28 Oct 2009 15:49:21
Message-Id: E1N3Alz-0001yI-MB@stork.gentoo.org
1 hwoarang 09/10/28 15:49:19
2
3 Modified: ChangeLog
4 Added: PyQt4-4.6.1.ebuild
5 Log:
6 Version bump. Add new configuration patch
7 (Portage version: 2.2_rc46/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.94 dev-python/PyQt4/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.94&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.94&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.93&r2=1.94
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
19 retrieving revision 1.93
20 retrieving revision 1.94
21 diff -u -r1.93 -r1.94
22 --- ChangeLog 18 Oct 2009 14:46:26 -0000 1.93
23 +++ ChangeLog 28 Oct 2009 15:49:19 -0000 1.94
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.93 2009/10/18 14:46:26 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.94 2009/10/28 15:49:19 hwoarang Exp $
29 +
30 +*PyQt4-4.6.1 (28 Oct 2009)
31 +
32 + 28 Oct 2009; Markos Chandras <hwoarang@g.o> +PyQt4-4.6.1.ebuild,
33 + +files/configure-4.6.1.py.patch:
34 + Version bump. Add new configuration patch
35
36 18 Oct 2009; Raúl Porcel <armin76@g.o> PyQt4-4.5.4-r4.ebuild:
37 alpha/ia64/sparc stable wrt #284707
38
39
40
41 1.1 dev-python/PyQt4/PyQt4-4.6.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.6.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.6.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: PyQt4-4.6.1.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.ebuild,v 1.1 2009/10/28 15:49:19 hwoarang 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 )
95
96 src_prepare() {
97 if ! use dbus; then
98 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
99 "${S}"/configure.py || die
100 fi
101 qt4_src_prepare
102
103 python_copy_sources
104
105 preparation() {
106 if [[ "${PYTHON_ABI:0:1}" == "3" ]]; then
107 rm -fr pyuic/uic/port_v2
108 else
109 rm -fr pyuic/uic/port_v3
110 fi
111 }
112 python_execute_function -s preparation
113 }
114
115 pyqt4_use_enable() {
116 use $1 && echo "--enable=${2:-$1}"
117 }
118
119 src_configure() {
120 configuration() {
121 local myconf="$(PYTHON) configure.py
122 --confirm-license
123 --bindir=/usr/bin
124 --destdir=$(python_get_sitedir)
125 --sipdir=/usr/share/sip
126 $(use debug && echo '--debug')
127 --enable=QtCore
128 --enable=QtNetwork
129 --enable=QtScript
130 --enable=QtTest
131 --enable=QtXml
132 $(pyqt4_use_enable X QtGui)
133 $(pyqt4_use_enable X QtDesigner)
134 $(pyqt4_use_enable X QtScriptTools)
135 $(pyqt4_use_enable assistant QtAssistant)
136 $(pyqt4_use_enable assistant QtHelp)
137 $(pyqt4_use_enable opengl QtOpenGL)
138 $(pyqt4_use_enable phonon)
139 $(pyqt4_use_enable sql QtSql)
140 $(pyqt4_use_enable svg QtSvg)
141 $(pyqt4_use_enable webkit QtWebKit)
142 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)
143 CC=$(tc-getCC) CXX=$(tc-getCXX)
144 LINK=$(tc-getCXX) LINK_SHLIB=$(tc-getCXX)
145 CFLAGS='${CFLAGS}' CXXFLAGS='${CXXFLAGS}' LFLAGS='${LDFLAGS}'"
146 echo ${myconf}
147 eval ${myconf} || return 1
148
149 for mod in QtCore $(use X && echo 'QtDesigner QtGui'); do
150 # Run eqmake4 inside the qpy subdirs to prevent
151 # stripping and many other QA issues
152 pushd qpy/${mod} > /dev/null || die
153 eqmake4 $(ls w_qpy*.pro)
154 popd > /dev/null || die
155
156 # Fix insecure runpaths
157 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" \
158 ${mod}/Makefile || die "failed to fix rpath issues"
159 done
160
161 # Fix pre-stripping of libpythonplugin.so
162 if use X; then
163 cd "${BUILDDIR}"/designer
164 eqmake4 python.pro
165 fi
166 }
167 python_execute_function -s configuration
168 }
169
170 src_compile() {
171 python_execute_function -d -s
172 }
173
174 src_install() {
175 python_need_rebuild
176
177 installation() {
178 # INSTALL_ROOT is needed for the QtDesigner module,
179 # the other Makefiles use DESTDIR.
180 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
181 }
182 python_execute_function -s installation
183
184 dodoc ChangeLog doc/pyqt4ref.txt NEWS THANKS || die
185
186 if use doc; then
187 dohtml -r doc/* || die
188 fi
189
190 if use examples; then
191 insinto /usr/share/doc/${PF}
192 doins -r examples || die
193 fi
194 }
195
196 pkg_postinst() {
197 python_mod_optimize PyQt4
198 }
199
200 pkg_postrm() {
201 python_mod_cleanup PyQt4
202 }