1 |
commit: 2fdb3cdde40b9bb5a6e9cc7d8261e9ff75f746f7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 7 15:18:11 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 7 15:23:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fdb3cdd |
7 |
|
8 |
dev-python/PyQt5: Remove redundant versions |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/PyQt5/Manifest | 1 - |
13 |
dev-python/PyQt5/PyQt5-5.12.2.ebuild | 200 ----------------------------------- |
14 |
2 files changed, 201 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest |
17 |
index 1b28d8484aa..3b3e5153719 100644 |
18 |
--- a/dev-python/PyQt5/Manifest |
19 |
+++ b/dev-python/PyQt5/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
DIST PyQt5-5.13.2.tar.gz 3162810 BLAKE2B 383aaa3f1f51ed618a3b6475432a96f6a8f89ad4d97197fe87469e0a69e1db79c762965adfacdf92cc43d1bb2eb5e2790f6bdb7e8b288f0feade828bf8e30090 SHA512 9a16450d8fe2a7e94e182ebb03cc785c6de516e356251753abfb79af3958230043f2db59750cde0a6f1fd6cf5568eb8b7ae76d5a3fbcfe9f7807e02867973b55 |
22 |
DIST PyQt5-5.14.1.tar.gz 3241571 BLAKE2B c4f6ab8b5c955186c71e0f6c1ac75fc559839c52374e8ce400c823a813c0c646ed60b5f496145114e5480bd2e4c057d52181b81d79fd01fe5dcd9e4c537118ff SHA512 10b6abb6fdac64233041b0ee91c9f25cfd2a759ec5bde239c87ca9df8176cdd4fcabf6deb8db2dd9bbd911a040d5c476744f1b55aded9c66eb8b5182f99ddc86 |
23 |
-DIST PyQt5_gpl-5.12.2.tar.gz 3147205 BLAKE2B ad0b09548521ceff869bb44cfceb0c2cf31338f46c76da23582f7949fdcc0e8feee3cc0dc0610e8152dfbc701c3ac765eea7898f5061775a92e2601c5b7ea8ca SHA512 dc23bb7dacb305d4f9a630f2b5c3809d5d6734ba234c9941a3c44c770af8534dd737160dbe007a1f15d5c90e2e52419dd749b3ef942b4e71917c1cea2220a666 |
24 |
|
25 |
diff --git a/dev-python/PyQt5/PyQt5-5.12.2.ebuild b/dev-python/PyQt5/PyQt5-5.12.2.ebuild |
26 |
deleted file mode 100644 |
27 |
index b7946f867b2..00000000000 |
28 |
--- a/dev-python/PyQt5/PyQt5-5.12.2.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,200 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-PYTHON_COMPAT=( python2_7 python3_{6,7} ) |
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_PN=PyQt5 |
43 |
-MY_P=${MY_PN}_gpl-${PV/_pre/.dev} |
44 |
-if [[ ${PV} == *_pre* ]]; then |
45 |
- SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
46 |
-else |
47 |
- SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" |
48 |
-fi |
49 |
- |
50 |
-LICENSE="GPL-3" |
51 |
-SLOT="0" |
52 |
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86" |
53 |
- |
54 |
-# TODO: QtNfc, QtRemoteObjects (Qt >= 5.12) |
55 |
-IUSE="bluetooth dbus debug declarative designer examples gles2 gui help location multimedia |
56 |
- network networkauth opengl positioning printsupport sensors serialport sql +ssl svg |
57 |
- testlib webchannel 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 |
- networkauth? ( network ) |
70 |
- opengl? ( gui widgets ) |
71 |
- positioning? ( gui ) |
72 |
- printsupport? ( gui widgets ) |
73 |
- sensors? ( gui ) |
74 |
- serialport? ( gui ) |
75 |
- sql? ( widgets ) |
76 |
- svg? ( gui widgets ) |
77 |
- testlib? ( widgets ) |
78 |
- webchannel? ( network ) |
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.10:5" |
87 |
- |
88 |
-RDEPEND=" |
89 |
- ${PYTHON_DEPS} |
90 |
- >=dev-python/PyQt5-sip-4.19.14:=[${PYTHON_USEDEP}] |
91 |
- >=dev-qt/qtcore-${QT_PV} |
92 |
- >=dev-qt/qtxml-${QT_PV} |
93 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
94 |
- bluetooth? ( >=dev-qt/qtbluetooth-${QT_PV} ) |
95 |
- dbus? ( |
96 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
97 |
- >=dev-qt/qtdbus-${QT_PV} |
98 |
- ) |
99 |
- declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] ) |
100 |
- designer? ( >=dev-qt/designer-${QT_PV} ) |
101 |
- gui? ( >=dev-qt/qtgui-${QT_PV}[gles2=] ) |
102 |
- help? ( >=dev-qt/qthelp-${QT_PV} ) |
103 |
- location? ( >=dev-qt/qtlocation-${QT_PV} ) |
104 |
- multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] ) |
105 |
- network? ( >=dev-qt/qtnetwork-${QT_PV}[ssl=] ) |
106 |
- networkauth? ( >=dev-qt/qtnetworkauth-${QT_PV} ) |
107 |
- opengl? ( >=dev-qt/qtopengl-${QT_PV} ) |
108 |
- positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) |
109 |
- printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} ) |
110 |
- sensors? ( >=dev-qt/qtsensors-${QT_PV} ) |
111 |
- serialport? ( >=dev-qt/qtserialport-${QT_PV} ) |
112 |
- sql? ( >=dev-qt/qtsql-${QT_PV} ) |
113 |
- svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
114 |
- testlib? ( >=dev-qt/qttest-${QT_PV} ) |
115 |
- webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) |
116 |
- webkit? ( dev-qt/qtwebkit:5[printsupport] ) |
117 |
- websockets? ( >=dev-qt/qtwebsockets-${QT_PV} ) |
118 |
- widgets? ( >=dev-qt/qtwidgets-${QT_PV} ) |
119 |
- x11extras? ( >=dev-qt/qtx11extras-${QT_PV} ) |
120 |
- xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) |
121 |
-" |
122 |
-DEPEND="${RDEPEND} |
123 |
- >=dev-python/sip-4.19.14[${PYTHON_USEDEP}] |
124 |
- dbus? ( virtual/pkgconfig ) |
125 |
-" |
126 |
- |
127 |
-S=${WORKDIR}/${MY_P} |
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 |
- local myconf=( |
143 |
- "${PYTHON}" |
144 |
- "${S}"/configure.py |
145 |
- $(usex debug '--debug --qml-debug --trace' '') |
146 |
- --verbose |
147 |
- --confirm-license |
148 |
- --qmake="$(qt5_get_bindir)"/qmake |
149 |
- --bindir="${EPREFIX}/usr/bin" |
150 |
- --qsci-api |
151 |
- --enable=QtCore |
152 |
- --enable=QtXml |
153 |
- $(pyqt_use_enable bluetooth) |
154 |
- $(pyqt_use_enable dbus QtDBus) |
155 |
- $(usex dbus '' --no-python-dbus) |
156 |
- $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets '')) |
157 |
- $(usex declarative '' --no-qml-plugin) |
158 |
- $(pyqt_use_enable designer) |
159 |
- $(usex designer '' --no-designer-plugin) |
160 |
- $(usex gles2 '--disable-feature=PyQt_Desktop_OpenGL' '') |
161 |
- $(pyqt_use_enable gui) |
162 |
- $(pyqt_use_enable gui $(use gles2 && echo _QOpenGLFunctions_ES2 || echo _QOpenGLFunctions_{2_0,2_1,4_1_Core})) |
163 |
- $(pyqt_use_enable help) |
164 |
- $(pyqt_use_enable location) |
165 |
- $(pyqt_use_enable multimedia QtMultimedia $(usex widgets QtMultimediaWidgets '')) |
166 |
- $(pyqt_use_enable network) |
167 |
- $(pyqt_use_enable networkauth QtNetworkAuth) |
168 |
- $(pyqt_use_enable opengl QtOpenGL) |
169 |
- $(pyqt_use_enable positioning) |
170 |
- $(pyqt_use_enable printsupport QtPrintSupport) |
171 |
- $(pyqt_use_enable sensors) |
172 |
- $(pyqt_use_enable serialport QtSerialPort) |
173 |
- $(pyqt_use_enable sql) |
174 |
- $(usex ssl '' '--disable-feature=PyQt_SSL') |
175 |
- $(pyqt_use_enable svg) |
176 |
- $(pyqt_use_enable testlib QtTest) |
177 |
- $(pyqt_use_enable webchannel QtWebChannel) |
178 |
- $(pyqt_use_enable webkit QtWebKit QtWebKitWidgets) |
179 |
- $(pyqt_use_enable websockets QtWebSockets) |
180 |
- $(pyqt_use_enable widgets) |
181 |
- $(pyqt_use_enable x11extras QtX11Extras) |
182 |
- $(pyqt_use_enable xmlpatterns QtXmlPatterns) |
183 |
- ) |
184 |
- echo "${myconf[@]}" |
185 |
- "${myconf[@]}" || die |
186 |
- |
187 |
- # Fix parallel install failure |
188 |
- sed -i -e '/INSTALLS += distinfo/i distinfo.depends = install_subtargets' ${MY_PN}.pro || die |
189 |
- |
190 |
- # Run eqmake to respect toolchain and build flags |
191 |
- eqmake5 -recursive ${MY_PN}.pro |
192 |
- } |
193 |
- python_foreach_impl run_in_build_dir configuration |
194 |
-} |
195 |
- |
196 |
-src_compile() { |
197 |
- python_foreach_impl run_in_build_dir default |
198 |
-} |
199 |
- |
200 |
-src_install() { |
201 |
- installation() { |
202 |
- local tmp_root=${D}/${MY_PN}_tmp_root |
203 |
- emake INSTALL_ROOT="${tmp_root}" install |
204 |
- |
205 |
- local bin_dir=${tmp_root}${EPREFIX}/usr/bin |
206 |
- local exe |
207 |
- for exe in pylupdate5 pyrcc5 pyuic5; do |
208 |
- python_doexe "${bin_dir}/${exe}" |
209 |
- rm "${bin_dir}/${exe}" || die |
210 |
- done |
211 |
- |
212 |
- local uic_dir=${tmp_root}$(python_get_sitedir)/${MY_PN}/uic |
213 |
- if python_is_python3; then |
214 |
- rm -r "${uic_dir}"/port_v2 || die |
215 |
- else |
216 |
- rm -r "${uic_dir}"/port_v3 || die |
217 |
- fi |
218 |
- |
219 |
- multibuild_merge_root "${tmp_root}" "${D}" |
220 |
- python_optimize |
221 |
- } |
222 |
- python_foreach_impl run_in_build_dir installation |
223 |
- |
224 |
- einstalldocs |
225 |
- |
226 |
- if use examples; then |
227 |
- insinto /usr/share/doc/${PF} |
228 |
- doins -r examples |
229 |
- fi |
230 |
-} |