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, 02 Apr 2019 19:48:46
Message-Id: 1554234396.47a4081c1af00f8842dcf6f15962a5cbb91d65e9.pesa@gentoo
1 commit: 47a4081c1af00f8842dcf6f15962a5cbb91d65e9
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 2 19:46:36 2019 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 2 19:46:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a4081c
7
8 dev-python/PyQt5: drop 5.12_pre snapshot
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>
12
13 dev-python/PyQt5/Manifest | 1 -
14 dev-python/PyQt5/PyQt5-5.12_pre1812231618.ebuild | 196 -----------------------
15 2 files changed, 197 deletions(-)
16
17 diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest
18 index 3bac4297938..8acba5a4f93 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.1.tar.gz 3147086 BLAKE2B d5a018f1fca401b9f70dd16e2a28ea380c8a83f5e18dc8577e317dae5904a7b95f8fe979bf7f574f95e71222c514565fbf051b1de87f97cd2ab70c09d04e86ac SHA512 f8c440bd5e804b9f5fcabbdf1290cee3176f3d676d150c705b64136d2116ccd7b09233672674fe97a4aa521974c9355d44daf7a244b6cda7fa55757332c08e67
24 -DIST PyQt5_gpl-5.12.dev1812231618.tar.gz 3120289 BLAKE2B 2d48eaa39090ed60f971b84c96d148fba05c58fe15196f9a99c7a6c8302f364623dd0e1f0cc16d6fb527606cabf6cb072316319252b65f44c9652c1d95ca9fa6 SHA512 6a95fb02fe1eea3e7fb9a03da457a036f92f5404074e7234eeb52e5941bd247343e3d34d4054dc5a604b380fc2a227f7fe5ae250fcd4449da4a3fe856ab8eba3
25 DIST PyQt5_gpl-5.9.2.tar.gz 3102848 BLAKE2B b87f25693aa2b20211119f89cf13665bf88f14de8827d43ba757344ab9bdef0b0c197abb8386308c72925da263cabb6efd3f104db8a350c51fca3fba8c7c06b6 SHA512 5af2e65addaed7dd02d8dbf7a7c63767e565fc8edeb7b51e5991a00cda29f75b666529097646e821aaff556f350a929fd451f548bba76e97355b7fe10bd913bc
26
27 diff --git a/dev-python/PyQt5/PyQt5-5.12_pre1812231618.ebuild b/dev-python/PyQt5/PyQt5-5.12_pre1812231618.ebuild
28 deleted file mode 100644
29 index c4cd1a3276d..00000000000
30 --- a/dev-python/PyQt5/PyQt5-5.12_pre1812231618.ebuild
31 +++ /dev/null
32 @@ -1,196 +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_P=${PN}_gpl-${PV/_pre/.dev}
45 -if [[ ${PV} == *_pre* ]]; then
46 - SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
47 -else
48 - SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
49 -fi
50 -
51 -LICENSE="GPL-3"
52 -SLOT="0"
53 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
54 -
55 -# TODO: QtNfc, QtRemoteObjects (Qt >= 5.12)
56 -IUSE="bluetooth dbus debug declarative designer examples gles2 gui help location
57 - multimedia network networkauth opengl positioning printsupport sensors
58 - serialport sql svg testlib webchannel webkit websockets widgets x11extras
59 - 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_pre:=[${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 - 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_pre[${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 - --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 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 - $(pyqt_use_enable svg)
177 - $(pyqt_use_enable testlib QtTest)
178 - $(pyqt_use_enable webchannel QtWebChannel)
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 -}