Gentoo Archives: gentoo-commits

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