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: Tue, 05 Nov 2019 01:03:39
Message-Id: 1572915808.09b33a21c674e008906448d0cfdabe52e77b67b8.pesa@gentoo
1 commit: 09b33a21c674e008906448d0cfdabe52e77b67b8
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 5 01:03:08 2019 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 5 01:03:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09b33a21
7
8 dev-python/PyQt5: drop 5.13.0
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>
12
13 dev-python/PyQt5/Manifest | 1 -
14 dev-python/PyQt5/PyQt5-5.13.0.ebuild | 200 -----------------------------------
15 2 files changed, 201 deletions(-)
16
17 diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest
18 index 082b81d4f92..375ec4286cf 100644
19 --- a/dev-python/PyQt5/Manifest
20 +++ b/dev-python/PyQt5/Manifest
21 @@ -1,4 +1,3 @@
22 DIST PyQt5_gpl-5.10.1.tar.gz 3110469 BLAKE2B 75e24bd8c0739d47eff6212435aa783eaa302633beb0494f099edc3f8f99600cd03dc3cba5152ed7ae703cfe445ecae06ec5d2281dd7c0640c71db041659bd6f SHA512 04cd0292f7a088f9c0d088d7c73ec96cfc40253f771dfdf194eb92be7635e6fcaf04863fa24215e9c34a096658549bb2feeb8d8fdca1e39ed87f0256ef0f790b
23 DIST PyQt5_gpl-5.12.2.tar.gz 3147205 BLAKE2B ad0b09548521ceff869bb44cfceb0c2cf31338f46c76da23582f7949fdcc0e8feee3cc0dc0610e8152dfbc701c3ac765eea7898f5061775a92e2601c5b7ea8ca SHA512 dc23bb7dacb305d4f9a630f2b5c3809d5d6734ba234c9941a3c44c770af8534dd737160dbe007a1f15d5c90e2e52419dd749b3ef942b4e71917c1cea2220a666
24 -DIST PyQt5_gpl-5.13.0.tar.gz 3152704 BLAKE2B caa9b11f70b656a23d28f4b7b490df544e82f669e38e51e87316917f015f9cf137a0902333323cfc5c6a13bf446067d5714fb33c091efdce03a0f7cfa8771a15 SHA512 72cdd700956f8a5791fd38cac6a348f189eec9e69f3fd79a0c711ff49c770d4982fe62ec9057830d26abc4c12133922df915be0844449212f0bdf338fe1e4cb0
25 DIST PyQt5_gpl-5.13.1.tar.gz 3162737 BLAKE2B 1242069b757ef7d9532375758ab29954f216f6d8b1fa18e433ab41cf56df13b7408547dd5c58eb0417a011d834ef9301aa090a4e88a9b10d48f15267eccbf6a3 SHA512 7b7001b16a8c730d7ff2d340fa1dd118868b53519e8f75e8c2ce00b44e3637ac6a31b41a7456fc610df11ff3928b924cb54c0c3712f22ed4df5058fd8bc77281
26
27 diff --git a/dev-python/PyQt5/PyQt5-5.13.0.ebuild b/dev-python/PyQt5/PyQt5-5.13.0.ebuild
28 deleted file mode 100644
29 index dc2c0203b8b..00000000000
30 --- a/dev-python/PyQt5/PyQt5-5.13.0.ebuild
31 +++ /dev/null
32 @@ -1,200 +0,0 @@
33 -# Copyright 1999-2019 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
39 -inherit multibuild python-r1 qmake-utils
40 -
41 -DESCRIPTION="Python bindings for the Qt framework"
42 -HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/intro"
43 -
44 -MY_PN=PyQt5
45 -MY_P=${MY_PN}_gpl-${PV/_pre/.dev}
46 -if [[ ${PV} == *_pre* ]]; then
47 - SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
48 -else
49 - SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${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: QtNfc, QtRemoteObjects (Qt >= 5.12)
57 -IUSE="bluetooth dbus debug declarative designer examples gles2 gui help location multimedia
58 - network networkauth opengl positioning printsupport sensors serialport sql +ssl svg
59 - testlib webchannel 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 - networkauth? ( network )
72 - opengl? ( gui widgets )
73 - positioning? ( gui )
74 - printsupport? ( gui widgets )
75 - sensors? ( gui )
76 - serialport? ( gui )
77 - sql? ( widgets )
78 - svg? ( gui widgets )
79 - testlib? ( widgets )
80 - webchannel? ( network )
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.10:5"
89 -
90 -RDEPEND="
91 - ${PYTHON_DEPS}
92 - >=dev-python/PyQt5-sip-4.19.14:=[${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}[ssl=] )
108 - networkauth? ( >=dev-qt/qtnetworkauth-${QT_PV} )
109 - opengl? ( >=dev-qt/qtopengl-${QT_PV} )
110 - positioning? ( >=dev-qt/qtpositioning-${QT_PV} )
111 - printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} )
112 - sensors? ( >=dev-qt/qtsensors-${QT_PV} )
113 - serialport? ( >=dev-qt/qtserialport-${QT_PV} )
114 - sql? ( >=dev-qt/qtsql-${QT_PV} )
115 - svg? ( >=dev-qt/qtsvg-${QT_PV} )
116 - testlib? ( >=dev-qt/qttest-${QT_PV} )
117 - webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} )
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 - >=dev-python/sip-4.19.14[${PYTHON_USEDEP}]
126 - dbus? ( virtual/pkgconfig )
127 -"
128 -
129 -S=${WORKDIR}/${MY_P}
130 -
131 -pyqt_use_enable() {
132 - use "$1" || return
133 -
134 - if [[ $# -eq 1 ]]; then
135 - echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}
136 - else
137 - shift
138 - echo ${@/#/--enable=}
139 - fi
140 -}
141 -
142 -src_configure() {
143 - configuration() {
144 - local myconf=(
145 - "${PYTHON}"
146 - "${S}"/configure.py
147 - $(usex debug '--debug --qml-debug --trace' '')
148 - --verbose
149 - --confirm-license
150 - --qmake="$(qt5_get_bindir)"/qmake
151 - --bindir="${EPREFIX}/usr/bin"
152 - --qsci-api
153 - --enable=QtCore
154 - --enable=QtXml
155 - $(pyqt_use_enable bluetooth)
156 - $(pyqt_use_enable dbus QtDBus)
157 - $(usex dbus '' --no-python-dbus)
158 - $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets ''))
159 - $(usex declarative '' --no-qml-plugin)
160 - $(pyqt_use_enable designer)
161 - $(usex designer '' --no-designer-plugin)
162 - $(usex gles2 '--disable-feature=PyQt_Desktop_OpenGL' '')
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 networkauth QtNetworkAuth)
170 - $(pyqt_use_enable opengl QtOpenGL)
171 - $(pyqt_use_enable positioning)
172 - $(pyqt_use_enable printsupport QtPrintSupport)
173 - $(pyqt_use_enable sensors)
174 - $(pyqt_use_enable serialport QtSerialPort)
175 - $(pyqt_use_enable sql)
176 - $(usex ssl '' '--disable-feature=PyQt_SSL')
177 - $(pyqt_use_enable svg)
178 - $(pyqt_use_enable testlib QtTest)
179 - $(pyqt_use_enable webchannel QtWebChannel)
180 - $(pyqt_use_enable webkit QtWebKit QtWebKitWidgets)
181 - $(pyqt_use_enable websockets QtWebSockets)
182 - $(pyqt_use_enable widgets)
183 - $(pyqt_use_enable x11extras QtX11Extras)
184 - $(pyqt_use_enable xmlpatterns QtXmlPatterns)
185 - )
186 - echo "${myconf[@]}"
187 - "${myconf[@]}" || die
188 -
189 - # Fix parallel install failure
190 - sed -i -e '/INSTALLS += distinfo/i distinfo.depends = install_subtargets' ${MY_PN}.pro || die
191 -
192 - # Run eqmake to respect toolchain and build flags
193 - eqmake5 -recursive ${MY_PN}.pro
194 - }
195 - python_foreach_impl run_in_build_dir configuration
196 -}
197 -
198 -src_compile() {
199 - python_foreach_impl run_in_build_dir default
200 -}
201 -
202 -src_install() {
203 - installation() {
204 - local tmp_root=${D}/${MY_PN}_tmp_root
205 - emake INSTALL_ROOT="${tmp_root}" install
206 -
207 - local bin_dir=${tmp_root}${EPREFIX}/usr/bin
208 - local exe
209 - for exe in pylupdate5 pyrcc5 pyuic5; do
210 - python_doexe "${bin_dir}/${exe}"
211 - rm "${bin_dir}/${exe}" || die
212 - done
213 -
214 - local uic_dir=${tmp_root}$(python_get_sitedir)/${MY_PN}/uic
215 - if python_is_python3; then
216 - rm -r "${uic_dir}"/port_v2 || die
217 - else
218 - rm -r "${uic_dir}"/port_v3 || die
219 - fi
220 -
221 - multibuild_merge_root "${tmp_root}" "${D}"
222 - python_optimize
223 - }
224 - python_foreach_impl run_in_build_dir installation
225 -
226 - einstalldocs
227 -
228 - if use examples; then
229 - insinto /usr/share/doc/${PF}
230 - doins -r examples
231 - fi
232 -}