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: metadata.xml ChangeLog PyQt4-4.4.4-r5.ebuild
Date: Mon, 01 Jun 2009 16:30:52
Message-Id: E1MBAPR-00052N-2T@stork.gentoo.org
1 hwoarang 09/06/01 16:30:49
2
3 Modified: metadata.xml ChangeLog
4 Added: PyQt4-4.4.4-r5.ebuild
5 Log:
6 Fixed automagic dependency issue. ( bug 236341 ). Fixed rpath issues ( bug 235819 , bug 271870 )
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 dev-python/PyQt4/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/metadata.xml?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/metadata.xml?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/metadata.xml?r1=1.3&r2=1.4
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/metadata.xml,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- metadata.xml 23 Nov 2008 13:03:07 -0000 1.3
23 +++ metadata.xml 1 Jun 2009 16:30:48 -0000 1.4
24 @@ -4,7 +4,14 @@
25 <herd>python</herd>
26 <herd>qt</herd>
27 <use>
28 - <flag name='qt3support'>enable the Qt3Support libraries for Qt4</flag>
29 - <flag name='webkit'>enable WebKit support</flag>
30 + <flag name='X'>Build the QtGui and QtDesigner modules</flag>
31 + <flag name='assistant'>Build the QtHelp and QtAssistant modules</flag>
32 + <flag name='opengl'>Build the QtOpenGL module</flag>
33 + <flag name='phonon'>Build the phonon module</flag>
34 + <flag name='qt3support'>Enable the Qt3Support libraries for Qt4</flag>
35 + <flag name='sql'>Build the QtSql module</flag>
36 + <flag name='svg'>Build the QtSvg module</flag>
37 + <flag name='webkit'>Build the QtWebKit module</flag>
38 + <flag name='xmlpatterns'>Build the QtXmlPatterns module</flag>
39 </use>
40 </pkgmetadata>
41
42
43
44 1.57 dev-python/PyQt4/ChangeLog
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.57&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.57&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.56&r2=1.57
49
50 Index: ChangeLog
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
53 retrieving revision 1.56
54 retrieving revision 1.57
55 diff -u -r1.56 -r1.57
56 --- ChangeLog 20 May 2009 23:01:26 -0000 1.56
57 +++ ChangeLog 1 Jun 2009 16:30:48 -0000 1.57
58 @@ -1,6 +1,15 @@
59 # ChangeLog for dev-python/PyQt4
60 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
61 -# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.56 2009/05/20 23:01:26 yngwin Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.57 2009/06/01 16:30:48 hwoarang Exp $
63 +
64 +*PyQt4-4.4.4-r5 (01 Jun 2009)
65 +
66 + 01 Jun 2009; Markos Chandras <hwoarang@g.o> +PyQt4-4.4.4-r5.ebuild,
67 + files/configure.py.patch, metadata.xml:
68 + Fixed automagic dependency issue. ( bug 236341 ). Fixed rpath issues ( bug
69 + 235819 , bug 271870 ). Thanks to Davide Pesavento <davidepesa@×××××.com>
70 + for
71 + the ebuilds and the rpath patch.
72
73 20 May 2009; Ben de Groot <yngwin@g.o> -PyQt4-4.4-r1.ebuild,
74 -PyQt4-4.4.4-r1.ebuild, -PyQt4-4.4.4-r3.ebuild, PyQt4-4.4.4-r4.ebuild:
75
76
77
78 1.1 dev-python/PyQt4/PyQt4-4.4.4-r5.ebuild
79
80 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.4.4-r5.ebuild?rev=1.1&view=markup
81 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.4.4-r5.ebuild?rev=1.1&content-type=text/plain
82
83 Index: PyQt4-4.4.4-r5.ebuild
84 ===================================================================
85 # Copyright 1999-2009 Gentoo Foundation
86 # Distributed under the terms of the GNU General Public License v2
87 # $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.4.4-r5.ebuild,v 1.1 2009/06/01 16:30:48 hwoarang Exp $
88
89 EAPI="2"
90
91 inherit distutils qt4
92
93 MY_P=PyQt-x11-gpl-${PV}
94 QTVER="4.4.2"
95
96 DESCRIPTION="A set of Python bindings for the Qt toolkit"
97 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/"
98 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
99
100 SLOT="0"
101 LICENSE="GPL-2"
102 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
103 IUSE="X assistant +dbus debug doc examples opengl phonon +qt3support sql svg webkit xmlpatterns"
104
105 DEPEND=">=dev-python/sip-4.7.8
106 >=x11-libs/qt-core-${QTVER}:4[qt3support?]
107 >=x11-libs/qt-script-${QTVER}:4
108 >=x11-libs/qt-test-${QTVER}:4
109 X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?,qt3support?] )
110 assistant? ( >=x11-libs/qt-assistant-${QTVER}:4 )
111 dbus? (
112 >=dev-python/dbus-python-0.80
113 >=x11-libs/qt-dbus-${QTVER}:4
114 )
115 opengl? ( >=x11-libs/qt-opengl-${QTVER}:4[qt3support?] )
116 phonon? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-sound/phonon ) )
117 qt3support? ( >=x11-libs/qt-qt3support-${QTVER}:4 )
118 sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
119 svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
120 webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
121 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
122 RDEPEND="${DEPEND}"
123
124 S="${WORKDIR}/${MY_P}"
125
126 PATCHES=(
127 "${FILESDIR}/configure.py.patch"
128 "${FILESDIR}/${P}-qgraphicsproxywidget-avoid-event-callback-loop.patch"
129 "${FILESDIR}/fix_license_check.patch"
130 )
131
132 pyqt4_use_enable() {
133 use $1 && echo "--enable=${2:-$1}"
134 }
135
136 src_prepare() {
137 if ! use dbus; then
138 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
139 "${S}"/configure.py || die
140 fi
141 qt4_src_prepare
142 }
143
144 src_configure() {
145 distutils_python_version
146
147 local myconf="${python} configure.py
148 --confirm-license
149 --bindir=/usr/bin
150 --destdir=/usr/$(get_libdir)/python${PYVER}/site-packages
151 --sipdir=/usr/share/sip
152 $(use debug && echo '--debug')
153 --enable=QtCore
154 --enable=QtNetwork
155 --enable=QtScript
156 --enable=QtTest
157 --enable=QtXml
158 $(pyqt4_use_enable X QtGui)
159 $(pyqt4_use_enable X QtDesigner)
160 $(pyqt4_use_enable assistant QtAssistant)
161 $(pyqt4_use_enable assistant QtHelp)
162 $(pyqt4_use_enable opengl QtOpenGL)
163 $(pyqt4_use_enable phonon)
164 $(pyqt4_use_enable sql QtSql)
165 $(pyqt4_use_enable svg QtSvg)
166 $(pyqt4_use_enable webkit QtWebKit)
167 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)"
168 echo ${myconf}
169 ${myconf} || die "configuration failed"
170
171 # Fix insecure runpath
172 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}/qpy/QtDesigner::" \
173 "${S}"/QtDesigner/Makefile || die
174 }
175
176 src_install() {
177 # INSTALL_ROOT is needed for the QtDesigner module,
178 # the other Makefiles use DESTDIR.
179 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "installation failed"
180
181 dodoc ChangeLog NEWS THANKS || die
182
183 if use doc; then
184 dohtml -r doc/html/* || die
185 fi
186
187 if use examples; then
188 insinto /usr/share/doc/${PF}
189 doins -r examples || die
190 fi
191 }