1 |
commit: f803b23483101cf372d8f34e47f4747626871fd4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 17 09:31:40 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 17 09:31:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f803b234 |
7 |
|
8 |
dev-python/shiboken2: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/shiboken2/Manifest | 1 - |
13 |
dev-python/shiboken2/shiboken2-5.15.1-r1.ebuild | 170 ------------------------ |
14 |
2 files changed, 171 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/shiboken2/Manifest b/dev-python/shiboken2/Manifest |
17 |
index 670bc3b5ade..d9abb71faf8 100644 |
18 |
--- a/dev-python/shiboken2/Manifest |
19 |
+++ b/dev-python/shiboken2/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST pyside-setup-opensource-src-5.15.1.tar.xz 3454052 BLAKE2B c7190dff493434064976a4604fb5858d2e20c1b98098ccd6e5c4c69d0b67ae9f4bf970e2ab42b634208ea96aab31b21f3dfb5f18fddd0bdaab655bba729e4449 SHA512 f14c7037367799005fff73d9fc8e7998db1895700911adf34dfabdeb4db486c7b28ba2afb3eaee37c58f4099b00e4a86917b8f7d85f274026bddfc090658b306 |
22 |
DIST pyside-setup-opensource-src-5.15.2.tar.xz 3472624 BLAKE2B 099abeaf25059a88f299f90b18cf79aa45acd86580c0873767b09f76268d6746cc3576743a19493a605de59b520471ddee6bba0e5340801ef44a21f2a9d41507 SHA512 5043c1c9db4ba0133baaabb4d4943182e9741b1007bedd992394758707a37bba0688dc6413ea46620e7c2fb09daa3c74e6a7bb2c302b9d08e5f3bb7575d02b62 |
23 |
|
24 |
diff --git a/dev-python/shiboken2/shiboken2-5.15.1-r1.ebuild b/dev-python/shiboken2/shiboken2-5.15.1-r1.ebuild |
25 |
deleted file mode 100644 |
26 |
index de2845464e8..00000000000 |
27 |
--- a/dev-python/shiboken2/shiboken2-5.15.1-r1.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,170 +0,0 @@ |
30 |
-# Copyright 1999-2021 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=7 |
34 |
- |
35 |
-# TODO: Split the "/usr/bin/shiboken2" binding generator from the |
36 |
-# "/usr/lib64/libshiboken2-*.so" family of shared libraries. The former |
37 |
-# requires everything (including Clang) at runtime; the latter only requires |
38 |
-# Qt and Python at runtime. Note that "pip" separates these two as well. See: |
39 |
-# https://doc.qt.io/qtforpython/shiboken2/faq.html#is-there-any-runtime-dependency-on-the-generated-binding |
40 |
-# Once split, the PySide2 ebuild should be revised to require |
41 |
-# "/usr/bin/shiboken2" at build time and "libshiboken2-*.so" at runtime. |
42 |
-# TODO: Add PyPy once officially supported. See also: |
43 |
-# https://bugreports.qt.io/browse/PYSIDE-535 |
44 |
-PYTHON_COMPAT=( python3_{7..9} ) |
45 |
- |
46 |
-inherit cmake llvm python-r1 toolchain-funcs |
47 |
- |
48 |
-MY_P=pyside-setup-opensource-src-${PV} |
49 |
- |
50 |
-DESCRIPTION="Python binding generator for C++ libraries" |
51 |
-HOMEPAGE="https://wiki.qt.io/PySide2" |
52 |
-SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz" |
53 |
- |
54 |
-# The "sources/shiboken2/libshiboken" directory is triple-licensed under the |
55 |
-# GPL v2, v3+, and LGPL v3. All remaining files are licensed under the GPL v3 |
56 |
-# with version 1.0 of a Qt-specific exception enabling shiboken2 output to be |
57 |
-# arbitrarily relicensed. (TODO) |
58 |
-LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3" |
59 |
-SLOT="0" |
60 |
-KEYWORDS="amd64 arm64 x86" |
61 |
-IUSE="+docstrings numpy test vulkan" |
62 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
63 |
- |
64 |
-#tests fail pretty bad and I'm not fixing them right now |
65 |
-RESTRICT="test" |
66 |
- |
67 |
-# Minimal supported version of Qt. |
68 |
-QT_PV="$(ver_cut 1-2):5" |
69 |
- |
70 |
-# Since Clang is required at both build- and runtime, BDEPEND is omitted here. |
71 |
-RDEPEND="${PYTHON_DEPS} |
72 |
- >=dev-qt/qtcore-${QT_PV} |
73 |
- sys-devel/clang:= |
74 |
- sys-devel/clang-runtime:= |
75 |
- docstrings? ( |
76 |
- >=dev-libs/libxml2-2.6.32 |
77 |
- >=dev-libs/libxslt-1.1.19 |
78 |
- >=dev-qt/qtxml-${QT_PV} |
79 |
- >=dev-qt/qtxmlpatterns-${QT_PV} |
80 |
- ) |
81 |
- numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) |
82 |
- vulkan? ( dev-util/vulkan-headers ) |
83 |
-" |
84 |
-DEPEND="${RDEPEND} |
85 |
- test? ( >=dev-qt/qttest-${QT_PV} ) |
86 |
-" |
87 |
- |
88 |
-S=${WORKDIR}/${MY_P}/sources/shiboken2 |
89 |
-DOCS=( AUTHORS ) |
90 |
- |
91 |
-# Ensure the path returned by get_llvm_prefix() contains clang as well. |
92 |
-llvm_check_deps() { |
93 |
- has_version "sys-devel/clang:${LLVM_SLOT}" |
94 |
-} |
95 |
- |
96 |
-src_prepare() { |
97 |
- # TODO: File upstream issue requesting a sane way to disable NumPy support. |
98 |
- if ! use numpy; then |
99 |
- sed -i -e '/\bprint(os\.path\.realpath(numpy))/d' \ |
100 |
- libshiboken/CMakeLists.txt || die |
101 |
- fi |
102 |
- |
103 |
- # Shiboken2 assumes Vulkan headers live under either "$VULKAN_SDK/include" |
104 |
- # or "$VK_SDK_PATH/include" rather than "${EPREFIX}/usr/include/vulkan". |
105 |
- if use vulkan; then |
106 |
- sed -i -e 's~\bdetectVulkan(&headerPaths);~headerPaths.append(HeaderPath{QByteArrayLiteral("'${EPREFIX}'/usr/include/vulkan"), HeaderType::System});~' \ |
107 |
- ApiExtractor/clangparser/compilersupport.cpp || die |
108 |
- fi |
109 |
- |
110 |
- # Shiboken2 assumes the "/usr/lib/clang/${CLANG_NEWEST_VERSION}/include/" |
111 |
- # subdirectory provides Clang builtin includes (e.g., "stddef.h") for the |
112 |
- # currently installed version of Clang, where ${CLANG_NEWEST_VERSION} is |
113 |
- # the largest version specifier that exists under the "/usr/lib/clang/" |
114 |
- # subdirectory. This assumption is false in edge cases, including when |
115 |
- # users downgrade from newer Clang versions but fail to remove those |
116 |
- # versions with "emerge --depclean". See also: |
117 |
- # https://github.com/leycec/raiagent/issues/85 |
118 |
- # |
119 |
- # Sadly, the clang-* family of functions exported by the "toolchain-funcs" |
120 |
- # eclass are defective, returning nonsensical placeholder strings if the |
121 |
- # end user has *NOT* explicitly configured their C++ compiler to be Clang. |
122 |
- # PySide2 does *NOT* care whether the end user has done so or not, as |
123 |
- # PySide2 unconditionally requires Clang in either case. This requires us |
124 |
- # to temporarily coerce the "${CPP}" environment variable identifying the |
125 |
- # current C++ compiler to "clang" immediately *BEFORE* calling such a |
126 |
- # function and then restoring that variable to its prior state immediately |
127 |
- # *AFTER* returning from that function call merely to force the |
128 |
- # clang-fullversion() function called below to return sanity. See also: |
129 |
- # https://bugs.gentoo.org/619490 |
130 |
- _CPP_old="$(tc-getCPP)" |
131 |
- CPP=clang |
132 |
- sed -i -e 's~(findClangBuiltInIncludesDir())~(QStringLiteral("'${EPREFIX}'/usr/lib/clang/'$(clang-fullversion)'/include"))~' \ |
133 |
- ApiExtractor/clangparser/compilersupport.cpp || die |
134 |
- CPP="${_CPP_old}" |
135 |
- |
136 |
- cmake_src_prepare |
137 |
-} |
138 |
- |
139 |
-src_configure() { |
140 |
- local mycmakeargs=( |
141 |
- -DBUILD_TESTS=$(usex test) |
142 |
- -DDISABLE_DOCSTRINGS=$(usex !docstrings) |
143 |
- ) |
144 |
- |
145 |
- shiboken2_configure() { |
146 |
- local mycmakeargs=( |
147 |
- "${mycmakeargs[@]}" |
148 |
- -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" |
149 |
- -DPYTHON_EXECUTABLE="${PYTHON}" |
150 |
- -DUSE_PYTHON_VERSION="${EPYTHON#python}" |
151 |
- ) |
152 |
- # CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable. |
153 |
- LLVM_INSTALL_DIR="$(get_llvm_prefix)" cmake_src_configure |
154 |
- } |
155 |
- python_foreach_impl shiboken2_configure |
156 |
-} |
157 |
- |
158 |
-src_compile() { |
159 |
- python_foreach_impl cmake_src_compile |
160 |
-} |
161 |
- |
162 |
-src_test() { |
163 |
- python_foreach_impl cmake_src_test |
164 |
-} |
165 |
- |
166 |
-src_install() { |
167 |
- shiboken2_install() { |
168 |
- cmake_src_install |
169 |
- python_optimize |
170 |
- |
171 |
- # Uniquify the "shiboken2" executable for the current Python target, |
172 |
- # preserving an unversioned "shiboken2" file arbitrarily associated |
173 |
- # with the last Python target. |
174 |
- cp "${ED}"/usr/bin/${PN}{,-${EPYTHON}} || die |
175 |
- |
176 |
- # Uniquify the Shiboken2 pkgconfig file for the current Python target, |
177 |
- # preserving an unversioned "shiboken2.pc" file arbitrarily associated |
178 |
- # with the last Python target. See also: |
179 |
- # https://github.com/leycec/raiagent/issues/73 |
180 |
- cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die |
181 |
- } |
182 |
- python_foreach_impl shiboken2_install |
183 |
- |
184 |
- # CMakeLists.txt installs a "Shiboken2Targets-gentoo.cmake" file forcing |
185 |
- # downstream consumers (e.g., PySide2) to target one "libshiboken2-*.so" |
186 |
- # library and one "shiboken2" executable linked to one Python interpreter. |
187 |
- # See also: |
188 |
- # https://bugreports.qt.io/browse/PYSIDE-1053 |
189 |
- # https://github.com/leycec/raiagent/issues/74 |
190 |
- sed -i \ |
191 |
- -e 's~shiboken2-python[[:digit:]]\+\.[[:digit:]]\+~shiboken2${PYTHON_CONFIG_SUFFIX}~g' \ |
192 |
- -e 's~/bin/shiboken2~/bin/shiboken2${PYTHON_CONFIG_SUFFIX}~g' \ |
193 |
- "${ED}/usr/$(get_libdir)"/cmake/Shiboken2-${PV}/Shiboken2Targets-gentoo.cmake || die |
194 |
- |
195 |
- # Remove the broken "shiboken_tool.py" script. By inspection, this script |
196 |
- # reduces to a noop. Moreover, this script raises the following exception: |
197 |
- # FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/../shiboken_tool.py': '/usr/bin/../shiboken_tool.py' |
198 |
- rm "${ED}"/usr/bin/shiboken_tool.py |
199 |
-} |