Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyside2/
Date: Tue, 08 Nov 2022 05:00:36
Message-Id: 1667883627.2c9508c0608118b4e2fd4d8fd52658d9900fcf95.mgorny@gentoo
1 commit: 2c9508c0608118b4e2fd4d8fd52658d9900fcf95
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 8 04:51:42 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 8 05:00:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c9508c0
7
8 dev-python/pyside2: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyside2/Manifest | 1 -
13 dev-python/pyside2/pyside2-5.15.5.ebuild | 224 -------------------------------
14 2 files changed, 225 deletions(-)
15
16 diff --git a/dev-python/pyside2/Manifest b/dev-python/pyside2/Manifest
17 index 91dcf6569b36..fd9ed1e82324 100644
18 --- a/dev-python/pyside2/Manifest
19 +++ b/dev-python/pyside2/Manifest
20 @@ -1,3 +1,2 @@
21 -DIST pyside-setup-opensource-src-5.15.5.tar.xz 3577972 BLAKE2B ee16ce18ec4103add41ad89b658012cb2e8695bda51269d3cd1614c2b6d029c0eaba5e592d5e58b6267e1ddc020a938d3ccd2fbc9461cc5bf202f3bdbf6b5d62 SHA512 61b987ec823e9a89f2a07a1991d47f36eb45e3ce416aa6e0032a58ba3d623ac26224cb0f43a2db76850bce7290d12fae610de06405350362caac7860ba99f0c3
22 DIST pyside-setup-opensource-src-5.15.6.tar.xz 3580388 BLAKE2B 8a3b15d073bcbb0c6734f500ca906e56387cb8fc4bfcfd996304d71b54edd5f4568976049519ed26aa718bee9e43f59a0c4ef53837d5a341219b991a8527a800 SHA512 99a0c1a05e722cbf33128cf25742e61b92e151fdc05b79db9bafe778e024a0c6fc2886ee3d0b923ff681c55916f5c0eea4197f174432587fd662fba4390b26f4
23 DIST pyside-setup-opensource-src-5.15.7.tar.xz 3581144 BLAKE2B 95b5720a5273c96b00bdf86b36734970991a29cf0db1e6fb2c00d7e671fbc4459b4434abc91a8a47ec5d8ba694bcdae5b57a52448908fdca25c348f9ee2b6c81 SHA512 9c551b47581e4f2671c4378f1a2c0d9e565b08edee74244a7704a2c94eef1e1041d23f0e388c07bdd61067e986340907cf80f4527257a9a706f7f07c497834c6
24
25 diff --git a/dev-python/pyside2/pyside2-5.15.5.ebuild b/dev-python/pyside2/pyside2-5.15.5.ebuild
26 deleted file mode 100644
27 index ba9bbd1e9704..000000000000
28 --- a/dev-python/pyside2/pyside2-5.15.5.ebuild
29 +++ /dev/null
30 @@ -1,224 +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 -# Shall we allow essential modules to be disabled? They are:
66 -# (core), gui, widgets, printsupport, sql, network, testlib, concurrent,
67 -# x11extras (for X)
68 -LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )"
69 -SLOT="0"
70 -KEYWORDS="amd64 ~arm arm64 x86"
71 -IUSE="
72 - 3d charts +concurrent datavis designer gles2-only +gui help location
73 - multimedia +network positioning +printsupport qml quick script scripttools
74 - scxml sensors speech +sql svg test +testlib webchannel webengine websockets
75 - +widgets +x11extras xml xmlpatterns
76 -"
77 -
78 -# Manually reextract these requirements on version bumps by running the
79 -# following one-liner from within "${S}":
80 -# $ grep 'set.*_deps' PySide2/Qt*/CMakeLists.txt
81 -# Note that the "designer" USE flag corresponds to the "Qt5UiTools" module.
82 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
83 - 3d? ( gui network )
84 - charts? ( gui widgets )
85 - datavis? ( gui )
86 - designer? ( widgets xml )
87 - gles2-only? ( gui )
88 - help? ( widgets )
89 - location? ( positioning )
90 - multimedia? ( gui network widgets )
91 - printsupport? ( widgets )
92 - qml? ( gui network )
93 - quick? ( gui network qml widgets )
94 - scripttools? ( gui script widgets )
95 - speech? ( multimedia )
96 - sql? ( widgets )
97 - svg? ( widgets )
98 - testlib? ( widgets )
99 - webengine? (
100 - network
101 - widgets? ( gui printsupport webchannel )
102 - )
103 - websockets? ( network )
104 - widgets? ( gui )
105 - x11extras? ( gui )
106 -"
107 -
108 -# Tests fail pretty bad and I'm not fixing them right now
109 -RESTRICT="test"
110 -
111 -# Minimal supported version of Qt.
112 -QT_PV="$(ver_cut 1-2):5"
113 -
114 -RDEPEND="${PYTHON_DEPS}
115 - >=dev-python/shiboken2-${PV}[${PYTHON_USEDEP}]
116 - dev-qt/qtcore:5
117 - dev-qt/qtopengl:5[gles2-only=]
118 - dev-qt/qtserialport:5
119 - 3d? ( >=dev-qt/qt3d-${QT_PV}[qml?,gles2-only=] )
120 - charts? ( >=dev-qt/qtcharts-${QT_PV}[qml?] )
121 - concurrent? ( >=dev-qt/qtconcurrent-${QT_PV} )
122 - datavis? ( >=dev-qt/qtdatavis3d-${QT_PV}[qml?,gles2-only=] )
123 - designer? ( >=dev-qt/designer-${QT_PV} )
124 - gui? ( >=dev-qt/qtgui-${QT_PV}[jpeg,gles2-only=] )
125 - help? ( >=dev-qt/qthelp-${QT_PV} )
126 - location? ( >=dev-qt/qtlocation-${QT_PV} )
127 - multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[qml?,gles2-only=,widgets?] )
128 - network? ( >=dev-qt/qtnetwork-${QT_PV} )
129 - positioning? ( >=dev-qt/qtpositioning-${QT_PV}[qml?] )
130 - printsupport? ( >=dev-qt/qtprintsupport-${QT_PV}[gles2-only=] )
131 - qml? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] )
132 - quick? (
133 - >=dev-qt/qtdeclarative-${QT_PV}[widgets?]
134 - >=dev-qt/qtquickcontrols2-${QT_PV}[widgets?]
135 - )
136 - script? ( >=dev-qt/qtscript-${QT_PV}[scripttools?] )
137 - scxml? ( >=dev-qt/qtscxml-${QT_PV} )
138 - sensors? ( >=dev-qt/qtsensors-${QT_PV}[qml?] )
139 - speech? ( >=dev-qt/qtspeech-${QT_PV} )
140 - sql? ( >=dev-qt/qtsql-${QT_PV} )
141 - svg? ( >=dev-qt/qtsvg-${QT_PV} )
142 - testlib? ( >=dev-qt/qttest-${QT_PV} )
143 - webchannel? ( >=dev-qt/qtwebchannel-${QT_PV}[qml] )
144 - webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets?] )
145 - websockets? ( >=dev-qt/qtwebsockets-${QT_PV}[qml?] )
146 - widgets? ( >=dev-qt/qtwidgets-${QT_PV}[gles2-only=] )
147 - x11extras? ( >=dev-qt/qtx11extras-${QT_PV} )
148 - xml? ( >=dev-qt/qtxml-${QT_PV} )
149 - xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV}[qml?] )
150 -"
151 -DEPEND="${RDEPEND}
152 - test? ( x11-misc/xvfb-run )
153 -"
154 -
155 -PATCHES=(
156 - "${FILESDIR}/${PN}-5.15.2-python310.patch"
157 - "${FILESDIR}/${PN}-5.15.2-python311.patch"
158 - "${FILESDIR}"/${PN}-5.15.2-python311-fixups.patch
159 -)
160 -
161 -src_configure() {
162 - # See COLLECT_MODULE_IF_FOUND macros in CMakeLists.txt
163 - local mycmakeargs=(
164 - -DBUILD_TESTS=$(usex test)
165 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DAnimation=$(usex !3d)
166 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DCore=$(usex !3d)
167 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DExtras=$(usex !3d)
168 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DInput=$(usex !3d)
169 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DLogic=$(usex !3d)
170 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DRender=$(usex !3d)
171 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=$(usex !charts)
172 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=$(usex !concurrent)
173 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=$(usex !datavis)
174 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=$(usex !designer)
175 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=$(usex !gui)
176 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=$(usex !help)
177 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Location=$(usex !location)
178 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=$(usex !multimedia)
179 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=$(usex !multimedia yes $(usex !widgets))
180 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=$(usex !network)
181 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Positioning=$(usex !positioning)
182 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=$(usex !printsupport)
183 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=$(usex !qml)
184 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=$(usex !quick)
185 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickControls2=$(usex !quick)
186 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=$(usex !quick yes $(usex !widgets))
187 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=$(usex !script)
188 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=$(usex !scripttools)
189 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Scxml=$(usex !scxml)
190 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sensors=$(usex !sensors)
191 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5TextToSpeech=$(usex !speech)
192 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=$(usex !sql)
193 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=$(usex !svg)
194 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=$(usex !testlib)
195 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=$(usex !designer)
196 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=$(usex !webchannel)
197 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngine=$(usex !webengine)
198 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineCore=$(usex !webengine)
199 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=$(usex !webengine yes $(usex !widgets))
200 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=$(usex !websockets)
201 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=$(usex !widgets)
202 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=$(usex !x11extras)
203 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Xml=$(usex !xml)
204 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=$(usex !xmlpatterns)
205 - )
206 -
207 - pyside2_configure() {
208 - local mycmakeargs=(
209 - "${mycmakeargs[@]}"
210 - -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}"
211 - -DPYTHON_EXECUTABLE="${PYTHON}"
212 - -DPYTHON_SITE_PACKAGES="$(python_get_sitedir)"
213 - -DSHIBOKEN_PYTHON_SHARED_LIBRARY_SUFFIX="-${EPYTHON}"
214 - )
215 - cmake_src_configure
216 - }
217 - python_foreach_impl pyside2_configure
218 -}
219 -
220 -src_compile() {
221 - python_foreach_impl cmake_src_compile
222 -}
223 -
224 -src_test() {
225 - local -x PYTHONDONTWRITEBYTECODE
226 - python_foreach_impl virtx cmake_src_test
227 -}
228 -
229 -src_install() {
230 - pyside2_install() {
231 - cmake_src_install
232 - python_optimize
233 -
234 - # Uniquify the shiboken2 pkgconfig dependency in the PySide2 pkgconfig
235 - # file for the current Python target. See also:
236 - # https://github.com/leycec/raiagent/issues/73
237 - sed -i -e 's~^Requires: shiboken2$~&-'${EPYTHON}'~' \
238 - "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}.pc || die
239 -
240 - # Uniquify the PySide2 pkgconfig file for the current Python target,
241 - # preserving an unversioned "pyside2.pc" file arbitrarily associated
242 - # with the last Python target. (See the previously linked issue.)
243 - cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die
244 - }
245 - python_foreach_impl pyside2_install
246 -
247 - # CMakeLists.txt installs a "PySide2Targets-gentoo.cmake" file forcing
248 - # downstream consumers (e.g., pyside2-tools) to target one
249 - # "libpyside2-*.so" library linked to one Python interpreter. See also:
250 - # https://bugreports.qt.io/browse/PYSIDE-1053
251 - # https://github.com/leycec/raiagent/issues/74
252 - sed -i -e 's~pyside2-python[[:digit:]]\+\.[[:digit:]]\+~pyside2${PYTHON_CONFIG_SUFFIX}~g' \
253 - "${ED}/usr/$(get_libdir)/cmake/PySide2-${PV}/PySide2Targets-${CMAKE_BUILD_TYPE,,}.cmake" || die
254 -}