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