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.ebuild
Date: Tue, 09 Jun 2009 18:53:59
Message-Id: E1ME6SL-0005NF-SD@stork.gentoo.org
1 hwoarang 09/06/09 18:53:57
2
3 Modified: ChangeLog
4 Added: PyQt4-4.5.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.62 dev-python/PyQt4/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.62&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.62&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.61&r2=1.62
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v
19 retrieving revision 1.61
20 retrieving revision 1.62
21 diff -u -r1.61 -r1.62
22 --- ChangeLog 5 Jun 2009 10:41:17 -0000 1.61
23 +++ ChangeLog 9 Jun 2009 18:53:57 -0000 1.62
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.61 2009/06/05 10:41:17 yngwin Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.62 2009/06/09 18:53:57 hwoarang Exp $
29 +
30 +*PyQt4-4.5 (09 Jun 2009)
31 +
32 + 09 Jun 2009; Markos Chandras <hwoarang@g.o> +PyQt4-4.5.ebuild:
33 + Version bump
34
35 05 Jun 2009; Ben de Groot <yngwin@g.o> PyQt4-4.4.4-r5.ebuild:
36 Specify !kde for qt-phonon dep
37
38
39
40 1.1 dev-python/PyQt4/PyQt4-4.5.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.ebuild?rev=1.1&content-type=text/plain
44
45 Index: PyQt4-4.5.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.ebuild,v 1.1 2009/06/09 18:53:57 hwoarang Exp $
50
51 EAPI="2"
52
53 inherit distutils 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 +qt3support sql svg webkit xmlpatterns"
66
67 DEPEND=">=dev-python/sip-4.8
68 >=x11-libs/qt-core-${QTVER}:4[qt3support?]
69 >=x11-libs/qt-script-${QTVER}:4
70 >=x11-libs/qt-test-${QTVER}:4
71 X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?,qt3support?] )
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[qt3support?] )
78 phonon? (
79 !kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-sound/phonon ) )
80 kde? ( media-sound/phonon )
81 )
82 qt3support? ( >=x11-libs/qt-qt3support-${QTVER}:4 )
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 "${FILESDIR}/fix_license_check.patch"
94 )
95
96 pyqt4_use_enable() {
97 use $1 && echo "--enable=${2:-$1}"
98 }
99
100 src_prepare() {
101 if ! use dbus; then
102 sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
103 "${S}"/configure.py || die
104 fi
105 qt4_src_prepare
106 }
107
108 src_configure() {
109 distutils_python_version
110
111 local myconf="${python} configure.py
112 --confirm-license
113 --bindir=/usr/bin
114 --destdir=$(python_get_sitedir)
115 --sipdir=/usr/share/sip
116 $(use debug && echo '--debug')
117 --enable=QtCore
118 --enable=QtNetwork
119 --enable=QtScript
120 --enable=QtTest
121 --enable=QtXml
122 $(pyqt4_use_enable X QtGui)
123 $(pyqt4_use_enable X QtDesigner)
124 $(pyqt4_use_enable assistant QtAssistant)
125 $(pyqt4_use_enable assistant QtHelp)
126 $(pyqt4_use_enable opengl QtOpenGL)
127 $(pyqt4_use_enable phonon)
128 $(pyqt4_use_enable sql QtSql)
129 $(pyqt4_use_enable svg QtSvg)
130 $(pyqt4_use_enable webkit QtWebKit)
131 $(pyqt4_use_enable xmlpatterns QtXmlPatterns)"
132 echo ${myconf}
133 ${myconf} || die "configuration failed"
134
135 # Fix insecure runpath
136 if use X ; then
137 for pkg in QtDesigner QtGui QtCore; do
138 sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}/qpy/${pkg}::" \
139 "${S}"/${pkg}/Makefile || die "failed to fix rpath issues"
140 done
141 fi
142 }
143
144 src_install() {
145 python_need_rebuild
146 # INSTALL_ROOT is needed for the QtDesigner module,
147 # the other Makefiles use DESTDIR.
148 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "installation failed"
149
150 dodoc ChangeLog NEWS THANKS || die
151
152 if use doc; then
153 dohtml -r doc/html/* || die
154 fi
155
156 if use examples; then
157 insinto /usr/share/doc/${PF}
158 doins -r examples || die
159 fi
160 }