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, 01 Feb 2018 19:24:40
Message-Id: 1517512557.890b10abc4fb0ffb3a7b4ae60696bae96ad5ac11.pesa@gentoo
1 commit: 890b10abc4fb0ffb3a7b4ae60696bae96ad5ac11
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 1 19:15:57 2018 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 1 19:15:57 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=890b10ab
7
8 dev-python/PyQt5: remove 5.9.1
9
10 Package-Manager: Portage-2.3.21, Repoman-2.3.6
11
12 dev-python/PyQt5/Manifest | 1 -
13 dev-python/PyQt5/PyQt5-5.9.1.ebuild | 198 ------------------------------------
14 2 files changed, 199 deletions(-)
15
16 diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest
17 index 48a70b05118..bf35184ece9 100644
18 --- a/dev-python/PyQt5/Manifest
19 +++ b/dev-python/PyQt5/Manifest
20 @@ -1,3 +1,2 @@
21 DIST PyQt5_gpl-5.7.1.tar.gz 3733746 BLAKE2B de8aea058876d740f391901434fa2c7ca1760b323b555efb48b06f8ba3213baccec676bc3984832e0775b28f0d2b2ddf0c37fa35317c237ed9af2e20469ff9ae SHA512 7498713f73807522e58ae38ff58548cf80c2f2c418d6c55e20ce613cdc997e4ee7139076f1f152c7c3edb970bde14febc3496009f934e31ff71f01a1605f558f
22 -DIST PyQt5_gpl-5.9.1.tar.gz 3101819 BLAKE2B b457a101ad285e65cd246a7f77cc2d8a53b4b948d1b22405abf7f3a4ea7a0ab10335b310f1731c6660937fa18647fc00858b781f32d44dd85d1452d2eca821cf SHA512 1c7d00dac5329296dd205eddeeecfd29495c4746791730056d143438871eb64a5d9827dcb1e28a78e8746218908e0e72374bd686a21b631b9aa1aa1c67e61eac
23 DIST PyQt5_gpl-5.9.2.tar.gz 3102848 BLAKE2B b87f25693aa2b20211119f89cf13665bf88f14de8827d43ba757344ab9bdef0b0c197abb8386308c72925da263cabb6efd3f104db8a350c51fca3fba8c7c06b6 SHA512 5af2e65addaed7dd02d8dbf7a7c63767e565fc8edeb7b51e5991a00cda29f75b666529097646e821aaff556f350a929fd451f548bba76e97355b7fe10bd913bc
24
25 diff --git a/dev-python/PyQt5/PyQt5-5.9.1.ebuild b/dev-python/PyQt5/PyQt5-5.9.1.ebuild
26 deleted file mode 100644
27 index fa923f28b10..00000000000
28 --- a/dev-python/PyQt5/PyQt5-5.9.1.ebuild
29 +++ /dev/null
30 @@ -1,198 +0,0 @@
31 -# Copyright 1999-2017 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
36 -
37 -inherit multibuild python-r1 qmake-utils
38 -
39 -DESCRIPTION="Python bindings for the Qt framework"
40 -HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/intro"
41 -
42 -MY_P=${PN}_gpl-${PV/_pre/.dev}
43 -if [[ ${PV} == *_pre* ]]; then
44 - SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
45 -else
46 - SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
47 -fi
48 -
49 -LICENSE="GPL-3"
50 -SLOT="0"
51 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
52 -
53 -# TODO: QtNfc
54 -IUSE="bluetooth dbus debug declarative designer examples gles2 gui help location
55 - multimedia network opengl positioning printsupport sensors serialport sql svg
56 - testlib webchannel webengine webkit websockets widgets x11extras xmlpatterns"
57 -
58 -# The requirements below were extracted from configure.py
59 -# and from the output of 'grep -r "%Import " "${S}"/sip'
60 -REQUIRED_USE="
61 - ${PYTHON_REQUIRED_USE}
62 - bluetooth? ( gui )
63 - declarative? ( gui network )
64 - designer? ( widgets )
65 - help? ( gui widgets )
66 - location? ( positioning )
67 - multimedia? ( gui network )
68 - opengl? ( gui widgets )
69 - positioning? ( gui )
70 - printsupport? ( gui widgets )
71 - sensors? ( gui )
72 - serialport? ( gui )
73 - sql? ( widgets )
74 - svg? ( gui widgets )
75 - testlib? ( widgets )
76 - webchannel? ( network )
77 - webengine? ( network widgets? ( printsupport webchannel ) )
78 - webkit? ( gui network printsupport widgets )
79 - websockets? ( network )
80 - widgets? ( gui )
81 - xmlpatterns? ( network )
82 -"
83 -
84 -# Minimal supported version of Qt.
85 -QT_PV="5.6.0:5"
86 -
87 -RDEPEND="
88 - ${PYTHON_DEPS}
89 - >=dev-python/sip-4.19.6_pre:=[${PYTHON_USEDEP}]
90 - >=dev-qt/qtcore-${QT_PV}
91 - >=dev-qt/qtxml-${QT_PV}
92 - bluetooth? ( >=dev-qt/qtbluetooth-${QT_PV} )
93 - dbus? (
94 - dev-python/dbus-python[${PYTHON_USEDEP}]
95 - >=dev-qt/qtdbus-${QT_PV}
96 - )
97 - declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] )
98 - designer? ( >=dev-qt/designer-${QT_PV} )
99 - gui? ( >=dev-qt/qtgui-${QT_PV}[gles2=] )
100 - help? ( >=dev-qt/qthelp-${QT_PV} )
101 - location? ( >=dev-qt/qtlocation-${QT_PV} )
102 - multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] )
103 - network? ( >=dev-qt/qtnetwork-${QT_PV} )
104 - opengl? ( >=dev-qt/qtopengl-${QT_PV} )
105 - positioning? ( >=dev-qt/qtpositioning-${QT_PV} )
106 - printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} )
107 - sensors? ( >=dev-qt/qtsensors-${QT_PV} )
108 - serialport? ( >=dev-qt/qtserialport-${QT_PV} )
109 - sql? ( >=dev-qt/qtsql-${QT_PV} )
110 - svg? ( >=dev-qt/qtsvg-${QT_PV} )
111 - testlib? ( >=dev-qt/qttest-${QT_PV} )
112 - webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} )
113 - webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] )
114 - webkit? ( >=dev-qt/qtwebkit-${QT_PV}[printsupport] )
115 - websockets? ( >=dev-qt/qtwebsockets-${QT_PV} )
116 - widgets? ( >=dev-qt/qtwidgets-${QT_PV} )
117 - x11extras? ( >=dev-qt/qtx11extras-${QT_PV} )
118 - xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
119 -"
120 -DEPEND="${RDEPEND}
121 - dbus? ( virtual/pkgconfig )
122 -"
123 -
124 -S=${WORKDIR}/${MY_P}
125 -
126 -DOCS=( "${S}"/{ChangeLog,NEWS} )
127 -
128 -pyqt_use_enable() {
129 - use "$1" || return
130 -
131 - if [[ $# -eq 1 ]]; then
132 - echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}
133 - else
134 - shift
135 - echo ${@/#/--enable=}
136 - fi
137 -}
138 -
139 -src_configure() {
140 - configuration() {
141 - # Fix out-of-source build
142 - ln -s "${S}"/config-tests || die
143 -
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 - --destdir="$(python_get_sitedir)"
153 - --sip-incdir="$(python_get_includedir)"
154 - --qsci-api
155 - --enable=QtCore
156 - --enable=QtXml
157 - $(pyqt_use_enable bluetooth)
158 - $(pyqt_use_enable dbus QtDBus)
159 - $(usex dbus '' --no-python-dbus)
160 - $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets ''))
161 - $(usex declarative '' --no-qml-plugin)
162 - $(pyqt_use_enable designer)
163 - $(usex designer '' --no-designer-plugin)
164 - $(pyqt_use_enable gui)
165 - $(pyqt_use_enable gui $(use gles2 && echo _QOpenGLFunctions_ES2 || echo _QOpenGLFunctions_{2_0,2_1,4_1_Core}))
166 - $(pyqt_use_enable help)
167 - $(pyqt_use_enable location)
168 - $(pyqt_use_enable multimedia QtMultimedia $(usex widgets QtMultimediaWidgets ''))
169 - $(pyqt_use_enable network)
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 webengine QtWebEngine QtWebEngineCore $(usex widgets QtWebEngineWidgets ''))
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 - eqmake5 -recursive ${PN}.pro
190 - }
191 - python_foreach_impl run_in_build_dir configuration
192 -}
193 -
194 -src_compile() {
195 - python_foreach_impl run_in_build_dir default
196 -}
197 -
198 -src_install() {
199 - installation() {
200 - local tmp_root=${D%/}/tmp
201 - emake 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 -}