Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyQt5/
Date: Thu, 27 Dec 2018 19:49:38
Message-Id: 1545940151.082b4da4012eaca5a5a4b17e2cd2300e90eabba1.pesa@gentoo
1 commit: 082b4da4012eaca5a5a4b17e2cd2300e90eabba1
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 27 19:42:15 2018 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 27 19:49:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=082b4da4
7
8 dev-python/PyQt5: remove broken 5.11.3
9
10 Bug: https://bugs.gentoo.org/668014
11 Package-Manager: Portage-2.3.52, Repoman-2.3.12
12 Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>
13
14 dev-python/PyQt5/Manifest | 1 -
15 dev-python/PyQt5/PyQt5-5.11.3.ebuild | 195 -----------------------------------
16 2 files changed, 196 deletions(-)
17
18 diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest
19 index 7571168f27d..95c07f65171 100644
20 --- a/dev-python/PyQt5/Manifest
21 +++ b/dev-python/PyQt5/Manifest
22 @@ -1,4 +1,3 @@
23 DIST PyQt5_gpl-5.10.1.tar.gz 3110469 BLAKE2B 75e24bd8c0739d47eff6212435aa783eaa302633beb0494f099edc3f8f99600cd03dc3cba5152ed7ae703cfe445ecae06ec5d2281dd7c0640c71db041659bd6f SHA512 04cd0292f7a088f9c0d088d7c73ec96cfc40253f771dfdf194eb92be7635e6fcaf04863fa24215e9c34a096658549bb2feeb8d8fdca1e39ed87f0256ef0f790b
24 -DIST PyQt5_gpl-5.11.3.tar.gz 3121036 BLAKE2B e7881fea18535ba55c0b6946718fd1eccdc6a4678b869678c9413c500daee0cbfb281116db40a13655c8cb5e778b605f141821e20bf3834f1434908f73fc22bd SHA512 6f4abb1866ce357263c208121607072e127c8853e9c6bf039b034fefdda4c40e38f917c3b313375f0d692d764ecf26ff3a6b12cda2a2eeb5237db8b5e9443548
25 DIST PyQt5_gpl-5.12.dev1812231618.tar.gz 3120289 BLAKE2B 2d48eaa39090ed60f971b84c96d148fba05c58fe15196f9a99c7a6c8302f364623dd0e1f0cc16d6fb527606cabf6cb072316319252b65f44c9652c1d95ca9fa6 SHA512 6a95fb02fe1eea3e7fb9a03da457a036f92f5404074e7234eeb52e5941bd247343e3d34d4054dc5a604b380fc2a227f7fe5ae250fcd4449da4a3fe856ab8eba3
26 DIST PyQt5_gpl-5.9.2.tar.gz 3102848 BLAKE2B b87f25693aa2b20211119f89cf13665bf88f14de8827d43ba757344ab9bdef0b0c197abb8386308c72925da263cabb6efd3f104db8a350c51fca3fba8c7c06b6 SHA512 5af2e65addaed7dd02d8dbf7a7c63767e565fc8edeb7b51e5991a00cda29f75b666529097646e821aaff556f350a929fd451f548bba76e97355b7fe10bd913bc
27
28 diff --git a/dev-python/PyQt5/PyQt5-5.11.3.ebuild b/dev-python/PyQt5/PyQt5-5.11.3.ebuild
29 deleted file mode 100644
30 index b072e6d3cd7..00000000000
31 --- a/dev-python/PyQt5/PyQt5-5.11.3.ebuild
32 +++ /dev/null
33 @@ -1,195 +0,0 @@
34 -# Copyright 1999-2018 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
40 -inherit multibuild python-r1 qmake-utils
41 -
42 -DESCRIPTION="Python bindings for the Qt framework"
43 -HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/intro"
44 -
45 -MY_P=${PN}_gpl-${PV/_pre/.dev}
46 -if [[ ${PV} == *_pre* ]]; then
47 - SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
48 -else
49 - SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
50 -fi
51 -
52 -LICENSE="GPL-3"
53 -SLOT="0"
54 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
55 -
56 -# TODO: QtNetworkAuth, QtNfc
57 -IUSE="bluetooth dbus debug declarative designer examples gles2 gui help location
58 - multimedia network opengl positioning printsupport sensors serialport sql svg
59 - testlib webchannel webengine webkit websockets widgets x11extras xmlpatterns"
60 -
61 -# The requirements below were extracted from configure.py
62 -# and from the output of 'grep -r "%Import " "${S}"/sip'
63 -REQUIRED_USE="
64 - ${PYTHON_REQUIRED_USE}
65 - bluetooth? ( gui )
66 - declarative? ( gui network )
67 - designer? ( widgets )
68 - help? ( gui widgets )
69 - location? ( positioning )
70 - multimedia? ( gui network )
71 - opengl? ( gui widgets )
72 - positioning? ( gui )
73 - printsupport? ( gui widgets )
74 - sensors? ( gui )
75 - serialport? ( gui )
76 - sql? ( widgets )
77 - svg? ( gui widgets )
78 - testlib? ( widgets )
79 - webchannel? ( network )
80 - webengine? ( network widgets? ( printsupport webchannel ) )
81 - webkit? ( gui network printsupport widgets )
82 - websockets? ( network )
83 - widgets? ( gui )
84 - xmlpatterns? ( network )
85 -"
86 -
87 -# Minimal supported version of Qt.
88 -QT_PV="5.9.6:5"
89 -
90 -RDEPEND="
91 - ${PYTHON_DEPS}
92 - >=dev-python/sip-4.19.11:=[${PYTHON_USEDEP}]
93 - >=dev-qt/qtcore-${QT_PV}
94 - >=dev-qt/qtxml-${QT_PV}
95 - virtual/python-enum34[${PYTHON_USEDEP}]
96 - bluetooth? ( >=dev-qt/qtbluetooth-${QT_PV} )
97 - dbus? (
98 - dev-python/dbus-python[${PYTHON_USEDEP}]
99 - >=dev-qt/qtdbus-${QT_PV}
100 - )
101 - declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] )
102 - designer? ( >=dev-qt/designer-${QT_PV} )
103 - gui? ( >=dev-qt/qtgui-${QT_PV}[gles2=] )
104 - help? ( >=dev-qt/qthelp-${QT_PV} )
105 - location? ( >=dev-qt/qtlocation-${QT_PV} )
106 - multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] )
107 - network? ( >=dev-qt/qtnetwork-${QT_PV} )
108 - opengl? ( >=dev-qt/qtopengl-${QT_PV} )
109 - positioning? ( >=dev-qt/qtpositioning-${QT_PV} )
110 - printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} )
111 - sensors? ( >=dev-qt/qtsensors-${QT_PV} )
112 - serialport? ( >=dev-qt/qtserialport-${QT_PV} )
113 - sql? ( >=dev-qt/qtsql-${QT_PV} )
114 - svg? ( >=dev-qt/qtsvg-${QT_PV} )
115 - testlib? ( >=dev-qt/qttest-${QT_PV} )
116 - webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} )
117 - webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] )
118 - webkit? ( dev-qt/qtwebkit:5[printsupport] )
119 - websockets? ( >=dev-qt/qtwebsockets-${QT_PV} )
120 - widgets? ( >=dev-qt/qtwidgets-${QT_PV} )
121 - x11extras? ( >=dev-qt/qtx11extras-${QT_PV} )
122 - xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
123 -"
124 -DEPEND="${RDEPEND}
125 - dbus? ( virtual/pkgconfig )
126 -"
127 -
128 -S=${WORKDIR}/${MY_P}
129 -
130 -DOCS=( "${S}"/{ChangeLog,NEWS} )
131 -
132 -pyqt_use_enable() {
133 - use "$1" || return
134 -
135 - if [[ $# -eq 1 ]]; then
136 - echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}
137 - else
138 - shift
139 - echo ${@/#/--enable=}
140 - fi
141 -}
142 -
143 -src_configure() {
144 - configuration() {
145 - local myconf=(
146 - "${PYTHON}"
147 - "${S}"/configure.py
148 - $(usex debug '--debug --qml-debug --trace' '')
149 - --verbose
150 - --confirm-license
151 - --qmake="$(qt5_get_bindir)"/qmake
152 - --sip-incdir="$(python_get_includedir)"
153 - --qsci-api
154 - --enable=QtCore
155 - --enable=QtXml
156 - $(pyqt_use_enable bluetooth)
157 - $(pyqt_use_enable dbus QtDBus)
158 - $(usex dbus '' --no-python-dbus)
159 - $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets ''))
160 - $(usex declarative '' --no-qml-plugin)
161 - $(pyqt_use_enable designer)
162 - $(usex designer '' --no-designer-plugin)
163 - $(pyqt_use_enable gui)
164 - $(pyqt_use_enable gui $(use gles2 && echo _QOpenGLFunctions_ES2 || echo _QOpenGLFunctions_{2_0,2_1,4_1_Core}))
165 - $(pyqt_use_enable help)
166 - $(pyqt_use_enable location)
167 - $(pyqt_use_enable multimedia QtMultimedia $(usex widgets QtMultimediaWidgets ''))
168 - $(pyqt_use_enable network)
169 - $(pyqt_use_enable opengl QtOpenGL)
170 - $(pyqt_use_enable positioning)
171 - $(pyqt_use_enable printsupport QtPrintSupport)
172 - $(pyqt_use_enable sensors)
173 - $(pyqt_use_enable serialport QtSerialPort)
174 - $(pyqt_use_enable sql)
175 - $(pyqt_use_enable svg)
176 - $(pyqt_use_enable testlib QtTest)
177 - $(pyqt_use_enable webchannel QtWebChannel)
178 - $(pyqt_use_enable webengine QtWebEngine QtWebEngineCore $(usex widgets QtWebEngineWidgets ''))
179 - $(pyqt_use_enable webkit QtWebKit QtWebKitWidgets)
180 - $(pyqt_use_enable websockets QtWebSockets)
181 - $(pyqt_use_enable widgets)
182 - $(pyqt_use_enable x11extras QtX11Extras)
183 - $(pyqt_use_enable xmlpatterns QtXmlPatterns)
184 - )
185 - echo "${myconf[@]}"
186 - "${myconf[@]}" || die
187 -
188 - eqmake5 -recursive ${PN}.pro
189 - }
190 - python_foreach_impl run_in_build_dir configuration
191 -}
192 -
193 -src_compile() {
194 - python_foreach_impl run_in_build_dir default
195 -}
196 -
197 -src_install() {
198 - installation() {
199 - local tmp_root=${D}/${PN}_tmp_root
200 - # parallel install fails (same issue as qscintilla-python-2.10.8)
201 - emake -j1 INSTALL_ROOT="${tmp_root}" install
202 -
203 - local bin_dir=${tmp_root}${EPREFIX}/usr/bin
204 - local exe
205 - for exe in pylupdate5 pyrcc5 pyuic5; do
206 - python_doexe "${bin_dir}/${exe}"
207 - rm "${bin_dir}/${exe}" || die
208 - done
209 -
210 - local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic
211 - if python_is_python3; then
212 - rm -r "${uic_dir}"/port_v2 || die
213 - else
214 - rm -r "${uic_dir}"/port_v3 || die
215 - fi
216 -
217 - multibuild_merge_root "${tmp_root}" "${D}"
218 - python_optimize
219 - }
220 - python_foreach_impl run_in_build_dir installation
221 -
222 - einstalldocs
223 -
224 - if use examples; then
225 - insinto /usr/share/doc/${PF}
226 - doins -r examples
227 - fi
228 -}