1 |
pesa 14/11/01 02:58:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: PyQt4-4.11.3_pre20141024.ebuild |
5 |
Removed: PyQt4-4.11.2-r1.ebuild |
6 |
Log: |
7 |
Bump to 4.11.3 prerelease, which contains upstream fixes for bugs #525392 and #525470. Also switch to out-of-source builds. |
8 |
|
9 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.275 dev-python/PyQt4/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.275&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.275&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.274&r2=1.275 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v |
21 |
retrieving revision 1.274 |
22 |
retrieving revision 1.275 |
23 |
diff -u -r1.274 -r1.275 |
24 |
--- ChangeLog 15 Oct 2014 14:48:47 -0000 1.274 |
25 |
+++ ChangeLog 1 Nov 2014 02:58:19 -0000 1.275 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for dev-python/PyQt4 |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.274 2014/10/15 14:48:47 pesa Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.275 2014/11/01 02:58:19 pesa Exp $ |
31 |
+ |
32 |
+*PyQt4-4.11.3_pre20141024 (01 Nov 2014) |
33 |
+ |
34 |
+ 01 Nov 2014; Davide Pesavento <pesa@g.o> |
35 |
+ +PyQt4-4.11.3_pre20141024.ebuild, -PyQt4-4.11.2-r1.ebuild: |
36 |
+ Bump to 4.11.3 prerelease, which contains upstream fixes for bugs #525392 and |
37 |
+ #525470. Also switch to out-of-source builds. |
38 |
|
39 |
15 Oct 2014; Davide Pesavento <pesa@g.o> PyQt4-4.11.2-r1.ebuild: |
40 |
Fix bug #525392. |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-python/PyQt4/PyQt4-4.11.3_pre20141024.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.11.3_pre20141024.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.11.3_pre20141024.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: PyQt4-4.11.3_pre20141024.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2014 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.11.3_pre20141024.ebuild,v 1.1 2014/11/01 02:58:19 pesa Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
57 |
|
58 |
inherit eutils multibuild python-r1 qmake-utils |
59 |
|
60 |
DESCRIPTION="Python bindings for the Qt framework" |
61 |
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ https://pypi.python.org/pypi/PyQt4" |
62 |
|
63 |
MY_PN="PyQt-x11-gpl" |
64 |
if [[ ${PV} == *_pre* ]]; then |
65 |
REVISION=adb94530c076 |
66 |
MY_P=${MY_PN}-${PV%_pre*}-snapshot-${REVISION} |
67 |
SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" |
68 |
else |
69 |
MY_P=${MY_PN}-${PV} |
70 |
SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
71 |
fi |
72 |
|
73 |
LICENSE="|| ( GPL-2 GPL-3 )" |
74 |
SLOT="0" |
75 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
76 |
|
77 |
IUSE="X dbus debug declarative designer doc examples help kde multimedia |
78 |
opengl phonon script scripttools sql svg testlib webkit xmlpatterns" |
79 |
REQUIRED_USE=" |
80 |
${PYTHON_REQUIRED_USE} |
81 |
sql? ( X ) |
82 |
testlib? ( X ) |
83 |
" |
84 |
|
85 |
# Minimal supported version of Qt. |
86 |
QT_PV="4.8.5:4" |
87 |
|
88 |
RDEPEND=" |
89 |
${PYTHON_DEPS} |
90 |
>=dev-python/sip-4.16.4:=[${PYTHON_USEDEP}] |
91 |
>=dev-qt/qtcore-${QT_PV} |
92 |
X? ( >=dev-qt/qtgui-${QT_PV} ) |
93 |
dbus? ( |
94 |
dev-python/dbus-python[${PYTHON_USEDEP}] |
95 |
>=dev-qt/qtdbus-${QT_PV} |
96 |
) |
97 |
declarative? ( >=dev-qt/qtdeclarative-${QT_PV} ) |
98 |
designer? ( >=dev-qt/designer-${QT_PV} ) |
99 |
help? ( >=dev-qt/qthelp-${QT_PV} ) |
100 |
multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} ) |
101 |
opengl? ( >=dev-qt/qtopengl-${QT_PV} ) |
102 |
phonon? ( |
103 |
kde? ( >=media-libs/phonon-4.7[qt4] ) |
104 |
!kde? ( || ( >=dev-qt/qtphonon-${QT_PV} >=media-libs/phonon-4.7[qt4] ) ) |
105 |
) |
106 |
script? ( >=dev-qt/qtscript-${QT_PV} ) |
107 |
scripttools? ( >=dev-qt/qtgui-${QT_PV} ) |
108 |
sql? ( >=dev-qt/qtsql-${QT_PV} ) |
109 |
svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
110 |
testlib? ( >=dev-qt/qttest-${QT_PV} ) |
111 |
webkit? ( >=dev-qt/qtwebkit-${QT_PV} ) |
112 |
xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) |
113 |
" |
114 |
DEPEND="${RDEPEND} |
115 |
dbus? ( virtual/pkgconfig ) |
116 |
" |
117 |
|
118 |
S=${WORKDIR}/${MY_P} |
119 |
|
120 |
src_prepare() { |
121 |
# Support qreal on arm architecture (bug 322349). |
122 |
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch" |
123 |
|
124 |
# Allow building against KDE's phonon (bug 525354). |
125 |
epatch "${FILESDIR}/${PN}-4.11.2-phonon.patch" |
126 |
|
127 |
# Avoid automagic dependency. |
128 |
use dbus || rm -fr dbus |
129 |
} |
130 |
|
131 |
pyqt_use_enable() { |
132 |
use $1 && echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}} |
133 |
} |
134 |
|
135 |
src_configure() { |
136 |
local qmake_path=${EPREFIX}/usr/$(get_libdir)/qt4/bin/qmake |
137 |
[[ ! -x ${qmake_path} ]] && qmake_path=${EPREFIX}/usr/bin/qmake |
138 |
|
139 |
configuration() { |
140 |
local myconf=( |
141 |
"${PYTHON}" |
142 |
"${S}"/configure-ng.py |
143 |
--confirm-license |
144 |
--qmake="${qmake_path}" |
145 |
--destdir="$(python_get_sitedir)" |
146 |
--assume-shared |
147 |
--no-timestamp |
148 |
--qsci-api |
149 |
$(use debug && echo --debug) |
150 |
--enable=QtCore |
151 |
--enable=QtNetwork |
152 |
--enable=QtXml |
153 |
$(pyqt_use_enable X QtGui) |
154 |
$(pyqt_use_enable dbus QtDBus) |
155 |
$(pyqt_use_enable declarative) |
156 |
$(pyqt_use_enable designer) |
157 |
$(usex designer '' --no-designer-plugin) |
158 |
$(pyqt_use_enable help) |
159 |
$(pyqt_use_enable multimedia) |
160 |
$(pyqt_use_enable opengl QtOpenGL) |
161 |
$(pyqt_use_enable phonon phonon) |
162 |
$(pyqt_use_enable script) |
163 |
$(pyqt_use_enable scripttools QtScriptTools) |
164 |
$(pyqt_use_enable sql) |
165 |
$(pyqt_use_enable svg) |
166 |
$(pyqt_use_enable testlib QtTest) |
167 |
$(pyqt_use_enable webkit QtWebKit) |
168 |
$(pyqt_use_enable xmlpatterns QtXmlPatterns) |
169 |
) |
170 |
echo "${myconf[@]}" |
171 |
"${myconf[@]}" || die |
172 |
|
173 |
eqmake4 -recursive ${PN}.pro |
174 |
} |
175 |
python_parallel_foreach_impl run_in_build_dir configuration |
176 |
} |
177 |
|
178 |
src_compile() { |
179 |
python_foreach_impl run_in_build_dir default |
180 |
} |
181 |
|
182 |
src_install() { |
183 |
installation() { |
184 |
local tmp_root=${D%/}/tmp |
185 |
emake INSTALL_ROOT="${tmp_root}" install |
186 |
|
187 |
local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic |
188 |
if python_is_python3; then |
189 |
rm -r "${uic_dir}"/port_v2 || die |
190 |
else |
191 |
rm -r "${uic_dir}"/port_v3 || die |
192 |
fi |
193 |
|
194 |
python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 |
195 |
rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die |
196 |
|
197 |
multibuild_merge_root "${tmp_root}" "${D}" |
198 |
python_optimize |
199 |
} |
200 |
python_foreach_impl run_in_build_dir installation |
201 |
|
202 |
dodoc NEWS THANKS |
203 |
|
204 |
if use doc; then |
205 |
dodoc -r doc/html |
206 |
fi |
207 |
|
208 |
if use examples; then |
209 |
insinto /usr/share/doc/${PF} |
210 |
doins -r examples |
211 |
fi |
212 |
} |