1 |
pesa 15/07/25 00:05:11 |
2 |
|
3 |
Modified: PyQt5-5.4.2.ebuild ChangeLog |
4 |
Added: PyQt5-5.5.ebuild |
5 |
Log: |
6 |
Version bump; update HOMEPAGE. |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 dev-python/PyQt5/PyQt5-5.4.2.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/PyQt5-5.4.2.ebuild?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/PyQt5-5.4.2.ebuild?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/PyQt5-5.4.2.ebuild?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: PyQt5-5.4.2.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt5/PyQt5-5.4.2.ebuild,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- PyQt5-5.4.2.ebuild 17 Jul 2015 20:00:26 -0000 1.2 |
24 |
+++ PyQt5-5.4.2.ebuild 25 Jul 2015 00:05:11 -0000 1.3 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2015 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt5/PyQt5-5.4.2.ebuild,v 1.2 2015/07/17 20:00:26 maekke Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt5/PyQt5-5.4.2.ebuild,v 1.3 2015/07/25 00:05:11 pesa Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
33 |
@@ -8,7 +8,7 @@ |
34 |
inherit eutils multibuild multilib python-r1 qmake-utils |
35 |
|
36 |
DESCRIPTION="Python bindings for the Qt framework" |
37 |
-HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ |
38 |
+HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/intro |
39 |
https://pypi.python.org/pypi/PyQt5" |
40 |
|
41 |
MY_PN="PyQt-gpl" |
42 |
|
43 |
|
44 |
|
45 |
1.15 dev-python/PyQt5/ChangeLog |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/ChangeLog?rev=1.15&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/ChangeLog?rev=1.15&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/ChangeLog?r1=1.14&r2=1.15 |
50 |
|
51 |
Index: ChangeLog |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt5/ChangeLog,v |
54 |
retrieving revision 1.14 |
55 |
retrieving revision 1.15 |
56 |
diff -u -r1.14 -r1.15 |
57 |
--- ChangeLog 22 Jul 2015 03:08:54 -0000 1.14 |
58 |
+++ ChangeLog 25 Jul 2015 00:05:11 -0000 1.15 |
59 |
@@ -1,6 +1,12 @@ |
60 |
# ChangeLog for dev-python/PyQt5 |
61 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt5/ChangeLog,v 1.14 2015/07/22 03:08:54 pesa Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt5/ChangeLog,v 1.15 2015/07/25 00:05:11 pesa Exp $ |
64 |
+ |
65 |
+*PyQt5-5.5 (25 Jul 2015) |
66 |
+ |
67 |
+ 25 Jul 2015; Davide Pesavento <pesa@g.o> +PyQt5-5.5.ebuild, |
68 |
+ PyQt5-5.4.2.ebuild: |
69 |
+ Version bump; update HOMEPAGE. |
70 |
|
71 |
22 Jul 2015; Davide Pesavento <pesa@g.o> -PyQt5-5.4.1.ebuild: |
72 |
old |
73 |
|
74 |
|
75 |
|
76 |
1.1 dev-python/PyQt5/PyQt5-5.5.ebuild |
77 |
|
78 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/PyQt5-5.5.ebuild?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt5/PyQt5-5.5.ebuild?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: PyQt5-5.5.ebuild |
82 |
=================================================================== |
83 |
# Copyright 1999-2015 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt5/PyQt5-5.5.ebuild,v 1.1 2015/07/25 00:05:11 pesa Exp $ |
86 |
|
87 |
EAPI=5 |
88 |
PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
89 |
|
90 |
inherit eutils multibuild multilib python-r1 qmake-utils |
91 |
|
92 |
DESCRIPTION="Python bindings for the Qt framework" |
93 |
HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/intro |
94 |
https://pypi.python.org/pypi/PyQt5" |
95 |
|
96 |
MY_PN="PyQt-gpl" |
97 |
if [[ ${PV} == *_pre* ]]; then |
98 |
MY_P=${MY_PN}-${PV%_pre*}-snapshot-${REVISION} |
99 |
SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" |
100 |
else |
101 |
MY_P=${MY_PN}-${PV} |
102 |
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz" |
103 |
fi |
104 |
|
105 |
LICENSE="GPL-3" |
106 |
SLOT="0" |
107 |
KEYWORDS="~amd64 ~arm ~x86" |
108 |
|
109 |
# TODO: QtBluetooth, QtLocation, QtNfc, QtWebEngineWidgets |
110 |
IUSE="dbus debug declarative designer doc examples gles2 gui help multimedia |
111 |
network opengl positioning printsupport sensors serialport sql svg |
112 |
testlib webchannel webkit websockets widgets x11extras xmlpatterns" |
113 |
REQUIRED_USE=" |
114 |
${PYTHON_REQUIRED_USE} |
115 |
positioning? ( gui ) |
116 |
sensors? ( gui ) |
117 |
serialport? ( gui ) |
118 |
sql? ( widgets ) |
119 |
testlib? ( widgets ) |
120 |
webchannel? ( network ) |
121 |
" |
122 |
|
123 |
# Minimal supported version of Qt. |
124 |
QT_PV="5.4.2:5" |
125 |
|
126 |
RDEPEND=" |
127 |
${PYTHON_DEPS} |
128 |
>=dev-python/sip-4.16.6:=[${PYTHON_USEDEP}] |
129 |
>=dev-qt/qtcore-${QT_PV} |
130 |
>=dev-qt/qtxml-${QT_PV} |
131 |
dbus? ( |
132 |
dev-python/dbus-python[${PYTHON_USEDEP}] |
133 |
>=dev-qt/qtdbus-${QT_PV} |
134 |
) |
135 |
declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] ) |
136 |
designer? ( >=dev-qt/designer-${QT_PV} ) |
137 |
gui? ( >=dev-qt/qtgui-${QT_PV}[gles2=] ) |
138 |
help? ( >=dev-qt/qthelp-${QT_PV} ) |
139 |
multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] ) |
140 |
network? ( >=dev-qt/qtnetwork-${QT_PV} ) |
141 |
opengl? ( >=dev-qt/qtopengl-${QT_PV} ) |
142 |
positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) |
143 |
printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} ) |
144 |
sensors? ( >=dev-qt/qtsensors-${QT_PV} ) |
145 |
serialport? ( >=dev-qt/qtserialport-${QT_PV} ) |
146 |
sql? ( >=dev-qt/qtsql-${QT_PV} ) |
147 |
svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
148 |
testlib? ( >=dev-qt/qttest-${QT_PV} ) |
149 |
webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) |
150 |
webkit? ( >=dev-qt/qtwebkit-${QT_PV}[printsupport] ) |
151 |
websockets? ( >=dev-qt/qtwebsockets-${QT_PV} ) |
152 |
widgets? ( >=dev-qt/qtwidgets-${QT_PV} ) |
153 |
x11extras? ( >=dev-qt/qtx11extras-${QT_PV} ) |
154 |
xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) |
155 |
" |
156 |
DEPEND="${RDEPEND} |
157 |
dbus? ( virtual/pkgconfig ) |
158 |
" |
159 |
|
160 |
S=${WORKDIR}/${MY_P} |
161 |
|
162 |
src_prepare() { |
163 |
# Avoid automagic dependency. |
164 |
use dbus || rm -fr dbus |
165 |
} |
166 |
|
167 |
pyqt_use_enable() { |
168 |
use "$1" || return |
169 |
|
170 |
if [[ $# -eq 1 ]]; then |
171 |
echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1} |
172 |
else |
173 |
shift |
174 |
echo ${@/#/--enable=} |
175 |
fi |
176 |
} |
177 |
|
178 |
src_configure() { |
179 |
configuration() { |
180 |
local myconf=( |
181 |
"${PYTHON}" |
182 |
"${S}"/configure.py |
183 |
$(use debug && echo --debug --trace) |
184 |
--verbose |
185 |
--confirm-license |
186 |
--qmake="$(qt5_get_bindir)"/qmake |
187 |
--destdir="$(python_get_sitedir)" |
188 |
--qsci-api |
189 |
--enable=QtCore |
190 |
--enable=QtXml |
191 |
$(pyqt_use_enable dbus QtDBus) |
192 |
$(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets '')) |
193 |
$(usex declarative '' --no-qml-plugin) |
194 |
$(pyqt_use_enable designer) |
195 |
$(usex designer '' --no-designer-plugin) |
196 |
$(pyqt_use_enable gui) |
197 |
$(pyqt_use_enable gui $(use gles2 && echo _QOpenGLFunctions_ES2 || echo _QOpenGLFunctions_{2_0,2_1,4_1_Core})) |
198 |
$(pyqt_use_enable help) |
199 |
$(pyqt_use_enable multimedia QtMultimedia $(usex widgets QtMultimediaWidgets '')) |
200 |
$(pyqt_use_enable network) |
201 |
$(pyqt_use_enable opengl QtOpenGL) |
202 |
$(pyqt_use_enable positioning) |
203 |
$(pyqt_use_enable printsupport QtPrintSupport) |
204 |
$(pyqt_use_enable sensors) |
205 |
$(pyqt_use_enable serialport QtSerialPort) |
206 |
$(pyqt_use_enable sql) |
207 |
$(pyqt_use_enable svg) |
208 |
$(pyqt_use_enable testlib QtTest) |
209 |
$(pyqt_use_enable webchannel QtWebChannel) |
210 |
$(pyqt_use_enable webkit QtWebKit QtWebKitWidgets) |
211 |
$(pyqt_use_enable websockets QtWebSockets) |
212 |
$(pyqt_use_enable widgets) |
213 |
$(pyqt_use_enable x11extras QtX11Extras) |
214 |
$(pyqt_use_enable xmlpatterns QtXmlPatterns) |
215 |
) |
216 |
echo "${myconf[@]}" |
217 |
"${myconf[@]}" || die |
218 |
|
219 |
eqmake5 -recursive ${PN}.pro |
220 |
} |
221 |
python_foreach_impl run_in_build_dir configuration |
222 |
} |
223 |
|
224 |
src_compile() { |
225 |
python_foreach_impl run_in_build_dir default |
226 |
} |
227 |
|
228 |
src_install() { |
229 |
installation() { |
230 |
local tmp_root=${D%/}/tmp |
231 |
emake INSTALL_ROOT="${tmp_root}" install |
232 |
|
233 |
local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic |
234 |
if python_is_python3; then |
235 |
rm -r "${uic_dir}"/port_v2 || die |
236 |
else |
237 |
rm -r "${uic_dir}"/port_v3 || die |
238 |
fi |
239 |
|
240 |
python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic5 |
241 |
rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic5 || die |
242 |
|
243 |
multibuild_merge_root "${tmp_root}" "${D}" |
244 |
python_optimize |
245 |
} |
246 |
python_foreach_impl run_in_build_dir installation |
247 |
|
248 |
dodoc ChangeLog NEWS |
249 |
|
250 |
if use doc; then |
251 |
dodoc -r doc/html |
252 |
fi |
253 |
|
254 |
if use examples; then |
255 |
insinto /usr/share/doc/${PF} |
256 |
doins -r examples |
257 |
fi |
258 |
} |