Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyside2/
Date: Fri, 23 Sep 2022 11:26:49
Message-Id: 1663932381.72379f1af1073df5a1abccc54f31d4682f334d86.andrewammerlaan@gentoo
1 commit: 72379f1af1073df5a1abccc54f31d4682f334d86
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 11:25:40 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 11:26:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72379f1a
7
8 dev-python/pyside2: drop 5.15.2-r2
9
10 Closes: https://bugs.gentoo.org/871750
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/pyside2/Manifest | 1 -
14 dev-python/pyside2/pyside2-5.15.2-r2.ebuild | 216 ----------------------------
15 2 files changed, 217 deletions(-)
16
17 diff --git a/dev-python/pyside2/Manifest b/dev-python/pyside2/Manifest
18 index 6db4c67e3817..04e25fda279c 100644
19 --- a/dev-python/pyside2/Manifest
20 +++ b/dev-python/pyside2/Manifest
21 @@ -1,2 +1 @@
22 -DIST pyside-setup-opensource-src-5.15.2.tar.xz 3472624 BLAKE2B 099abeaf25059a88f299f90b18cf79aa45acd86580c0873767b09f76268d6746cc3576743a19493a605de59b520471ddee6bba0e5340801ef44a21f2a9d41507 SHA512 5043c1c9db4ba0133baaabb4d4943182e9741b1007bedd992394758707a37bba0688dc6413ea46620e7c2fb09daa3c74e6a7bb2c302b9d08e5f3bb7575d02b62
23 DIST pyside-setup-opensource-src-5.15.5.tar.xz 3577972 BLAKE2B ee16ce18ec4103add41ad89b658012cb2e8695bda51269d3cd1614c2b6d029c0eaba5e592d5e58b6267e1ddc020a938d3ccd2fbc9461cc5bf202f3bdbf6b5d62 SHA512 61b987ec823e9a89f2a07a1991d47f36eb45e3ce416aa6e0032a58ba3d623ac26224cb0f43a2db76850bce7290d12fae610de06405350362caac7860ba99f0c3
24
25 diff --git a/dev-python/pyside2/pyside2-5.15.2-r2.ebuild b/dev-python/pyside2/pyside2-5.15.2-r2.ebuild
26 deleted file mode 100644
27 index c18757c9ac57..000000000000
28 --- a/dev-python/pyside2/pyside2-5.15.2-r2.ebuild
29 +++ /dev/null
30 @@ -1,216 +0,0 @@
31 -# Copyright 1999-2022 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=8
35 -
36 -# TODO: Add PyPy once officially supported. See also:
37 -# https://bugreports.qt.io/browse/PYSIDE-535
38 -PYTHON_COMPAT=( python3_{8..11} )
39 -
40 -inherit cmake python-r1 virtualx
41 -
42 -# TODO: Add conditional support for "QtRemoteObjects" via a new "remoteobjects"
43 -# USE flag after an external "dev-qt/qtremoteobjects" package has been created.
44 -# TODO: Add conditional support for apidoc generation via a new "doc" USE flag.
45 -# Note that doing so requires the Qt source tree, sphinx, and graphviz. Once
46 -# ready, pass the ${QT_SRC_DIR} variable to cmake to enable this support.
47 -# TODO: Disable GLES support if the "gles2-only" USE flag is disabled. Note
48 -# that the "PySide2/QtGui/CMakeLists.txt" and
49 -# "PySide2/QtOpenGLFunctions/CMakeLists.txt" files test for GLES support by
50 -# testing whether the "Qt5::Gui" list property defined by
51 -# "/usr/lib64/cmake/Qt5Gui/Qt5GuiConfig.cmake" at "dev-qt/qtgui" installation
52 -# time contains the substring "opengles2". Since cmake does not permit
53 -# properties to be overridden from the command line, these files must instead
54 -# be conditionally patched to avoid these tests. An issue should be filed with
55 -# upstream requesting a CLI-settable variable to control this.
56 -
57 -MY_P=pyside-setup-opensource-src-${PV}
58 -
59 -DESCRIPTION="Python bindings for the Qt framework"
60 -HOMEPAGE="https://wiki.qt.io/PySide2"
61 -SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz"
62 -S="${WORKDIR}/${MY_P}/sources/pyside2"
63 -
64 -# See "sources/pyside2/PySide2/licensecomment.txt" for licensing details.
65 -LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )"
66 -SLOT="0"
67 -KEYWORDS="amd64 ~arm arm64 x86"
68 -IUSE="
69 - 3d charts concurrent datavis designer gles2-only +gui help location
70 - multimedia +network positioning printsupport qml quick script scripttools
71 - scxml sensors speech sql svg test testlib webchannel webengine websockets
72 - +widgets x11extras xml xmlpatterns
73 -"
74 -
75 -# Manually reextract these requirements on version bumps by running the
76 -# following one-liner from within "${S}":
77 -# $ grep 'set.*_deps' PySide2/Qt*/CMakeLists.txt
78 -# Note that the "designer" USE flag corresponds to the "Qt5UiTools" module.
79 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
80 - 3d? ( gui network )
81 - charts? ( widgets )
82 - datavis? ( gui )
83 - designer? ( widgets xml )
84 - gles2-only? ( gui )
85 - help? ( widgets )
86 - location? ( positioning )
87 - multimedia? ( gui network )
88 - printsupport? ( widgets )
89 - qml? ( gui network )
90 - quick? ( qml )
91 - scripttools? ( gui script widgets )
92 - speech? ( multimedia )
93 - sql? ( widgets )
94 - svg? ( widgets )
95 - testlib? ( widgets )
96 - webengine? (
97 - location quick
98 - widgets? ( gui network printsupport webchannel )
99 - )
100 - websockets? ( network )
101 - widgets? ( gui )
102 - x11extras? ( gui )
103 -"
104 -
105 -# Tests fail pretty bad and I'm not fixing them right now
106 -RESTRICT="test"
107 -
108 -# Minimal supported version of Qt.
109 -QT_PV="$(ver_cut 1-2):5"
110 -
111 -RDEPEND="${PYTHON_DEPS}
112 - >=dev-python/shiboken2-${PV}[${PYTHON_USEDEP}]
113 - dev-qt/qtcore:5=
114 - dev-qt/qtopengl:5=
115 - dev-qt/qtserialport:5=
116 - 3d? ( >=dev-qt/qt3d-${QT_PV}[qml?] )
117 - charts? ( >=dev-qt/qtcharts-${QT_PV}[qml?] )
118 - concurrent? ( >=dev-qt/qtconcurrent-${QT_PV} )
119 - datavis? ( >=dev-qt/qtdatavis3d-${QT_PV}[qml?] )
120 - designer? ( >=dev-qt/designer-${QT_PV} )
121 - gui? ( >=dev-qt/qtgui-${QT_PV}[jpeg,gles2-only?] )
122 - help? ( >=dev-qt/qthelp-${QT_PV} )
123 - location? ( >=dev-qt/qtlocation-${QT_PV} )
124 - multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[qml?,widgets?] )
125 - network? ( >=dev-qt/qtnetwork-${QT_PV} )
126 - positioning? ( >=dev-qt/qtpositioning-${QT_PV}[qml?] )
127 - printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} )
128 - qml? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] )
129 - script? ( >=dev-qt/qtscript-${QT_PV} )
130 - scxml? ( >=dev-qt/qtscxml-${QT_PV} )
131 - sensors? ( >=dev-qt/qtsensors-${QT_PV}[qml?] )
132 - speech? ( >=dev-qt/qtspeech-${QT_PV} )
133 - sql? ( >=dev-qt/qtsql-${QT_PV} )
134 - svg? ( >=dev-qt/qtsvg-${QT_PV} )
135 - testlib? ( >=dev-qt/qttest-${QT_PV} )
136 - webchannel? ( >=dev-qt/qtwebchannel-${QT_PV}[qml?] )
137 - webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] )
138 - websockets? ( >=dev-qt/qtwebsockets-${QT_PV}[qml?] )
139 - widgets? ( >=dev-qt/qtwidgets-${QT_PV} )
140 - x11extras? ( >=dev-qt/qtx11extras-${QT_PV} )
141 - xml? ( >=dev-qt/qtxml-${QT_PV} )
142 - xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV}[qml?] )
143 -"
144 -DEPEND="${RDEPEND}
145 - test? ( x11-misc/xvfb-run )
146 -"
147 -
148 -PATCHES=(
149 - "${FILESDIR}/${P}-python310.patch"
150 - "${FILESDIR}/${P}-python311.patch"
151 - "${FILESDIR}"/${PN}-5.15.2-python311-fixups.patch
152 -)
153 -
154 -src_configure() {
155 - # See COLLECT_MODULE_IF_FOUND macros in CMakeLists.txt
156 - local mycmakeargs=(
157 - -DBUILD_TESTS=$(usex test)
158 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DAnimation=$(usex !3d)
159 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DCore=$(usex !3d)
160 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DExtras=$(usex !3d)
161 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DInput=$(usex !3d)
162 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DLogic=$(usex !3d)
163 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DRender=$(usex !3d)
164 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=$(usex !charts)
165 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=$(usex !concurrent)
166 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=$(usex !datavis)
167 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=$(usex !designer)
168 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=$(usex !gui)
169 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=$(usex !help)
170 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Location=$(usex !location)
171 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=$(usex !multimedia)
172 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=$(usex !multimedia yes $(usex !widgets))
173 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=$(usex !network)
174 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Positioning=$(usex !positioning)
175 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=$(usex !printsupport)
176 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=$(usex !qml)
177 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=$(usex !quick)
178 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=$(usex !quick yes $(usex !widgets))
179 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=$(usex !script)
180 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=$(usex !scripttools)
181 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Scxml=$(usex !scxml)
182 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sensors=$(usex !sensors)
183 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5TextToSpeech=$(usex !speech)
184 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=$(usex !sql)
185 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=$(usex !svg)
186 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=$(usex !testlib)
187 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=$(usex !designer)
188 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=$(usex !webchannel)
189 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngine=$(usex !webengine)
190 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineCore=$(usex !webengine)
191 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=$(usex !webengine yes $(usex !widgets))
192 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=$(usex !websockets)
193 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=$(usex !widgets)
194 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=$(usex !x11extras)
195 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Xml=$(usex !xml)
196 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=$(usex !xmlpatterns)
197 - )
198 -
199 - pyside2_configure() {
200 - local mycmakeargs=(
201 - "${mycmakeargs[@]}"
202 - -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}"
203 - -DPYTHON_EXECUTABLE="${PYTHON}"
204 - -DPYTHON_SITE_PACKAGES="$(python_get_sitedir)"
205 - -DSHIBOKEN_PYTHON_SHARED_LIBRARY_SUFFIX="-${EPYTHON}"
206 - )
207 - cmake_src_configure
208 - }
209 - python_foreach_impl pyside2_configure
210 -}
211 -
212 -src_compile() {
213 - python_foreach_impl cmake_src_compile
214 -}
215 -
216 -src_test() {
217 - local -x PYTHONDONTWRITEBYTECODE
218 - python_foreach_impl virtx cmake_src_test
219 -}
220 -
221 -src_install() {
222 - pyside2_install() {
223 - cmake_src_install
224 - python_optimize
225 -
226 - # Uniquify the shiboken2 pkgconfig dependency in the PySide2 pkgconfig
227 - # file for the current Python target. See also:
228 - # https://github.com/leycec/raiagent/issues/73
229 - sed -i -e 's~^Requires: shiboken2$~&-'${EPYTHON}'~' \
230 - "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}.pc || die
231 -
232 - # Uniquify the PySide2 pkgconfig file for the current Python target,
233 - # preserving an unversioned "pyside2.pc" file arbitrarily associated
234 - # with the last Python target. (See the previously linked issue.)
235 - cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die
236 - }
237 - python_foreach_impl pyside2_install
238 -
239 - # CMakeLists.txt installs a "PySide2Targets-gentoo.cmake" file forcing
240 - # downstream consumers (e.g., pyside2-tools) to target one
241 - # "libpyside2-*.so" library linked to one Python interpreter. See also:
242 - # https://bugreports.qt.io/browse/PYSIDE-1053
243 - # https://github.com/leycec/raiagent/issues/74
244 - sed -i -e 's~pyside2-python[[:digit:]]\+\.[[:digit:]]\+~pyside2${PYTHON_CONFIG_SUFFIX}~g' \
245 - "${ED}/usr/$(get_libdir)/cmake/PySide2-${PV}/PySide2Targets-${CMAKE_BUILD_TYPE,,}.cmake" || die
246 -}