1 |
hwoarang 11/12/24 08:55:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: PyQt4-4.9.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha71/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.162 dev-python/PyQt4/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.162&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.162&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.161&r2=1.162 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v |
20 |
retrieving revision 1.161 |
21 |
retrieving revision 1.162 |
22 |
diff -u -r1.161 -r1.162 |
23 |
--- ChangeLog 11 Nov 2011 19:40:39 -0000 1.161 |
24 |
+++ ChangeLog 24 Dec 2011 08:55:10 -0000 1.162 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-python/PyQt4 |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.161 2011/11/11 19:40:39 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.162 2011/12/24 08:55:10 hwoarang Exp $ |
30 |
+ |
31 |
+*PyQt4-4.9 (24 Dec 2011) |
32 |
+ |
33 |
+ 24 Dec 2011; Markos Chandras <hwoarang@g.o> +PyQt4-4.9.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
*PyQt4-4.8.6 (11 Nov 2011) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-python/PyQt4/PyQt4-4.9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: PyQt4-4.9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 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.9.ebuild,v 1.1 2011/12/24 08:55:10 hwoarang Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
PYTHON_DEPEND="*" |
54 |
PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
55 |
SUPPORT_PYTHON_ABIS="1" |
56 |
RESTRICT_PYTHON_ABIS="*-jython *-pypy-*" |
57 |
|
58 |
inherit python qt4-r2 toolchain-funcs |
59 |
|
60 |
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}" |
61 |
|
62 |
# Minimal supported version of Qt. |
63 |
QT_VER="4.6.2" |
64 |
|
65 |
DESCRIPTION="Python bindings for the Qt toolkit" |
66 |
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt" |
67 |
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz" |
68 |
|
69 |
LICENSE="|| ( GPL-2 GPL-3 )" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
72 |
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns" |
73 |
|
74 |
DEPEND=">=dev-python/sip-4.13.1 |
75 |
>=x11-libs/qt-core-${QT_VER}:4 |
76 |
>=x11-libs/qt-script-${QT_VER}:4 |
77 |
>=x11-libs/qt-test-${QT_VER}:4 |
78 |
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] ) |
79 |
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 ) |
80 |
dbus? ( |
81 |
>=dev-python/dbus-python-0.80 |
82 |
>=x11-libs/qt-dbus-${QT_VER}:4 |
83 |
) |
84 |
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 ) |
85 |
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 ) |
86 |
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) ) |
87 |
phonon? ( |
88 |
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) ) |
89 |
kde? ( media-libs/phonon ) |
90 |
) |
91 |
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 ) |
92 |
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 ) |
93 |
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 ) |
94 |
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )" |
95 |
RDEPEND="${DEPEND}" |
96 |
|
97 |
S="${WORKDIR}/${MY_P}" |
98 |
|
99 |
PATCHES=( |
100 |
"${FILESDIR}/${PN}-4.7.2-configure.py.patch" |
101 |
) |
102 |
|
103 |
src_prepare() { |
104 |
if ! use dbus; then |
105 |
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed" |
106 |
fi |
107 |
|
108 |
# Support qreal for arm architecture (bug #322349). |
109 |
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch" |
110 |
|
111 |
qt4-r2_src_prepare |
112 |
|
113 |
# Use proper include directory. |
114 |
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed" |
115 |
|
116 |
python_copy_sources |
117 |
|
118 |
preparation() { |
119 |
if [[ "$(python_get_version --major)" == "3" ]]; then |
120 |
rm -fr pyuic/uic/port_v2 |
121 |
else |
122 |
rm -fr pyuic/uic/port_v3 |
123 |
fi |
124 |
} |
125 |
python_execute_function -s preparation |
126 |
} |
127 |
|
128 |
pyqt4_use_enable() { |
129 |
use $1 && echo "--enable=${2:-$1}" |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
configuration() { |
134 |
local myconf=("$(PYTHON)" |
135 |
configure.py |
136 |
--confirm-license |
137 |
--bindir="${EPREFIX}/usr/bin" |
138 |
--destdir="${EPREFIX}$(python_get_sitedir)" |
139 |
--sipdir="${EPREFIX}/usr/share/sip" |
140 |
--qsci-api |
141 |
$(use debug && echo --debug) |
142 |
--enable=QtCore |
143 |
--enable=QtNetwork |
144 |
--enable=QtScript |
145 |
--enable=QtTest |
146 |
--enable=QtXml |
147 |
$(pyqt4_use_enable X QtDesigner) |
148 |
$(pyqt4_use_enable X QtGui) |
149 |
$(pyqt4_use_enable X QtScriptTools) |
150 |
# QtAssistant module is not available with Qt >=4.7.0. |
151 |
$(pyqt4_use_enable assistant QtAssistant) |
152 |
$(pyqt4_use_enable assistant QtHelp) |
153 |
$(pyqt4_use_enable dbus QtDBus) |
154 |
$(pyqt4_use_enable declarative QtDeclarative) |
155 |
$(pyqt4_use_enable multimedia QtMultimedia) |
156 |
$(pyqt4_use_enable opengl QtOpenGL) |
157 |
$(pyqt4_use_enable phonon) |
158 |
$(pyqt4_use_enable sql QtSql) |
159 |
$(pyqt4_use_enable svg QtSvg) |
160 |
$(pyqt4_use_enable webkit QtWebKit) |
161 |
$(pyqt4_use_enable xmlpatterns QtXmlPatterns) |
162 |
CC="$(tc-getCC)" |
163 |
CXX="$(tc-getCXX)" |
164 |
LINK="$(tc-getCXX)" |
165 |
LINK_SHLIB="$(tc-getCXX)" |
166 |
CFLAGS="${CFLAGS}" |
167 |
CXXFLAGS="${CXXFLAGS}" |
168 |
LFLAGS="${LDFLAGS}") |
169 |
echo "${myconf[@]}" |
170 |
"${myconf[@]}" || return 1 |
171 |
|
172 |
local mod |
173 |
for mod in QtCore $(use X && echo QtDesigner QtGui) $(use declarative && echo QtDeclarative) $(use opengl && echo QtOpenGL); do |
174 |
# Run eqmake4 inside the qpy subdirectories to respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS and avoid stripping. |
175 |
pushd qpy/${mod} > /dev/null || return 1 |
176 |
eqmake4 $(ls w_qpy*.pro) |
177 |
popd > /dev/null || return 1 |
178 |
|
179 |
# Fix insecure runpaths. |
180 |
sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of runpaths failed" |
181 |
done |
182 |
|
183 |
# Avoid stripping of libpythonplugin.so. |
184 |
if use X; then |
185 |
pushd designer > /dev/null || return 1 |
186 |
eqmake4 python.pro |
187 |
popd > /dev/null || return 1 |
188 |
fi |
189 |
} |
190 |
python_execute_function -s configuration |
191 |
} |
192 |
|
193 |
src_compile() { |
194 |
python_src_compile |
195 |
} |
196 |
|
197 |
src_install() { |
198 |
installation() { |
199 |
# INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR. |
200 |
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install |
201 |
} |
202 |
python_execute_function -s installation |
203 |
|
204 |
dodoc NEWS THANKS || die "dodoc failed" |
205 |
|
206 |
if use doc; then |
207 |
dohtml -r doc/html/* || die "dohtml failed" |
208 |
fi |
209 |
|
210 |
if use examples; then |
211 |
insinto /usr/share/doc/${PF} |
212 |
doins -r examples || die "doins failed" |
213 |
fi |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
python_mod_optimize PyQt4 |
218 |
|
219 |
ewarn "When updating dev-python/PyQt4, you usually need to rebuild packages, which depend on" |
220 |
ewarn "dev-python/PyQt4, such as dev-python/qscintilla-python. If you have app-portage/gentoolkit" |
221 |
ewarn "installed, you can find these packages with \`equery d dev-python/PyQt4\`." |
222 |
} |
223 |
|
224 |
pkg_postrm() { |
225 |
python_mod_cleanup PyQt4 |
226 |
} |