1 |
commit: 75e0afdc560152d73e322b577c3424bc7f947ade |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 13:45:21 2023 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 15:54:38 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75e0afdc |
7 |
|
8 |
dev-python/PyQt6: add 6.4.1 |
9 |
|
10 |
Switch to using /usr/bin/qmake6 which is now provided by qtbase. |
11 |
|
12 |
Also bump QT_PV to use $(ver_cut 1-2), not always necessary but |
13 |
this makes it unnecessary to keep track of new Qt features usage. |
14 |
|
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
dev-python/PyQt6/Manifest | 1 + |
18 |
dev-python/PyQt6/PyQt6-6.4.1.ebuild | 145 ++++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 146 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/PyQt6/Manifest b/dev-python/PyQt6/Manifest |
22 |
index fa53a01cf9f2..bf2e92785d54 100644 |
23 |
--- a/dev-python/PyQt6/Manifest |
24 |
+++ b/dev-python/PyQt6/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST PyQt6-6.4.0.tar.gz 1024037 BLAKE2B a55d2e33160b6bb713b5e32e6b3a3df942f373ce9c9697cad548325c35ee7ee73a57e93ebc8780480086b02d651fa848258f11f85bea0e54c61c8a0f99039c3d SHA512 836696cc708e140ff497fd915fac147265c58e5d44d54d7dcd1908bad54ed793b4c2c4f20b487d13c7a5f7eb6b2c47d7ab822d8ffc875657de7fd0f88ee6c53b |
27 |
+DIST PyQt6-6.4.1.tar.gz 1025522 BLAKE2B 17a5f5f4dba5b06729d4a0f9b2964c5632be5bed1da67fe1a90a9d91ba63bc10a83012fc6e8ca5306238d1dc55a3d10ff08c84eed6b369d0c98ac7281e28d2b0 SHA512 860dea8878a81acdefee164f766ba850481b1f4258ebff95fc3cedcbcf15e832799cd2e62d3b2bf83a743879bcb7efdc70109229c83205b649357fdf918864cb |
28 |
|
29 |
diff --git a/dev-python/PyQt6/PyQt6-6.4.1.ebuild b/dev-python/PyQt6/PyQt6-6.4.1.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..2e10cf119914 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/PyQt6/PyQt6-6.4.1.ebuild |
34 |
@@ -0,0 +1,145 @@ |
35 |
+# Copyright 2022-2023 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+DISTUTILS_USE_PEP517=sip |
41 |
+PYTHON_COMPAT=( python3_{9..11} ) |
42 |
+inherit distutils-r1 flag-o-matic multiprocessing qmake-utils |
43 |
+ |
44 |
+# 'can' work with older Qt depending on features, but keeping it simple |
45 |
+QT_PV="$(ver_cut 1-2):6" |
46 |
+ |
47 |
+DESCRIPTION="Python bindings for the Qt framework" |
48 |
+HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/" |
49 |
+SRC_URI="mirror://pypi/${P::1}/${PN}/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="GPL-3" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64" |
54 |
+# defaults match what is provided with qtbase by default (except testlib), |
55 |
+# reduces the need to set flags but does increase build time a fair amount |
56 |
+IUSE=" |
57 |
+ +dbus debug qml designer examples gles2-only +gui help multimedia |
58 |
+ +network opengl positioning +printsupport quick quick3d serialport |
59 |
+ +sql +ssl svg testlib webchannel websockets +widgets +xml" |
60 |
+# see `grep -r "%Import " sip` and `grep qmake_QT project.py` |
61 |
+REQUIRED_USE=" |
62 |
+ designer? ( gui widgets ) |
63 |
+ help? ( gui widgets ) |
64 |
+ multimedia? ( gui network ) |
65 |
+ opengl? ( gui ) |
66 |
+ printsupport? ( gui widgets ) |
67 |
+ qml? ( network ) |
68 |
+ quick3d? ( gui qml ) |
69 |
+ quick? ( gui qml ) |
70 |
+ sql? ( widgets ) |
71 |
+ svg? ( gui ) |
72 |
+ testlib? ( gui widgets ) |
73 |
+ webchannel? ( network ) |
74 |
+ websockets? ( network ) |
75 |
+ widgets? ( gui )" |
76 |
+ |
77 |
+DEPEND=" |
78 |
+ >=dev-qt/qtbase-${QT_PV}[dbus?,gles2-only=,gui?,network?,opengl?,sql?,ssl=,widgets?,xml?] |
79 |
+ dbus? ( |
80 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
81 |
+ sys-apps/dbus |
82 |
+ ) |
83 |
+ designer? ( >=dev-qt/qttools-${QT_PV}[designer] ) |
84 |
+ help? ( >=dev-qt/qttools-${QT_PV}[assistant] ) |
85 |
+ multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} ) |
86 |
+ positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) |
87 |
+ qml? ( >=dev-qt/qtdeclarative-${QT_PV} ) |
88 |
+ quick3d? ( >=dev-qt/qtquick3d-${QT_PV} ) |
89 |
+ serialport? ( >=dev-qt/qtserialport-${QT_PV} ) |
90 |
+ svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
91 |
+ webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) |
92 |
+ websockets? ( >=dev-qt/qtwebsockets-${QT_PV} )" |
93 |
+RDEPEND=" |
94 |
+ ${DEPEND} |
95 |
+ >=dev-python/PyQt6-sip-13.4[${PYTHON_USEDEP}]" |
96 |
+BDEPEND=" |
97 |
+ >=dev-python/PyQt-builder-1.11[${PYTHON_USEDEP}] |
98 |
+ >=dev-qt/qtbase-${QT_PV} |
99 |
+ sys-devel/gcc |
100 |
+ dbus? ( virtual/pkgconfig )" |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ |
105 |
+ # hack: qmake queries g++ directly for info (not building) and that doesn't |
106 |
+ # work with clang, this is to make it at least respect CHOST (bug #726112) |
107 |
+ mkdir "${T}"/cxx || die |
108 |
+ ln -s "$(type -P ${CHOST}-g++ || type -P g++ || die)" "${T}"/cxx/g++ || die |
109 |
+ PATH=${T}/cxx:${PATH} |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ append-cxxflags -std=c++17 # for old gcc / clang that use <17 (bug #892331) |
114 |
+ |
115 |
+ pyqt-use_enable() { |
116 |
+ local state=$(usex ${1} --enable= --disable=) |
117 |
+ shift |
118 |
+ echo ${*/#/${state}} |
119 |
+ } |
120 |
+ |
121 |
+ DISTUTILS_ARGS=( |
122 |
+ --jobs=$(makeopts_jobs) |
123 |
+ --qmake="$(type -P qmake6 || die)" |
124 |
+ --qmake-setting="$(qt5_get_qmake_args)" |
125 |
+ --verbose |
126 |
+ --confirm-license |
127 |
+ |
128 |
+ # TODO: enable more as new qt6 packages get added |
129 |
+ --disable=QAxContainer |
130 |
+ --disable=QtBluetooth |
131 |
+ --enable=QtCore |
132 |
+ $(pyqt-use_enable dbus QtDBus) |
133 |
+ $(pyqt-use_enable designer QtDesigner) |
134 |
+ $(pyqt-use_enable help QtHelp) |
135 |
+ $(pyqt-use_enable gui QtGui) |
136 |
+ #--disable=QtLocation # force-disabled in project.py |
137 |
+ $(pyqt-use_enable multimedia QtMultimedia \ |
138 |
+ $(usev widgets QtMultimediaWidgets)) |
139 |
+ $(pyqt-use_enable network QtNetwork) |
140 |
+ --disable=QtNfc |
141 |
+ $(pyqt-use_enable opengl QtOpenGL \ |
142 |
+ $(usev widgets QtOpenGLWidgets)) |
143 |
+ --disable=QtPdf #+QtPdfWidgets (QtPdf is disabled in qtwebengine:6) |
144 |
+ $(pyqt-use_enable positioning QtPositioning) |
145 |
+ $(pyqt-use_enable printsupport QtPrintSupport) |
146 |
+ $(pyqt-use_enable qml QtQml) |
147 |
+ $(pyqt-use_enable quick QtQuick \ |
148 |
+ $(usev widgets QtQuickWidgets)) |
149 |
+ $(pyqt-use_enable quick3d QtQuick3D) |
150 |
+ --disable=QtRemoteObjects |
151 |
+ --disable=QtSensors |
152 |
+ $(pyqt-use_enable serialport QtSerialPort) |
153 |
+ $(pyqt-use_enable sql QtSql) |
154 |
+ $(pyqt-use_enable svg QtSvg \ |
155 |
+ $(usev widgets QtSvgWidgets)) |
156 |
+ $(pyqt-use_enable testlib QtTest) |
157 |
+ --disable=QtTextToSpeech |
158 |
+ $(pyqt-use_enable webchannel QtWebChannel) |
159 |
+ $(pyqt-use_enable websockets QtWebSockets) |
160 |
+ $(pyqt-use_enable widgets QtWidgets) |
161 |
+ $(pyqt-use_enable xml QtXml) |
162 |
+ |
163 |
+ $(usev debug '--debug --qml-debug --tracing') |
164 |
+ |
165 |
+ $(usev !dbus --no-dbus-python) |
166 |
+ # TODO?: plugins not in wheels by upstream, see project.py#L215 |
167 |
+ # (if needed by something, will need to be added to python_install) |
168 |
+ $(usev !designer --no-designer-plugin) |
169 |
+ $(usev !qml --no-qml-plugin) |
170 |
+ |
171 |
+ $(usev !gles2-only --disabled-feature=PyQt_OpenGL_ES2) |
172 |
+ $(usev !ssl --disabled-feature=PyQt_SSL) |
173 |
+ ) |
174 |
+} |
175 |
+ |
176 |
+python_install_all() { |
177 |
+ einstalldocs |
178 |
+ use examples && dodoc -r examples |
179 |
+} |