1 |
pesa 14/05/30 18:30:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: PyQt4-4.11.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.261 dev-python/PyQt4/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.261&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.261&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.260&r2=1.261 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v |
20 |
retrieving revision 1.260 |
21 |
retrieving revision 1.261 |
22 |
diff -u -r1.260 -r1.261 |
23 |
--- ChangeLog 21 May 2014 21:29:32 -0000 1.260 |
24 |
+++ ChangeLog 30 May 2014 18:30:07 -0000 1.261 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-python/PyQt4 |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.260 2014/05/21 21:29:32 pesa Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.261 2014/05/30 18:30:07 pesa Exp $ |
30 |
+ |
31 |
+*PyQt4-4.11 (30 May 2014) |
32 |
+ |
33 |
+ 30 May 2014; Davide Pesavento <pesa@g.o> +PyQt4-4.11.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
21 May 2014; Davide Pesavento <pesa@g.o> PyQt4-4.10.3-r2.ebuild, |
37 |
PyQt4-4.10.3-r3.ebuild, metadata.xml: |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-python/PyQt4/PyQt4-4.11.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.11.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.11.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: PyQt4-4.11.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 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.11.ebuild,v 1.1 2014/05/30 18:30:07 pesa Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
54 |
|
55 |
inherit eutils multibuild python-r1 qmake-utils toolchain-funcs |
56 |
|
57 |
DESCRIPTION="Python bindings for the Qt toolkit" |
58 |
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ https://pypi.python.org/pypi/PyQt4" |
59 |
|
60 |
if [[ ${PV} == *_pre* ]]; then |
61 |
MY_P="PyQt-x11-gpl-snapshot-${PV%_pre*}-${REVISION}" |
62 |
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.gz" |
63 |
else |
64 |
MY_P="PyQt-x11-gpl-${PV}" |
65 |
SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
66 |
fi |
67 |
|
68 |
LICENSE="|| ( GPL-2 GPL-3 )" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
71 |
|
72 |
IUSE="X dbus debug declarative designer doc examples help kde multimedia opengl phonon script scripttools sql svg webkit xmlpatterns" |
73 |
REQUIRED_USE=" |
74 |
${PYTHON_REQUIRED_USE} |
75 |
declarative? ( X ) |
76 |
designer? ( X ) |
77 |
help? ( X ) |
78 |
multimedia? ( X ) |
79 |
opengl? ( X ) |
80 |
phonon? ( X ) |
81 |
scripttools? ( X script ) |
82 |
sql? ( X ) |
83 |
svg? ( X ) |
84 |
webkit? ( X ) |
85 |
" |
86 |
|
87 |
# Minimal supported version of Qt. |
88 |
QT_PV="4.8.0:4" |
89 |
|
90 |
RDEPEND=" |
91 |
${PYTHON_DEPS} |
92 |
>=dev-python/sip-4.16:=[${PYTHON_USEDEP}] |
93 |
>=dev-qt/qtcore-${QT_PV} |
94 |
X? ( |
95 |
>=dev-qt/qtgui-${QT_PV} |
96 |
>=dev-qt/qttest-${QT_PV} |
97 |
) |
98 |
dbus? ( |
99 |
>=dev-python/dbus-python-0.80[${PYTHON_USEDEP}] |
100 |
>=dev-qt/qtdbus-${QT_PV} |
101 |
) |
102 |
declarative? ( >=dev-qt/qtdeclarative-${QT_PV} ) |
103 |
designer? ( || ( dev-qt/designer:4 <dev-qt/qtgui-4.8.5:4 ) ) |
104 |
help? ( >=dev-qt/qthelp-${QT_PV} ) |
105 |
multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} ) |
106 |
opengl? ( >=dev-qt/qtopengl-${QT_PV} ) |
107 |
phonon? ( |
108 |
kde? ( media-libs/phonon ) |
109 |
!kde? ( || ( >=dev-qt/qtphonon-${QT_PV} media-libs/phonon ) ) |
110 |
) |
111 |
script? ( >=dev-qt/qtscript-${QT_PV} ) |
112 |
sql? ( >=dev-qt/qtsql-${QT_PV} ) |
113 |
svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
114 |
webkit? ( >=dev-qt/qtwebkit-${QT_PV} ) |
115 |
xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) |
116 |
" |
117 |
DEPEND="${RDEPEND} |
118 |
dbus? ( virtual/pkgconfig ) |
119 |
" |
120 |
|
121 |
S=${WORKDIR}/${MY_P} |
122 |
|
123 |
src_prepare() { |
124 |
# Support qreal on arm architecture (bug 322349). |
125 |
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch" |
126 |
|
127 |
# Allow building against KDE's phonon (bug 433944 and others). |
128 |
sed -i \ |
129 |
-e "s:VideoWidget()\":&, extra_include_dirs=[\"${EPREFIX}/usr/include/qt4/QtGui\"]:" \ |
130 |
-e "s:^\s\+generate_code(\"phonon\":&, extra_include_dirs=[\"${EPREFIX}/usr/include/phonon\"]:" \ |
131 |
configure.py || die |
132 |
|
133 |
if ! use dbus; then |
134 |
sed -i -e 's/^\(\s\+\)check_dbus()/\1pass/' configure.py || die |
135 |
fi |
136 |
|
137 |
python_copy_sources |
138 |
|
139 |
preparation() { |
140 |
if [[ ${EPYTHON} == python3.* ]]; then |
141 |
rm -fr pyuic/uic/port_v2 |
142 |
else |
143 |
rm -fr pyuic/uic/port_v3 |
144 |
fi |
145 |
} |
146 |
python_foreach_impl run_in_build_dir preparation |
147 |
} |
148 |
|
149 |
pyqt4_use_enable() { |
150 |
use $1 && echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}} |
151 |
} |
152 |
|
153 |
src_configure() { |
154 |
configuration() { |
155 |
local myconf=( |
156 |
"${PYTHON}" configure.py |
157 |
--confirm-license |
158 |
--bindir="${EPREFIX}/usr/bin" |
159 |
--destdir="$(python_get_sitedir)" |
160 |
--sipdir="${EPREFIX}/usr/share/sip" |
161 |
--assume-shared |
162 |
--no-timestamp |
163 |
--qsci-api |
164 |
$(use debug && echo --debug) |
165 |
--enable=QtCore |
166 |
--enable=QtNetwork |
167 |
--enable=QtXml |
168 |
$(pyqt4_use_enable X QtGui) |
169 |
$(pyqt4_use_enable X QtTest) |
170 |
$(pyqt4_use_enable dbus QtDBus) |
171 |
$(pyqt4_use_enable declarative) |
172 |
$(pyqt4_use_enable designer) $(use designer || echo --no-designer-plugin) |
173 |
$(pyqt4_use_enable help) |
174 |
$(pyqt4_use_enable multimedia) |
175 |
$(pyqt4_use_enable opengl QtOpenGL) |
176 |
$(pyqt4_use_enable phonon phonon) |
177 |
$(pyqt4_use_enable script) |
178 |
$(pyqt4_use_enable scripttools QtScriptTools) |
179 |
$(pyqt4_use_enable sql) |
180 |
$(pyqt4_use_enable svg) |
181 |
$(pyqt4_use_enable webkit QtWebKit) |
182 |
$(pyqt4_use_enable xmlpatterns QtXmlPatterns) |
183 |
AR="$(tc-getAR) cqs" |
184 |
CC="$(tc-getCC)" |
185 |
CFLAGS="${CFLAGS}" |
186 |
CFLAGS_RELEASE= |
187 |
CXX="$(tc-getCXX)" |
188 |
CXXFLAGS="${CXXFLAGS}" |
189 |
CXXFLAGS_RELEASE= |
190 |
LINK="$(tc-getCXX)" |
191 |
LINK_SHLIB="$(tc-getCXX)" |
192 |
LFLAGS="${LDFLAGS}" |
193 |
LFLAGS_RELEASE= |
194 |
RANLIB= |
195 |
STRIP= |
196 |
) |
197 |
echo "${myconf[@]}" |
198 |
"${myconf[@]}" || die |
199 |
|
200 |
local mod |
201 |
for mod in QtCore \ |
202 |
$(use X && echo QtGui) \ |
203 |
$(use dbus && echo QtDBus) \ |
204 |
$(use declarative && echo QtDeclarative) \ |
205 |
$(use designer && echo QtDesigner) \ |
206 |
$(use opengl && echo QtOpenGL); do |
207 |
# Run eqmake4 inside the qpy subdirectories to respect |
208 |
# CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS and avoid stripping. |
209 |
pushd qpy/${mod} > /dev/null || return |
210 |
eqmake4 $(ls w_qpy*.pro) |
211 |
popd > /dev/null || return |
212 |
|
213 |
# Fix insecure runpaths. |
214 |
sed -i -e "/^LFLAGS\s*=/ s:-Wl,-rpath,${BUILD_DIR}/qpy/${mod}::" \ |
215 |
${mod}/Makefile || die "failed to fix rpath for ${mod}" |
216 |
done |
217 |
|
218 |
# Avoid stripping of libpythonplugin.so. |
219 |
if use designer; then |
220 |
pushd designer > /dev/null || return |
221 |
eqmake4 python.pro |
222 |
popd > /dev/null || return |
223 |
fi |
224 |
} |
225 |
python_parallel_foreach_impl run_in_build_dir configuration |
226 |
} |
227 |
|
228 |
src_compile() { |
229 |
python_foreach_impl run_in_build_dir default |
230 |
} |
231 |
|
232 |
src_install() { |
233 |
installation() { |
234 |
local tmp_root=${D%/}/tmp |
235 |
|
236 |
# INSTALL_ROOT is used by designer/Makefile, other Makefiles use DESTDIR. |
237 |
emake DESTDIR="${tmp_root}" INSTALL_ROOT="${tmp_root}" install |
238 |
|
239 |
python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 |
240 |
rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die |
241 |
|
242 |
multibuild_merge_root "${tmp_root}" "${D}" |
243 |
python_optimize |
244 |
} |
245 |
python_foreach_impl run_in_build_dir installation |
246 |
|
247 |
dodoc NEWS THANKS |
248 |
|
249 |
if use doc; then |
250 |
dohtml -r doc/html/* |
251 |
fi |
252 |
|
253 |
if use examples; then |
254 |
insinto /usr/share/doc/${PF} |
255 |
doins -r examples |
256 |
fi |
257 |
} |