1 |
commit: 39ccd1eecf8508d7b3420e2927f7c9806d49ce82 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 8 01:09:04 2018 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 8 01:09:04 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39ccd1ee |
7 |
|
8 |
dev-python/PyQt5: bump to 5.11.3, EAPI=7 |
9 |
|
10 |
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
12 |
|
13 |
dev-python/PyQt5/Manifest | 1 + |
14 |
dev-python/PyQt5/PyQt5-5.11.3.ebuild | 195 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 196 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/PyQt5/Manifest b/dev-python/PyQt5/Manifest |
18 |
index 45f36f7c52f..5d0feadf282 100644 |
19 |
--- a/dev-python/PyQt5/Manifest |
20 |
+++ b/dev-python/PyQt5/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST PyQt5_gpl-5.10.1.tar.gz 3110469 BLAKE2B 75e24bd8c0739d47eff6212435aa783eaa302633beb0494f099edc3f8f99600cd03dc3cba5152ed7ae703cfe445ecae06ec5d2281dd7c0640c71db041659bd6f SHA512 04cd0292f7a088f9c0d088d7c73ec96cfc40253f771dfdf194eb92be7635e6fcaf04863fa24215e9c34a096658549bb2feeb8d8fdca1e39ed87f0256ef0f790b |
23 |
+DIST PyQt5_gpl-5.11.3.tar.gz 3121036 BLAKE2B e7881fea18535ba55c0b6946718fd1eccdc6a4678b869678c9413c500daee0cbfb281116db40a13655c8cb5e778b605f141821e20bf3834f1434908f73fc22bd SHA512 6f4abb1866ce357263c208121607072e127c8853e9c6bf039b034fefdda4c40e38f917c3b313375f0d692d764ecf26ff3a6b12cda2a2eeb5237db8b5e9443548 |
24 |
DIST PyQt5_gpl-5.9.2.tar.gz 3102848 BLAKE2B b87f25693aa2b20211119f89cf13665bf88f14de8827d43ba757344ab9bdef0b0c197abb8386308c72925da263cabb6efd3f104db8a350c51fca3fba8c7c06b6 SHA512 5af2e65addaed7dd02d8dbf7a7c63767e565fc8edeb7b51e5991a00cda29f75b666529097646e821aaff556f350a929fd451f548bba76e97355b7fe10bd913bc |
25 |
|
26 |
diff --git a/dev-python/PyQt5/PyQt5-5.11.3.ebuild b/dev-python/PyQt5/PyQt5-5.11.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5eedcadd3ea |
29 |
--- /dev/null |
30 |
+++ b/dev-python/PyQt5/PyQt5-5.11.3.ebuild |
31 |
@@ -0,0 +1,195 @@ |
32 |
+# Copyright 1999-2018 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) |
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 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
53 |
+ |
54 |
+# TODO: QtNetworkAuth, 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.6:5" |
87 |
+ |
88 |
+RDEPEND=" |
89 |
+ ${PYTHON_DEPS} |
90 |
+ >=dev-python/sip-4.19.11:=[${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} ) |
106 |
+ opengl? ( >=dev-qt/qtopengl-${QT_PV} ) |
107 |
+ positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) |
108 |
+ printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} ) |
109 |
+ sensors? ( >=dev-qt/qtsensors-${QT_PV} ) |
110 |
+ serialport? ( >=dev-qt/qtserialport-${QT_PV} ) |
111 |
+ sql? ( >=dev-qt/qtsql-${QT_PV} ) |
112 |
+ svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
113 |
+ testlib? ( >=dev-qt/qttest-${QT_PV} ) |
114 |
+ webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) |
115 |
+ webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] ) |
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 |
+ dbus? ( virtual/pkgconfig ) |
124 |
+" |
125 |
+ |
126 |
+S=${WORKDIR}/${MY_P} |
127 |
+ |
128 |
+DOCS=( "${S}"/{ChangeLog,NEWS} ) |
129 |
+ |
130 |
+pyqt_use_enable() { |
131 |
+ use "$1" || return |
132 |
+ |
133 |
+ if [[ $# -eq 1 ]]; then |
134 |
+ echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1} |
135 |
+ else |
136 |
+ shift |
137 |
+ echo ${@/#/--enable=} |
138 |
+ fi |
139 |
+} |
140 |
+ |
141 |
+src_configure() { |
142 |
+ configuration() { |
143 |
+ local myconf=( |
144 |
+ "${PYTHON}" |
145 |
+ "${S}"/configure.py |
146 |
+ $(usex debug '--debug --qml-debug --trace' '') |
147 |
+ --verbose |
148 |
+ --confirm-license |
149 |
+ --qmake="$(qt5_get_bindir)"/qmake |
150 |
+ --sip-incdir="$(python_get_includedir)" |
151 |
+ --qsci-api |
152 |
+ --enable=QtCore |
153 |
+ --enable=QtXml |
154 |
+ $(pyqt_use_enable bluetooth) |
155 |
+ $(pyqt_use_enable dbus QtDBus) |
156 |
+ $(usex dbus '' --no-python-dbus) |
157 |
+ $(pyqt_use_enable declarative QtQml QtQuick $(usex widgets QtQuickWidgets '')) |
158 |
+ $(usex declarative '' --no-qml-plugin) |
159 |
+ $(pyqt_use_enable designer) |
160 |
+ $(usex designer '' --no-designer-plugin) |
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 opengl QtOpenGL) |
168 |
+ $(pyqt_use_enable positioning) |
169 |
+ $(pyqt_use_enable printsupport QtPrintSupport) |
170 |
+ $(pyqt_use_enable sensors) |
171 |
+ $(pyqt_use_enable serialport QtSerialPort) |
172 |
+ $(pyqt_use_enable sql) |
173 |
+ $(pyqt_use_enable svg) |
174 |
+ $(pyqt_use_enable testlib QtTest) |
175 |
+ $(pyqt_use_enable webchannel QtWebChannel) |
176 |
+ $(pyqt_use_enable webengine QtWebEngine QtWebEngineCore $(usex widgets QtWebEngineWidgets '')) |
177 |
+ $(pyqt_use_enable webkit QtWebKit QtWebKitWidgets) |
178 |
+ $(pyqt_use_enable websockets QtWebSockets) |
179 |
+ $(pyqt_use_enable widgets) |
180 |
+ $(pyqt_use_enable x11extras QtX11Extras) |
181 |
+ $(pyqt_use_enable xmlpatterns QtXmlPatterns) |
182 |
+ ) |
183 |
+ echo "${myconf[@]}" |
184 |
+ "${myconf[@]}" || die |
185 |
+ |
186 |
+ eqmake5 -recursive ${PN}.pro |
187 |
+ } |
188 |
+ python_foreach_impl run_in_build_dir configuration |
189 |
+} |
190 |
+ |
191 |
+src_compile() { |
192 |
+ python_foreach_impl run_in_build_dir default |
193 |
+} |
194 |
+ |
195 |
+src_install() { |
196 |
+ installation() { |
197 |
+ local tmp_root=${D}/tmp |
198 |
+ # parallel install fails (same issue as qscintilla-python-2.10.8) |
199 |
+ emake -j1 INSTALL_ROOT="${tmp_root}" install |
200 |
+ |
201 |
+ local bin_dir=${tmp_root}${EPREFIX}/usr/bin |
202 |
+ local exe |
203 |
+ for exe in pylupdate5 pyrcc5 pyuic5; do |
204 |
+ python_doexe "${bin_dir}/${exe}" |
205 |
+ rm "${bin_dir}/${exe}" || die |
206 |
+ done |
207 |
+ |
208 |
+ local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic |
209 |
+ if python_is_python3; then |
210 |
+ rm -r "${uic_dir}"/port_v2 || die |
211 |
+ else |
212 |
+ rm -r "${uic_dir}"/port_v3 || die |
213 |
+ fi |
214 |
+ |
215 |
+ multibuild_merge_root "${tmp_root}" "${D}" |
216 |
+ python_optimize |
217 |
+ } |
218 |
+ python_foreach_impl run_in_build_dir installation |
219 |
+ |
220 |
+ einstalldocs |
221 |
+ |
222 |
+ if use examples; then |
223 |
+ insinto /usr/share/doc/${PF} |
224 |
+ doins -r examples |
225 |
+ fi |
226 |
+} |