Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-python/shiboken/, dev-python/pyside/files/, dev-python/pyside-tools/, ...
Date: Thu, 28 Nov 2019 19:31:12
Message-Id: 1574969296.f32efbb9a1b9a78d84bf5fc897e34e65d2a396b5.pesa@gentoo
1 commit: f32efbb9a1b9a78d84bf5fc897e34e65d2a396b5
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 28 19:07:45 2019 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 28 19:28:16 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=f32efbb9
7
8 dev-python: drop broken and unmaintained pyside2 ebuilds
9
10 See https://bugs.gentoo.org/624682#c63
11
12 Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>
13
14 dev-python/pyside-tools/metadata.xml | 8 --
15 dev-python/pyside-tools/pyside-tools-9999.ebuild | 110 ----------------
16 dev-python/pyside/files/rpath.cmake | 10 --
17 dev-python/pyside/metadata.xml | 33 -----
18 dev-python/pyside/pyside-9999.ebuild | 153 -----------------------
19 dev-python/shiboken/Manifest | 1 -
20 dev-python/shiboken/metadata.xml | 15 ---
21 dev-python/shiboken/shiboken-5.12.4.ebuild | 104 ---------------
22 8 files changed, 434 deletions(-)
23
24 diff --git a/dev-python/pyside-tools/metadata.xml b/dev-python/pyside-tools/metadata.xml
25 deleted file mode 100644
26 index 17237689..00000000
27 --- a/dev-python/pyside-tools/metadata.xml
28 +++ /dev/null
29 @@ -1,8 +0,0 @@
30 -<?xml version="1.0" encoding="UTF-8"?>
31 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
32 -<pkgmetadata>
33 - <maintainer type="project">
34 - <email>qt@g.o</email>
35 - <name>Gentoo Qt Project</name>
36 - </maintainer>
37 -</pkgmetadata>
38
39 diff --git a/dev-python/pyside-tools/pyside-tools-9999.ebuild b/dev-python/pyside-tools/pyside-tools-9999.ebuild
40 deleted file mode 100644
41 index 98a451e5..00000000
42 --- a/dev-python/pyside-tools/pyside-tools-9999.ebuild
43 +++ /dev/null
44 @@ -1,110 +0,0 @@
45 -# Copyright 2009-2019 Gentoo Authors
46 -# Distributed under the terms of the GNU General Public License v2
47 -
48 -EAPI=6
49 -
50 -CMAKE_IN_SOURCE_BUILD="1"
51 -PYTHON_COMPAT=( python2_7 python3_{5,6} )
52 -
53 -inherit cmake-utils python-r1 virtualx git-r3
54 -
55 -DESCRIPTION="PySide development tools (lupdate, rcc, uic)"
56 -HOMEPAGE="https://wiki.qt.io/PySide2"
57 -EGIT_REPO_URI="https://code.qt.io/pyside/pyside-tools.git"
58 -EGIT_BRANCH="5.9"
59 -
60 -# Although "LICENSE-uic" suggests the "pyside2uic" directory to be dual-licensed
61 -# under the BSD 3-clause and GPL v2 licenses, this appears to be an oversight;
62 -# all files in this (and every) directory are licensed only under the GPL v2.
63 -LICENSE="GPL-2"
64 -SLOT="2"
65 -KEYWORDS=""
66 -IUSE="test"
67 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
68 -
69 -# The "pyside2uic" package imports both the "PySide2.QtGui" and
70 -# "PySide2.QtWidgets" C extensions and hence requires "gui" and "widgets".
71 -RDEPEND="
72 - ${PYTHON_DEPS}
73 - >=dev-python/pyside-${PV}:${SLOT}[gui,widgets,${PYTHON_USEDEP}]
74 - >=dev-python/shiboken-${PV}:${SLOT}[${PYTHON_USEDEP}]
75 - dev-qt/qtcore:5
76 -"
77 -DEPEND="${RDEPEND}
78 - test? ( virtual/pkgconfig )
79 -"
80 -
81 -src_prepare() {
82 - cmake-utils_src_prepare
83 -
84 - python_copy_sources
85 -
86 - preparation() {
87 - pushd "${BUILD_DIR}" >/dev/null || die
88 -
89 - if python_is_python3; then
90 - # Remove Python 2-specific paths.
91 - rm -rf pyside2uic/port_v2 || die
92 -
93 - # Generate proper Python 3 test interfaces with the "-py3" option.
94 - sed -i -e 's:${PYSIDERCC_EXECUTABLE}:"${PYSIDERCC_EXECUTABLE} -py3":' \
95 - tests/rcc/CMakeLists.txt || die
96 - else
97 - # Remove Python 3-specific paths.
98 - rm -rf pyside2uic/port_v3 || die
99 - fi
100 -
101 - # Force testing against the current Python version.
102 - sed -i -e "/pkg-config/ s:shiboken2:&-${EPYTHON}:" \
103 - tests/rcc/run_test.sh || die
104 -
105 - popd >/dev/null || die
106 - }
107 - python_foreach_impl preparation
108 -}
109 -
110 -src_configure() {
111 - configuration() {
112 - local mycmakeargs=(
113 - -DBUILD_TESTS=$(usex test)
114 - )
115 -
116 - # Find the previously installed "Shiboken2Config.*.cmake" and
117 - # "PySide2Config.*.cmake" files specific to this Python version.
118 - if python_is_python3; then
119 - # Extension tag unique to the current Python 3.x version (e.g.,
120 - # ".cpython-34m" for CPython 3.4).
121 - local EXTENSION_TAG="$("$(python_get_PYTHON_CONFIG)" --extension-suffix)"
122 - EXTENSION_TAG="${EXTENSION_TAG%.so}"
123 -
124 - mycmakeargs+=( -DPYTHON_CONFIG_SUFFIX="${EXTENSION_TAG}" )
125 - else
126 - mycmakeargs+=( -DPYTHON_CONFIG_SUFFIX="-python2.7" )
127 - fi
128 -
129 - CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_configure
130 - }
131 - python_foreach_impl configuration
132 -}
133 -
134 -src_compile() {
135 - compilation() {
136 - CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_compile
137 - }
138 - python_foreach_impl compilation
139 -}
140 -
141 -src_test() {
142 - testing() {
143 - local -x PYTHONDONTWRITEBYTECODE
144 - CMAKE_USE_DIR="${BUILD_DIR}" virtx cmake-utils_src_test
145 - }
146 - python_foreach_impl testing
147 -}
148 -
149 -src_install() {
150 - installation() {
151 - CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_install
152 - }
153 - python_foreach_impl installation
154 -}
155
156 diff --git a/dev-python/pyside/files/rpath.cmake b/dev-python/pyside/files/rpath.cmake
157 deleted file mode 100644
158 index b896c878..00000000
159 --- a/dev-python/pyside/files/rpath.cmake
160 +++ /dev/null
161 @@ -1,10 +0,0 @@
162 -# use, i.e. don't skip the full RPATH for the build tree
163 -SET(CMAKE_SKIP_BUILD_RPATH FALSE)
164 -
165 -# when building, don't use the install RPATH already
166 -# (but later on when installing)
167 -SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
168 -
169 -# add the automatically determined parts of the RPATH
170 -# which point to directories outside the build tree to the install RPATH
171 -SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
172
173 diff --git a/dev-python/pyside/metadata.xml b/dev-python/pyside/metadata.xml
174 deleted file mode 100644
175 index 9c049859..00000000
176 --- a/dev-python/pyside/metadata.xml
177 +++ /dev/null
178 @@ -1,33 +0,0 @@
179 -<?xml version="1.0" encoding="UTF-8"?>
180 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
181 -<pkgmetadata>
182 - <maintainer type="project">
183 - <email>qt@g.o</email>
184 - <name>Gentoo Qt Project</name>
185 - </maintainer>
186 - <use>
187 - <flag name="charts">Build QtCharts module</flag>
188 - <flag name="concurrent">Build QtConcurrent module</flag>
189 - <flag name="datavis">Build QtDataVisualization module</flag>
190 - <flag name="declarative">Build QtQml, QtQuick, and QtQuickWidgets modules</flag>
191 - <flag name="designer">Build QtDesigner and QtUiTools modules</flag>
192 - <flag name="gui">Build QtGui module</flag>
193 - <flag name="help">Build QtHelp module</flag>
194 - <flag name="multimedia">Build QtMultimedia and QtMultimediaWidgets modules</flag>
195 - <flag name="network">Build QtNetwork module</flag>
196 - <flag name="opengl">Build QtOpenGL module</flag>
197 - <flag name="printsupport">Build QtPrintSupport module</flag>
198 - <flag name="script">Build QtScript module</flag>
199 - <flag name="scripttools">Build QtScriptTools module</flag>
200 - <flag name="sql">Build QtSql module</flag>
201 - <flag name="svg">Build QtSvg module</flag>
202 - <flag name="testlib">Build QtTest module</flag>
203 - <flag name="webchannel">Build QtWebChannel module</flag>
204 - <flag name="webengine">Build QtWebEngine and QtWebEngineWidgets modules</flag>
205 - <flag name="webkit">Build QtWebKit and QtWebKitWidgets modules</flag>
206 - <flag name="websockets">Build QtWebSockets module</flag>
207 - <flag name="widgets">Build QtWidgets module</flag>
208 - <flag name="x11extras">Build QtX11Extras module</flag>
209 - <flag name="xmlpatterns">Build QtXmlPatterns module</flag>
210 - </use>
211 -</pkgmetadata>
212
213 diff --git a/dev-python/pyside/pyside-9999.ebuild b/dev-python/pyside/pyside-9999.ebuild
214 deleted file mode 100644
215 index da6cd3bb..00000000
216 --- a/dev-python/pyside/pyside-9999.ebuild
217 +++ /dev/null
218 @@ -1,153 +0,0 @@
219 -# Copyright 2009-2019 Gentoo Authors
220 -# Distributed under the terms of the GNU General Public License v2
221 -
222 -EAPI=6
223 -
224 -PYTHON_COMPAT=( python2_7 python3_{5,6} )
225 -
226 -inherit cmake-utils python-r1 virtualx git-r3
227 -
228 -DESCRIPTION="Python bindings for the Qt framework"
229 -HOMEPAGE="https://wiki.qt.io/PySide2"
230 -EGIT_REPO_URI="https://code.qt.io/pyside/pyside-setup.git"
231 -EGIT_BRANCH="5.9"
232 -EGIT_SUBMODULES=()
233 -
234 -# See "sources/pyside2/PySide2/licensecomment.txt" for licensing details.
235 -LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )"
236 -SLOT="2"
237 -KEYWORDS=""
238 -
239 -# TODO: speech
240 -IUSE="charts concurrent datavis declarative designer gui help multimedia
241 - network opengl printsupport script scripttools sql svg test testlib
242 - webchannel webengine webkit websockets widgets x11extras xmlpatterns"
243 -
244 -# The requirements below were extracted from the output of
245 -# 'grep "set(.*_deps" "${S}"/PySide2/Qt*/CMakeLists.txt'
246 -REQUIRED_USE="
247 - ${PYTHON_REQUIRED_USE}
248 - charts? ( widgets )
249 - datavis? ( gui )
250 - declarative? ( gui network )
251 - designer? ( widgets )
252 - help? ( widgets )
253 - multimedia? ( gui network )
254 - opengl? ( widgets )
255 - printsupport? ( widgets )
256 - scripttools? ( gui script widgets )
257 - sql? ( widgets )
258 - svg? ( widgets )
259 - testlib? ( widgets )
260 - webengine? ( gui network webchannel widgets )
261 - webkit? ( gui network printsupport widgets )
262 - websockets? ( network )
263 - widgets? ( gui )
264 - x11extras? ( gui )
265 -"
266 -
267 -# Minimum version of Qt required, derived from the CMakeLists.txt line:
268 -# find_package(Qt5 ${QT_PV} REQUIRED COMPONENTS Core)
269 -QT_PV="5.9.0:5"
270 -
271 -DEPEND="
272 - ${PYTHON_DEPS}
273 - >=dev-python/shiboken-${PV}:${SLOT}[${PYTHON_USEDEP}]
274 - >=dev-qt/qtcore-${QT_PV}
275 - >=dev-qt/qtxml-${QT_PV}
276 - charts? ( >=dev-qt/qtcharts-${QT_PV} )
277 - concurrent? ( >=dev-qt/qtconcurrent-${QT_PV} )
278 - datavis? ( >=dev-qt/qtdatavis3d-${QT_PV} )
279 - declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] )
280 - designer? ( >=dev-qt/designer-${QT_PV} )
281 - gui? ( >=dev-qt/qtgui-${QT_PV} )
282 - help? ( >=dev-qt/qthelp-${QT_PV} )
283 - multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] )
284 - network? ( >=dev-qt/qtnetwork-${QT_PV} )
285 - opengl? ( >=dev-qt/qtopengl-${QT_PV} )
286 - printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} )
287 - script? ( >=dev-qt/qtscript-${QT_PV} )
288 - sql? ( >=dev-qt/qtsql-${QT_PV} )
289 - svg? ( >=dev-qt/qtsvg-${QT_PV} )
290 - testlib? ( >=dev-qt/qttest-${QT_PV} )
291 - webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} )
292 - webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets] )
293 - webkit? ( >=dev-qt/qtwebkit-${QT_PV}[printsupport] )
294 - websockets? ( >=dev-qt/qtwebsockets-${QT_PV} )
295 - widgets? ( >=dev-qt/qtwidgets-${QT_PV} )
296 - x11extras? ( >=dev-qt/qtx11extras-${QT_PV} )
297 - xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
298 -"
299 -RDEPEND="${DEPEND}"
300 -
301 -S=${WORKDIR}/${P}/sources/pyside2
302 -
303 -src_prepare() {
304 - if use prefix; then
305 - cp "${FILESDIR}"/rpath.cmake . || die
306 - sed -i -e '1iinclude(rpath.cmake)' CMakeLists.txt || die
307 - fi
308 -
309 - cmake-utils_src_prepare
310 -}
311 -
312 -src_configure() {
313 - # See COLLECT_MODULE_IF_FOUND macros in CMakeLists.txt
314 - local mycmakeargs=(
315 - -DBUILD_TESTS=$(usex test)
316 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=$(usex !charts)
317 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=$(usex !concurrent)
318 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=$(usex !datavis)
319 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=$(usex !designer)
320 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=$(usex !gui)
321 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=$(usex !help)
322 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=$(usex !multimedia)
323 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=$(usex !multimedia yes $(usex !widgets))
324 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=$(usex !network)
325 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5OpenGL=$(usex !opengl)
326 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=$(usex !printsupport)
327 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=$(usex !declarative)
328 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=$(usex !declarative)
329 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=$(usex !declarative yes $(usex !widgets))
330 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=$(usex !script)
331 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=$(usex !scripttools)
332 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=$(usex !sql)
333 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=$(usex !svg)
334 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=$(usex !testlib)
335 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=$(usex !designer)
336 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=$(usex !webchannel)
337 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=$(usex !webengine)
338 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKit=$(usex !webkit)
339 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=$(usex !webkit)
340 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=$(usex !websockets)
341 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=$(usex !widgets)
342 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=$(usex !x11extras)
343 - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=$(usex !xmlpatterns)
344 - )
345 -
346 - configuration() {
347 - local mycmakeargs=(
348 - "${mycmakeargs[@]}"
349 - -DPYTHON_EXECUTABLE="${PYTHON}"
350 - )
351 - cmake-utils_src_configure
352 - }
353 - python_foreach_impl configuration
354 -}
355 -
356 -src_compile() {
357 - python_foreach_impl cmake-utils_src_compile
358 -}
359 -
360 -src_test() {
361 - local -x PYTHONDONTWRITEBYTECODE
362 - python_foreach_impl virtx cmake-utils_src_test
363 -}
364 -
365 -src_install() {
366 - installation() {
367 - cmake-utils_src_install
368 - mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}2{,-${EPYTHON}}.pc || die
369 - }
370 - python_foreach_impl installation
371 -}
372
373 diff --git a/dev-python/shiboken/Manifest b/dev-python/shiboken/Manifest
374 deleted file mode 100644
375 index bb7247a6..00000000
376 --- a/dev-python/shiboken/Manifest
377 +++ /dev/null
378 @@ -1 +0,0 @@
379 -DIST pyside-setup-everywhere-src-5.12.4.tar.xz 5481172 BLAKE2B e4572cde99efebde20395c13f49a6ffd0b89a0044822e3cc4034ef0316e9a359749817bcc8f2069b4a401d70c03a0ab60a3907ac1628776203db0e349e053e06 SHA512 cf836a73980dce7e1f66f061351426fbf9ede773ef94608d7ee90b2185554f333550c74c14ac572c7d0465c6aea2f793d9c6f1fe6278a73deb40e1fd6fb88076
380
381 diff --git a/dev-python/shiboken/metadata.xml b/dev-python/shiboken/metadata.xml
382 deleted file mode 100644
383 index 27da5503..00000000
384 --- a/dev-python/shiboken/metadata.xml
385 +++ /dev/null
386 @@ -1,15 +0,0 @@
387 -<?xml version="1.0" encoding="UTF-8"?>
388 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
389 -<pkgmetadata>
390 - <maintainer type="person">
391 - <email>leycec@×××××.com</email>
392 - </maintainer>
393 - <maintainer type="project">
394 - <email>qt@g.o</email>
395 - <name>Gentoo Qt Project</name>
396 - </maintainer>
397 - <use>
398 - <flag name="docstrings">Expose documentation as Python docstrings (recommended)</flag>
399 - <flag name="numpy">Enable NumPy-based 2D array support</flag>
400 - </use>
401 -</pkgmetadata>
402
403 diff --git a/dev-python/shiboken/shiboken-5.12.4.ebuild b/dev-python/shiboken/shiboken-5.12.4.ebuild
404 deleted file mode 100644
405 index d1aac88a..00000000
406 --- a/dev-python/shiboken/shiboken-5.12.4.ebuild
407 +++ /dev/null
408 @@ -1,104 +0,0 @@
409 -# Copyright 1999-2019 Gentoo Authors
410 -# Distributed under the terms of the GNU General Public License v2
411 -
412 -EAPI=7
413 -
414 -# TODO: Split the "/usr/bin/shiboken2" binding generator from the
415 -# "/usr/lib64/libshiboken2-*.so" family of shared libraries. The former
416 -# requires everything (including Clang) at runtime; the latter only requires
417 -# Qt and Python at runtime. Note that "pip" separates these two as well. See:
418 -# https://doc.qt.io/qtforpython/shiboken2/faq.html#is-there-any-runtime-dependency-on-the-generated-binding
419 -# Once split, the PySide2 ebuild should be revised to require
420 -# "/usr/bin/shiboken2" at build time and "libshiboken2-*.so" at runtime.
421 -
422 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
423 -
424 -inherit cmake-utils llvm python-r1
425 -
426 -MY_P=pyside-setup-everywhere-src-${PV}
427 -
428 -DESCRIPTION="Python binding generator for C++ libraries"
429 -HOMEPAGE="https://wiki.qt.io/PySide2"
430 -SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz"
431 -
432 -# The "sources/shiboken2/libshiboken" directory is triple-licensed under the
433 -# GPL v2, v3+, and LGPL v3. All remaining files are licensed under the GPL v3
434 -# with version 1.0 of a Qt-specific exception enabling shiboken2 output to be
435 -# arbitrarily relicensed. (TODO)
436 -LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3"
437 -SLOT="2"
438 -KEYWORDS="~amd64"
439 -IUSE="+docstrings numpy test"
440 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
441 -
442 -# Minimal supported version of Qt.
443 -QT_PV="$(ver_cut 1-2):5"
444 -
445 -RDEPEND="${PYTHON_DEPS}
446 - >=dev-qt/qtcore-${QT_PV}
447 - >=sys-devel/clang-6:=
448 - docstrings? (
449 - >=dev-libs/libxml2-2.6.32
450 - >=dev-libs/libxslt-1.1.19
451 - >=dev-qt/qtxml-${QT_PV}
452 - >=dev-qt/qtxmlpatterns-${QT_PV}
453 - )
454 - numpy? ( dev-python/numpy[${PYTHON_USEDEP}] )
455 -"
456 -DEPEND="${RDEPEND}
457 - test? ( >=dev-qt/qttest-${QT_PV} )
458 -"
459 -
460 -S=${WORKDIR}/${MY_P}/sources/shiboken2
461 -DOCS=( AUTHORS )
462 -
463 -# Ensure the path returned by get_llvm_prefix() contains clang as well.
464 -llvm_check_deps() {
465 - has_version "sys-devel/clang:${LLVM_SLOT}"
466 -}
467 -
468 -src_prepare() {
469 - #FIXME: File an upstream issue requesting a sane way to disable NumPy support.
470 - if ! use numpy; then
471 - sed -i -e '/print(os\.path\.realpath(numpy))/d' \
472 - libshiboken/CMakeLists.txt || die
473 - fi
474 -
475 - # CMakeLists.txt assumes clang builtin includes are installed under
476 - # LLVM_INSTALL_DIR. They are not on Gentoo. See bug 624682.
477 - sed -i -e "s~clangPathLibDir = findClangLibDir()~clangPathLibDir = QStringLiteral(\"${EPREFIX}/usr/lib\")~" \
478 - ApiExtractor/clangparser/compilersupport.cpp || die
479 -
480 - cmake-utils_src_prepare
481 -}
482 -
483 -src_configure() {
484 - shiboken_configure() {
485 - local mycmakeargs=(
486 - -DBUILD_TESTS=$(usex test)
487 - -DDISABLE_DOCSTRINGS=$(usex !docstrings)
488 - -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}"
489 - -DPYTHON_EXECUTABLE="${PYTHON}"
490 - -DUSE_PYTHON_VERSION="${EPYTHON#python}"
491 - )
492 - # CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable.
493 - LLVM_INSTALL_DIR="$(get_llvm_prefix)" cmake-utils_src_configure
494 - }
495 - python_foreach_impl shiboken_configure
496 -}
497 -
498 -src_compile() {
499 - python_foreach_impl cmake-utils_src_compile
500 -}
501 -
502 -src_test() {
503 - python_foreach_impl cmake-utils_src_test
504 -}
505 -
506 -src_install() {
507 - shiboken_install() {
508 - cmake-utils_src_install
509 - cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}2{,-${EPYTHON}}.pc || die
510 - }
511 - python_foreach_impl shiboken_install
512 -}