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.5.4.ebuild ChangeLog
Date: Fri, 31 Jul 2009 07:09:47
Message-Id: E1MWmFN-0002AT-Ap@stork.gentoo.org
1 wired 09/07/31 07:09:45
2
3 Modified: ChangeLog
4 Added: PyQt4-4.5.4.ebuild
5 Log:
6 PyQt4 version bump
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.75 dev-python/PyQt4/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.75&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.75&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.74&r2=1.75
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
19 retrieving revision 1.74
20 retrieving revision 1.75
21 diff -u -r1.74 -r1.75
22 --- ChangeLog 27 Jul 2009 17:25:05 -0000 1.74
23 +++ ChangeLog 31 Jul 2009 07:09:45 -0000 1.75
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.74 2009/07/27 17:25:05 nixnut Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.75 2009/07/31 07:09:45 wired Exp $
29 +
30 +*PyQt4-4.5.4 (31 Jul 2009)
31 +
32 + 31 Jul 2009; Alex Alexander <wired@g.o> +PyQt4-4.5.4.ebuild:
33 + version bump
34
35 27 Jul 2009; nixnut <nixnut@g.o> PyQt4-4.4.4-r5.ebuild:
36 ppc stable #276852
37
38
39
40 1.1 dev-python/PyQt4/PyQt4-4.5.4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: PyQt4-4.5.4.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.ebuild,v 1.1 2009/07/31 07:09:45 wired Exp $
50
51 EAPI="2"
52
53 inherit distutils python qt4
54
55 MY_P=PyQt-x11-gpl-${PV}
56 QTVER="4.5.1"
57
58 DESCRIPTION="A set of Python bindings for the Qt toolkit"
59 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/"
60 SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
61
62 SLOT="0"
63 LICENSE="|| ( GPL-2 GPL-3 )"
64 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
65 IUSE="X assistant +dbus debug doc examples kde opengl phonon sql svg webkit xmlpatterns"
66
67 DEPEND=">=dev-python/sip-4.8.2
68 >=x11-libs/qt-core-${QTVER}:4
69 >=x11-libs/qt-script-${QTVER}:4
70 >=x11-libs/qt-test-${QTVER}:4
71 X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?] )
72 assistant? ( >=x11-libs/qt-assistant-${QTVER}:4 )
73 dbus? (
74 >=dev-python/dbus-python-0.80
75 >=x11-libs/qt-dbus-${QTVER}:4
76 )
77 opengl? ( >=x11-libs/qt-opengl-${QTVER}:4 )
78 phonon? (
79 !kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-sound/phonon ) )
80 kde? ( media-sound/phonon )
81 )
82 sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
83 svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
84 webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
85 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
86 RDEPEND="${DEPEND}"
87
88 S="${WORKDIR}/${MY_P}"
89
90 PATCHES=(
91 "${FILESDIR}/configure.py.patch"
92 )
93
94 pyqt4_use_enable() {
95 use $1 && echo "--enable=${2:-$1}"
96 }
97
98 src_prepare() {
99 if ! use dbus; then
100 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
101 "${S}"/configure.py || die
102 fi
103 qt4_src_prepare
104
105 # Remove this code after removing Python 2 from the tree.
106 python_version
107 if [[ "${PYVER:0:1}" == "3" ]]; then
108 rm -fr pyuic/uic/port_v2
109 else
110 rm -fr pyuic/uic/port_v3
111 fi
112 }
113
114 src_configure() {
115 distutils_python_version
116
117 local myconf="${python} configure.py
118 --confirm-license
119 --bindir=/usr/bin
120 --destdir=$(python_get_sitedir)
121 --sipdir=/usr/share/sip
122 $(use debug && echo '--debug')
123 --enable=QtCore
124 --enable=QtNetwork
125 --enable=QtScript
126 --enable=QtTest
127 --enable=QtXml
128 $(pyqt4_use_enable X QtGui)
129 $(pyqt4_use_enable X QtDesigner)
130 $(pyqt4_use_enable assistant QtAssistant)
131 $(pyqt4_use_enable assistant QtHelp)
132 $(pyqt4_use_enable opengl QtOpenGL)
133 $(pyqt4_use_enable phonon)
134 $(pyqt4_use_enable sql QtSql)
135 $(pyqt4_use_enable svg QtSvg)
136 $(pyqt4_use_enable webkit QtWebKit)
137 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)"
138 echo ${myconf}
139 ${myconf} || die "configuration failed"
140
141 # Fix insecure runpath
142 if use X ; then
143 for pkg in QtDesigner QtGui QtCore; do
144 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}/qpy/${pkg}::" \
145 "${S}"/${pkg}/Makefile || die "failed to fix rpath issues"
146 done
147 fi
148 }
149
150 src_install() {
151 python_need_rebuild
152 # INSTALL_ROOT is needed for the QtDesigner module,
153 # the other Makefiles use DESTDIR.
154 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "installation failed"
155
156 dodoc ChangeLog NEWS THANKS || die
157
158 if use doc; then
159 dohtml -r doc/html/* || die
160 fi
161
162 if use examples; then
163 insinto /usr/share/doc/${PF}
164 doins -r examples || die
165 fi
166 }